Skip to content

Commit

Permalink
docs: update light and dark themes
Browse files Browse the repository at this point in the history
  • Loading branch information
Aetherinox committed Aug 8, 2024
1 parent a1ee95b commit b7836d5
Show file tree
Hide file tree
Showing 3 changed files with 192 additions and 58 deletions.
222 changes: 173 additions & 49 deletions docs/docs/stylesheets/extra.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,36 +4,61 @@

[ data-md-color-scheme="default" ]
{
.mdx-badge__text

/*
Tag > Background Color
*/

.md-typeset .md-tag
{
background-color: #8b88ee;
background-color: #d7d7d7;
}

.mdx-badge__text > code, .mdx-badge__text > a
/*
Navigation Text
*/

.md-nav
{
background-color: transparent;
color: #FFF;
font-size: .6rem;
line-height: 1.3;
}

.md-typeset .mdx-badge svg

/*
Badge > Left Box (Icon
*/

.md-typeset .mdx-badge__icon
{
color: #FFFFFF;
background-color: var(--md-accent-fg-color);
}

.mdx-badge__text a
/*
Badges > Right Box
*/

.mdx-badge__text
{
padding-top: 2px;
background-color: var(--md-accent-fg-color);
}

.md-typeset .mdx-badge a[title^="Requires"] svg, .md-typeset .mdx-badge a[title^="Default"] svg
/*
Badge > Text
*/

.mdx-badge__text > code, .mdx-badge__text > a
{
padding-top: 2px;
padding-left: 4px;
background-color: transparent;
color: #FFF;
}

.md-typeset .mdx-badge a[title^="Type"] svg
/*
Badge > Icon Color
*/

.md-typeset .mdx-badge svg
{
padding: 2px;
color: #FFFFFF;
}

.color-box {
Expand All @@ -57,18 +82,22 @@
padding-left: 4px;
}

.md-typeset .mdx-badge__icon
.md-typeset table:not([class]) tbody tr
{
background-color: #8b88ee;
background-color: rgb(255, 255, 255);
}

.md-typeset table:not([class]) tbody tr
/*
Table > Outter Border / Background
*/

.md-typeset__table > table
{
background-color: rgb(255, 255, 255);

}

/*
Table Colors
Table > Outter Border / Background
*/

.md-typeset__table > table
Expand All @@ -90,18 +119,22 @@
padding-bottom: 5px;
}

/*
Table > Left Row
*/

.md-typeset__table > table > tbody > tr > td:first-child
{
white-space: nowrap;
/*background-color: var(--md-code-bg-color);*/
min-width: 25%;
border-right: 1px solid rgba( 255, 255, 255, 0.14);
background-color: rgba(139, 136, 238, 0.28);
background-color: rgba(194, 194, 194, 0.28);
}

.md-typeset__table thead
{
background-color: #8b88ee;
background-color: var(--md-accent-fg-color);
color: #FFF;
}

Expand All @@ -124,11 +157,14 @@
display: table;
}

.md-typeset__table
/*
Background color for top tabs
*/

.md-typeset .tabbed-labels
{
min-width: 100%;
background-color: #e9e9e9;
}

}

/*
Expand Down Expand Up @@ -184,6 +220,25 @@
--md-shadow-z3: 0 0.2rem 0.5rem #0006,0 0 0.05rem #00000059;
--md-admonition-icon--pied-piper: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><path d="M244 246c-3.2-2-6.3-2.9-10.1-2.9-6.6 0-12.6 3.2-19.3 3.7l1.7 4.9zm135.9 197.9c-19 0-64.1 9.5-79.9 19.8l6.9 45.1c35.7 6.1 70.1 3.6 106-9.8-4.8-10-23.5-55.1-33-55.1zM340.8 177c6.6 2.8 11.5 9.2 22.7 22.1 2-1.4 7.5-5.2 7.5-8.6 0-4.9-11.8-13.2-13.2-23 11.2-5.7 25.2-6 37.6-8.9 68.1-16.4 116.3-52.9 146.8-116.7C548.3 29.3 554 16.1 554.6 2l-2 2.6c-28.4 50-33 63.2-81.3 100-31.9 24.4-69.2 40.2-106.6 54.6l-6.3-.3v-21.8c-19.6 1.6-19.7-14.6-31.6-23-18.7 20.6-31.6 40.8-58.9 51.1-12.7 4.8-19.6 10-25.9 21.8 34.9-16.4 91.2-13.5 98.8-10zM555.5 0l-.6 1.1-.3.9.6-.6zm-59.2 382.1c-33.9-56.9-75.3-118.4-150-115.5l-.3-6c-1.1-13.5 32.8 3.2 35.1-31l-14.4 7.2c-19.8-45.7-8.6-54.3-65.5-54.3-14.7 0-26.7 1.7-41.4 4.6 2.9 18.6 2.2 36.7-10.9 50.3l19.5 5.5c-1.7 3.2-2.9 6.3-2.9 9.8 0 21 42.8 2.9 42.8 33.6 0 18.4-36.8 60.1-54.9 60.1-8 0-53.7-50-53.4-60.1l.3-4.6 52.3-11.5c13-2.6 12.3-22.7-2.9-22.7-3.7 0-43.1 9.2-49.4 10.6-2-5.2-7.5-14.1-13.8-14.1-3.2 0-6.3 3.2-9.5 4-9.2 2.6-31 2.9-21.5 20.1L15.9 298.5c-5.5 1.1-8.9 6.3-8.9 11.8 0 6 5.5 10.9 11.5 10.9 8 0 131.3-28.4 147.4-32.2 2.6 3.2 4.6 6.3 7.8 8.6 20.1 14.4 59.8 85.9 76.4 85.9 24.1 0 58-22.4 71.3-41.9 3.2-4.3 6.9-7.5 12.4-6.9.6 13.8-31.6 34.2-33 43.7-1.4 10.2-1 35.2-.3 41.1 26.7 8.1 52-3.6 77.9-2.9 4.3-21 10.6-41.9 9.8-63.5l-.3-9.5c-1.4-34.2-10.9-38.5-34.8-58.6-1.1-1.1-2.6-2.6-3.7-4 2.2-1.4 1.1-1 4.6-1.7 88.5 0 56.3 183.6 111.5 229.9 33.1-15 72.5-27.9 103.5-47.2-29-25.6-52.6-45.7-72.7-79.9zm-196.2 46.1v27.2l11.8-3.4-2.9-23.8zm-68.7-150.4l24.1 61.2 21-13.8-31.3-50.9zm84.4 154.9l2 12.4c9-1.5 58.4-6.6 58.4-14.1 0-1.4-.6-3.2-.9-4.6-26.8 0-36.9 3.8-59.5 6.3z"/></svg>');

/*
Tag > Background Color
*/

.md-typeset .md-tag
{
background-color: var(--md-primary-fg-color);
}

/*
Navigation Text
*/

.md-nav
{
font-size: .6rem;
line-height: 1.3;
}

.mdx-container
{
background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1123 258'><path d='M1124,2c0,0 0,256 0,256l-1125,0l0,-48c0,0 16,5 55,5c116,0 197,-92 325,-92c121,0 114,46 254,46c140,0 214,-167 572,-166Z' style='fill: hsla(140, 0%, 5%, 1)' /></svg>") no-repeat bottom,linear-gradient(to bottom,var(--md-primary-fg-color),#101010 100%,var(--md-default-bg-color) 100%);
Expand Down Expand Up @@ -223,6 +278,10 @@
padding-bottom: 5px;
}

/*
Table > Left Row
*/

.md-typeset__table > table > tbody > tr > td:first-child
{
white-space: nowrap;
Expand Down Expand Up @@ -261,7 +320,6 @@
min-width: 100%;
}


/*
Navigation > Opened
issue with this is that the animation gets jerky when used
Expand All @@ -287,12 +345,6 @@
padding-bottom: 10px;
}

.md-typeset
{
font-size: .7rem;
line-height: 1.6;
}

#mkdocs-decrypt-form > input
{
background-color: #171a20;
Expand All @@ -309,11 +361,13 @@
{
border-color: rgb(43, 155, 70);
}

.md-typeset .pied-piper > .admonition-title,
.md-typeset .pied-piper > summary
{
background-color: rgba(43, 155, 70, 0.1);
}

.md-typeset .pied-piper > .admonition-title::before,
.md-typeset .pied-piper > summary::before
{
Expand All @@ -327,11 +381,76 @@
font-size: 9pt;
color: #707070;
}

/*
Background color for top tabs
*/

.md-typeset .tabbed-labels
{
background-color: #090909;
}


/*
Badge > Left Box (Icon
*/

.md-typeset .mdx-badge__icon
{
background-color: #3f4faa;
}

/*
Badges > Right Box
*/

.mdx-badge__text
{
background-color: #44454a;
}

/*
Badge > Text
*/

.mdx-badge__text > code, .mdx-badge__text > a
{
background-color: transparent;
color: #FFF;
}

/*
Badge > Icon Color
*/

.md-typeset .mdx-badge svg
{
color: #FFFFFF;
}

}

.md-typeset .mdx-badge a[title^="Requires"] svg, .md-typeset .mdx-badge a[title^="Default"] svg
{
padding-top: 2px;
padding-left: 4px;
}

.md-typeset .mdx-badge a[title^="Type"] svg
{
padding: 2px;
}

.mdx-badge__text a
{
padding-top: 2px;
}

.md-typeset .mdx-badge svg
.md-typeset
{
color: #8B88EE;
font-size: .7rem;
line-height: 1.6;
}

small
Expand All @@ -340,7 +459,7 @@ small
}

/*
Using favicons for navigation menu
Menu Navigation > FontAwesome Folder Icons (for folders)
*/

label.md-nav__link::before
Expand All @@ -352,6 +471,7 @@ label.md-nav__link::before
mask-repeat: no-repeat;
mask-size: contain;
mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 576 512' fill='currentColor' width='16px' height='16px'%3E%3C!-- --%3E%3Cdefs%3E%3Cstyle%3E.fa-secondary%7Bopacity:.4%7D%3C/style%3E%3C/defs%3E%3Cpath class='fa-primary' d='M160 384H512c35.3 0 64-28.7 64-64V160c0-35.3-28.7-64-64-64H394.5c-17 0-33.3-6.7-45.3-18.7L322.7 50.7c-12-12-28.3-18.7-45.3-18.7H160c-35.3 0-64 28.7-64 64V320c0 35.3 28.7 64 64 64z'%3E%3C/path%3E%3Cpath class='fa-secondary' d='M24 96c13.3 0 24 10.7 24 24V344c0 48.6 39.4 88 88 88H456c13.3 0 24 10.7 24 24s-10.7 24-24 24H136C60.9 480 0 419.1 0 344V120c0-13.3 10.7-24 24-24z'%3E%3C/path%3E%3C/svg%3E");
opacity: 0.6;
}

li.md-nav__item--nested > a > span::before
Expand All @@ -365,6 +485,10 @@ li.md-nav__item--nested > a > span::before
mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512' fill='currentColor' width='16px' height='16px'%3E%3C!-- --%3E%3Cdefs%3E%3Cstyle%3E.fa-secondary%7Bopacity:.4%7D%3C/style%3E%3C/defs%3E%3Cpath class='fa-primary' d='M352 0V64c0 17.7 14.3 32 32 32h64L352 0zM48 120c0-13.3-10.7-24-24-24S0 106.7 0 120V376c0 75.1 60.9 136 136 136H328c13.3 0 24-10.7 24-24s-10.7-24-24-24H136c-48.6 0-88-39.4-88-88V120z'%3E%3C/path%3E%3Cpath class='fa-secondary' d='M160 0H352V64c0 17.7 14.3 32 32 32h64V352c0 35.3-28.7 64-64 64H160c-35.3 0-64-28.7-64-64V64c0-35.3 28.7-64 64-64z'%3E%3C/path%3E%3C/svg%3E");
}

/*
Menu Navigation > FontAwesome Dot Icons (for files)
*/

nav.md-nav > ul.md-nav__list > li.md-nav__item > a.md-nav__link > span::before
{
content: ".";
Expand All @@ -386,7 +510,9 @@ figure img
}

/*
animation > glow
@plugin : mkdocs-link-embeds
@url : https://github.com/Aetherinox/mkdocs-link-embeds
https://aetherinox.github.io/mkdocs-link-embeds
*/

@keyframes anim_glow
Expand All @@ -405,10 +531,6 @@ figure img
}
}

/*
animation > colorful link
*/

@keyframes colorful_link
{
0%
Expand All @@ -422,10 +544,6 @@ figure img
}
}

/*
animation > color hue
*/

@keyframes anim_color
{
from
Expand All @@ -438,10 +556,6 @@ figure img
}
}

/*
animation > scale
*/

@keyframes anim_scale
{
to
Expand All @@ -456,7 +570,7 @@ figure img
border-radius: 5px;
box-shadow: var(--md-shadow-z2);
transition: border .25s,box-shadow .25s;
border: 2px solid #FFFFFF1A;
border: 2px solid rgba( 255, 255, 255, 0.1 );
background-color: var(--md-default-fg-color--lightest);
}

Expand Down Expand Up @@ -972,6 +1086,16 @@ figure img
color: var(--md-accent-fg-color);
}

/*
Used as part of the `shortcodes.py` for color boxes.
docs\material\overrides\hooks\shortcodes.py
Allows you to display colored boxes for things like themes to show the
default color.
used in obsidian-gistr docs
*/

.color-container
{
display: inline-block;
Expand Down
Loading

0 comments on commit b7836d5

Please sign in to comment.