Skip to content

Commit

Permalink
Merge pull request #27 from papermoonio/dev
Browse files Browse the repository at this point in the history
publish e551c0 and styling changes
  • Loading branch information
eshaben authored Sep 17, 2024
2 parents 1481acb + 1a36097 commit b87dc1d
Show file tree
Hide file tree
Showing 4 changed files with 98 additions and 3 deletions.
24 changes: 24 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
BSD 2-Clause License

Copyright (c) 2024, PaperMoon DEV SL

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
70 changes: 69 additions & 1 deletion material-overrides/assets/stylesheets/wormhole.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,10 @@
--light-transparent-90: rgba(255, 255, 255, 0.9);
--light-transparent-60: rgba(255, 255, 255, 0.6);
--light-transparent-40: rgba(255, 255, 255, 0.4);
--light-transparent-20: rgba(255, 255, 255, 0.2);
--light-transparent-12: rgba(255, 255, 255, 0.12);
--light-transparent-10: rgba(255, 255, 255, 0.1);
--light-transparent-07: rgba(255, 255, 255, 0.07);
--plum: #c1bbf6;
--plum-transparent-70: rgba(193, 187, 246, 0.7);
--plum-transparent-50: rgba(193, 187, 246, 0.5);
Expand Down Expand Up @@ -686,10 +688,17 @@ pre .md-clipboard {

.md-typeset .tabbed-block p,
.md-typeset .tabbed-block ul,
.md-typeset .tabbed-block ol {
.md-typeset .tabbed-block ol,
.md-typeset .tabbed-block p~div,
.md-typeset .tabbed-block details {
margin: 1em;
}

.md-typeset .tabbed-block ul p,
.md-typeset .tabbed-block ol p {
margin: 0;
}

/* Document date styling */
.md-source-file small {
display: flex;
Expand Down Expand Up @@ -969,6 +978,17 @@ pre .md-clipboard {
border: var(--md-border-width) solid var(--md-border-color);
}

.md-typeset .card-container {
display: grid;
grid-template-columns: repeat(4, 1fr); /* 4 items per row */
}

.md-typeset .faucet {
display: flex;
flex-direction: column;
text-align: center;
}

.md-typeset .grid.cards>ol>li>:last-child,
.md-typeset .grid.cards>ul>li>:last-child,
.md-typeset .grid>.card>:last-child {
Expand Down Expand Up @@ -1284,4 +1304,52 @@ label[for='__search']:hover {
/* Cookie consent styling */
.md-consent__inner {
box-shadow: 0 0 .2rem #ffffff1a,0 .2rem .4rem #fff3;
}

/* Interface admonition styling */
details.interface>summary::before {
display: none;
}

.md-typeset details.interface {
border: 1px solid var(--light-transparent-20);
box-shadow: none;
width: auto;
}

[dir=ltr] .md-typeset details.interface>summary {
padding: 1em 0 1em 1em;
background-color: var(--light-transparent-07);
}

.md-typeset details.interface>summary:after {
top: auto;
}

/* Child admonition styling */
details.child summary::before {
display: none;
}

details.child {
width: fit-content;
}

[dir=ltr] .md-typeset details.child summary {
width: fit-content;
padding-left: 1em;
}

[dir=ltr] .md-typeset details.child[open] {
width: auto;
}

.md-typeset details.child summary {
background-color: unset;
}

.md-typeset details.child {
width: fit-content;
border: 1px solid var(--light-transparent-20);
box-shadow: none;
}
5 changes: 4 additions & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,10 @@ markdown_extensions:
plugins:
- search
- awesome-pages
- glightbox
- glightbox:
skip_classes:
- no-lightbox

- redirects:
redirect_maps:
# Redirects will go here as pages get moved around in the following format:
Expand Down

0 comments on commit b87dc1d

Please sign in to comment.