diff --git a/LICENSE b/LICENSE new file mode 100644 index 00000000..7f31ce1c --- /dev/null +++ b/LICENSE @@ -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. diff --git a/material-overrides/assets/stylesheets/wormhole.css b/material-overrides/assets/stylesheets/wormhole.css index 7e982557..bbae1f13 100644 --- a/material-overrides/assets/stylesheets/wormhole.css +++ b/material-overrides/assets/stylesheets/wormhole.css @@ -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); @@ -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; @@ -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 { @@ -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; } \ No newline at end of file diff --git a/mkdocs.yml b/mkdocs.yml index 1eff22b7..4cc8f690 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -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: diff --git a/wormhole-docs b/wormhole-docs index d30a0c85..e551c036 160000 --- a/wormhole-docs +++ b/wormhole-docs @@ -1 +1 @@ -Subproject commit d30a0c85c8a06de1f56c8a15941fffe48865c2be +Subproject commit e551c0366e143c4c2bed7afea1898a9746e73fbc