Skip to content

Commit df7b98a

Browse files
committed
docs: update stylesheets
1 parent 0d79de3 commit df7b98a

File tree

3 files changed

+92
-58
lines changed

3 files changed

+92
-58
lines changed

docs/docs/stylesheets/extra.css

Lines changed: 83 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
{
33

44
--md-primary-fg-color: #b10f52;
5-
--md-default-bg-color: #111218;
5+
--md-default-bg-color: #151515;
66
--md-tooltip-width: 400px;
77
--glow-color: hsl(186 100% 69%);
88

@@ -40,14 +40,81 @@
4040
--md-typeset-table-color--light: hsla(var(--md-hue),15%,95%,0.035);
4141
--md-admonition-fg-color: var(--md-default-fg-color);
4242
--md-admonition-bg-color: var(--md-default-bg-color);
43-
--md-footer-bg-color: hsla(var( --md-hue ), 15%, 10%, 0.87 );
44-
--md-footer-bg-color--dark: hsla(var( --md-hue ), 5%, 5%, 1 );
43+
--md-footer-bg-color: rgba( 34, 34, 34, 1 );
44+
--md-footer-bg-color--dark: rgba( 15, 15, 15, 1 );
4545
--md-shadow-z1: 0 0.2rem 0.5rem #0000000d,0 0 0.05rem #0000001a;
4646
--md-shadow-z2: 0 0.2rem 0.5rem #00000040,0 0 0.05rem #00000040;
4747
--md-shadow-z3: 0 0.2rem 0.5rem #0006,0 0 0.05rem #00000059;
4848

4949
--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>');
5050

51+
.md-typeset table:not([class]) tbody tr
52+
{
53+
background-color: rgb(17, 15, 15);
54+
}
55+
56+
/*
57+
Table Colors
58+
*/
59+
60+
.md-typeset__table > table
61+
{
62+
background-color: var(--md-footer-bg-color);
63+
}
64+
65+
.md-typeset table:not([class]) th
66+
{
67+
padding-top:10px;
68+
padding-bottom: 10px;
69+
padding-left: 15px;
70+
}
71+
72+
.md-typeset table:not([class]) td
73+
{
74+
padding-left: 15px;
75+
padding-top: 5px;
76+
padding-bottom: 5px;
77+
}
78+
79+
.md-typeset__table > table > tbody > tr > td:first-child
80+
{
81+
white-space: nowrap;
82+
/*background-color: var(--md-code-bg-color);*/
83+
min-width: 25%;
84+
border-right: 1px solid rgba( 255, 255, 255, 0.14);
85+
background-color: rgba(70, 65, 77, 0.36);
86+
}
87+
88+
.md-typeset__table thead
89+
{
90+
background-color: #b10f52;
91+
}
92+
93+
/*
94+
First row of table nowrap
95+
*/
96+
97+
.md-typeset__table > table > thead > tr > th:first-child
98+
{
99+
white-space: nowrap
100+
}
101+
102+
.md-typeset__table
103+
{
104+
min-width: 100%;
105+
}
106+
107+
.md-typeset table:not([class])
108+
{
109+
display: table;
110+
}
111+
112+
.md-typeset__table
113+
{
114+
min-width: 100%;
115+
}
116+
117+
51118
/*
52119
Navigation > Opened
53120
issue with this is that the animation gets jerky when used
@@ -79,24 +146,6 @@
79146
line-height: 1.6;
80147
}
81148

82-
.md-typeset__table thead
83-
{
84-
background-color: #b10f52;
85-
}
86-
87-
.md-typeset__table {
88-
min-width: 100%;
89-
}
90-
91-
.md-typeset table:not([class]) {
92-
display: table;
93-
}
94-
95-
96-
.md-typeset__table {
97-
min-width: 100%;
98-
}
99-
100149
#mkdocs-decrypt-form > input
101150
{
102151
background-color: #171a20;
@@ -108,7 +157,6 @@
108157
border-bottom: 1px solid #5875f8;
109158
}
110159

111-
112160
.md-typeset .admonition.pied-piper,
113161
.md-typeset details.pied-piper
114162
{
@@ -154,7 +202,6 @@ label.md-nav__link::before
154202
background-color: currentColor;
155203
padding-right: 0.6rem;
156204
margin-right: 0.1rem;
157-
mask-position-y: 30%;
158205
mask-repeat: no-repeat;
159206
mask-size: contain;
160207
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");
@@ -166,7 +213,6 @@ li.md-nav__item--nested > a > span::before
166213
background-color: currentColor;
167214
padding-right: 0.6rem;
168215
margin-right: 0.1rem;
169-
mask-position-y: 30%;
170216
mask-repeat: no-repeat;
171217
mask-size: contain;
172218
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");
@@ -178,40 +224,18 @@ nav.md-nav > ul.md-nav__list > li.md-nav__item > a.md-nav__link > span::before
178224
background-color: currentColor;
179225
padding-right: 0.6rem;
180226
margin-right: 0.1rem;
181-
mask-position-y: 30%;
182227
mask-repeat: no-repeat;
183228
mask-size: contain;
184229
mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 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=''%3E%3C/path%3E%3Cpath class='fa-secondary' d='M0 256a160 160 0 1 1 320 0A160 160 0 1 1 0 256z'%3E%3C/path%3E%3C/svg%3E");
185230
}
186231

187232
/*
188-
Table Colors
189-
*/
190-
191-
.md-typeset__table > table
192-
{
193-
background-color: var(--md-footer-bg-color);
194-
}
195-
196-
.md-typeset__table > table > tbody > tr > td:first-child
197-
{
198-
white-space: nowrap;
199-
background-color: var(--md-code-bg-color);
200-
min-width: 25%;
201-
}
202-
203-
/*
204-
First row of table nowrap
233+
Lightbox border
205234
*/
206235

207-
.md-typeset__table > table > thead > tr > th:first-child
208-
{
209-
white-space: nowrap
210-
}
211-
212-
.md-typeset__table > table > tbody > tr > td:first-child
236+
figure img
213237
{
214-
white-space: nowrap;
238+
border: 1px solid rgba( 255, 255, 255, 0.13 )
215239
}
216240

217241
/*
@@ -815,4 +839,14 @@ nav.md-nav > ul.md-nav__list > li.md-nav__item > a.md-nav__link > span::before
815839
width: 20px;
816840
border: 1px solid rgba( 255, 255, 255, 0.2 );
817841
clear: both;
842+
}
843+
844+
.color-box-left
845+
{
846+
float: left;
847+
height: 20px;
848+
width: 20px;
849+
border: 1px solid rgba( 255, 255, 255, 0.2 );
850+
clear: both;
851+
margin-right: 10px;
818852
}

docs/docs/usage/properties.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -140,14 +140,14 @@ The following is a list of common colors to show how your color values should ap
140140

141141
| Color | Hex |
142142
| --- | --- |
143-
| <span class='color-box' style='background-color: #000000;'>  </span> Black | `000000` |
144-
| <span class='color-box' style='background-color: #FFFFFF;'>  </span> White | `FFFFFF` |
145-
| <span class='color-box' style='background-color: #C0C0C0;'>  </span> Silver | `C0C0C0` |
146-
| <span class='color-box' style='background-color: #808080;'>  </span> Gray | `808080` |
147-
| <span class='color-box' style='background-color: #FF0000;'>  </span> Red | `FF0000` |
148-
| <span class='color-box' style='background-color: #FFFF00;'>  </span> Yellow | `FFFF00` |
149-
| <span class='color-box' style='background-color: #008000;'>  </span> Green | `008000` |
150-
| <span class='color-box' style='background-color: #0000FF;'>  </span> Blue | `0000FF` |
143+
| <span class='color-box-left' style='background-color: #000000;'>  </span> Black | `000000` |
144+
| <span class='color-box-left' style='background-color: #FFFFFF;'>  </span> White | `FFFFFF` |
145+
| <span class='color-box-left' style='background-color: #C0C0C0;'>  </span> Silver | `C0C0C0` |
146+
| <span class='color-box-left' style='background-color: #808080;'>  </span> Gray | `808080` |
147+
| <span class='color-box-left' style='background-color: #FF0000;'>  </span> Red | `FF0000` |
148+
| <span class='color-box-left' style='background-color: #FFFF00;'>  </span> Yellow | `FFFF00` |
149+
| <span class='color-box-left' style='background-color: #008000;'>  </span> Green | `008000` |
150+
| <span class='color-box-left' style='background-color: #0000FF;'>  </span> Blue | `0000FF` |
151151

152152
<br />
153153

tests/Gistr Demo/.obsidian/workspace.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"type": "markdown",
3939
"state": {
4040
"file": "4. Mermaid Charts & Advanced Embeds.md",
41-
"mode": "source",
41+
"mode": "preview",
4242
"source": false
4343
}
4444
}

0 commit comments

Comments
 (0)