docs/.vitepress/theme/styles/style.scss
2128 lines · 51209 bytes
1/**
2 * All Rights Reserved
3 *
4 * Copyright (c) 2025 taskylizard
5 *
6 * All rights reserved. This code and its associated files may not be copied, modified, distributed, sublicensed, or used in any form, in whole or in part, without prior written permission from the copyright holder.
7 */
8
9$ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
10$ease-in-expo: cubic-bezier(0.7, 0, 0.84, 0);
11
12:root {
13 --vp-c-bg: #fefbff;
14 --vp-c-bg-alt: #f2f0f4;
15 --vp-c-bg-elv: #f2f0f4;
16 --vp-c-bg-soft: #f2f0f4;
17 --vp-c-border: #c2c2c4;
18 --vp-c-divider: #c4c6d0;
19 --vp-c-gutter: #e2e2e3;
20 --vp-c-text-1: #1b1b1f;
21 --vp-c-text-2: #2f3033;
22 --vp-c-text-3: #46464a;
23 /* Divider under the mobile full-screen header bars. */
24 --wk-fs-header-divider: rgba(163, 163, 163, 0.25);
25 /* Flat menu/option surfaces (settings menu, search help cards). */
26 --wk-c-menu-bg: #e8e6ec;
27 /* Solid nav-pill segment background when effects (blur) are off. */
28 --wk-c-nav-solid-bg: var(--vp-c-bg);
29}
30
31.dark {
32 --vp-c-bg: #121316;
33 --vp-c-bg-alt: #0d0e11;
34 --vp-c-bg-elv: #1b1b1f;
35 --vp-c-bg-soft: #1b1b1f;
36 --vp-c-border: #77777a;
37 --vp-c-divider: #222429;
38 --vp-c-gutter: #000000;
39 --vp-c-text-1: #e3e2e6;
40 --vp-c-text-2: #ababaf;
41 --vp-c-text-3: #919094;
42 --wk-fs-header-divider: rgba(82, 82, 82, 0.65);
43 --wk-c-menu-bg: #2c2c31;
44 --wk-c-nav-solid-bg: #151617;
45}
46
47:root {
48 --vp-layout-max-width: 1490px;
49 --vp-sidebar-width: 280px;
50 --vp-nav-logo-height: 36px;
51
52 /* Colors: Brand */
53 --vp-c-brand-1: theme("colors.brand.500");
54 --vp-c-brand-2: theme("colors.brand.600");
55 --vp-c-brand-3: theme("colors.brand.800");
56 --vp-c-brand-soft: color-mix(
57 in oklch,
58 theme("colors.brand.400") 40%,
59 transparent
60 );
61
62 /* Colors: Button */
63 --vp-button-brand-bg: var(--vp-c-brand-1);
64 --vp-button-brand-border: var(--vp-c-brand-soft);
65 --vp-button-brand-text: rgba(42, 40, 47);
66 --vp-button-brand-hover-border: var(--vp-c-brand-soft);
67 --vp-button-brand-hover-text: rgba(42, 40, 47);
68 --vp-button-brand-hover-bg: var(--vp-c-brand-soft);
69 --vp-button-brand-active-border: var(--vp-c-brand-soft);
70 --vp-button-brand-active-text: rgba(42, 40, 47);
71 --vp-button-brand-active-bg: var(--vp-button-brand-bg);
72 --vp-button-alt-bg: #484848;
73 --vp-button-alt-text: #f0eeee;
74 --vp-button-alt-hover-bg: #484848;
75 --vp-button-alt-hover-text: #f0eeee;
76
77 /* Colors: Custom Block */
78 /** Info */
79 --vp-custom-block-info-bg: theme("colors.swarm.200");
80 --vp-custom-block-info-border: theme("colors.swarm.800");
81 --vp-custom-block-info-text: theme("colors.swarm.800");
82 --vp-custom-block-info-text-deep: theme("colors.swarm.900");
83 /** Tip */
84 --vp-custom-block-tip-bg: theme("colors.meadow.200");
85 --vp-custom-block-tip-border: theme("colors.meadow.800");
86 --vp-custom-block-tip-text: theme("colors.meadow.800");
87 --vp-custom-block-tip-text-deep: theme("colors.meadow.900");
88 /** Warning */
89 --vp-custom-block-warning-bg: theme("colors.merlin.200");
90 --vp-custom-block-warning-border: theme("colors.merlin.800");
91 --vp-custom-block-warning-text: theme("colors.merlin.800");
92 --vp-custom-block-warning-text-deep: theme("colors.merlin.900");
93 /** Danger */
94 --vp-custom-block-danger-bg: theme("colors.carnation.200");
95 --vp-custom-block-danger-border: theme("colors.carnation.800");
96 --vp-custom-block-danger-text: theme("colors.carnation.800");
97 --vp-custom-block-danger-text-deep: theme("colors.carnation.900");
98 /** Collapsible */
99 --vp-collapsible-bg: color-mix(in srgb, var(--vp-c-brand-1) 15%, transparent);
100 --vp-collapsible-border: var(--vp-c-brand-3);
101 --vp-collapsible-text: var(--vp-c-brand-3);
102
103 --vp-badge-info-text: theme("colors.brand.200");
104 --vp-badge-info-bg: theme("colors.brand.800");
105 --vp-badge-tip-text: theme("colors.meadow.200");
106 --vp-badge-tip-bg: theme("colors.meadow.800");
107 --vp-badge-warning-text: theme("colors.merlin.200");
108 --vp-badge-warning-bg: theme("colors.merlin.800");
109 --vp-badge-danger-text: theme("colors.carnation.200");
110 --vp-badge-danger-bg: theme("colors.carnation.800");
111
112 --vp-c-brand-nav-active: color-mix(
113 in srgb,
114 var(--vp-c-brand-soft) 15%,
115 transparent 100%
116 );
117
118 --nav-pill-height: 2.5rem;
119 --nav-pill-radius: 1.5rem;
120 --nav-pill-item-size: 1.875rem;
121 --nav-pill-gap: 0.125rem;
122 --nav-pill-pad: 0.125rem;
123 --nav-pill-icon-size: 18px;
124 --nav-pill-blur: 12px;
125 --nav-pill-bg: rgb(255 255 255 / 0.8);
126 --nav-pill-border: rgb(64 64 64 / 0.08);
127}
128
129.dark {
130 --nav-pill-bg: rgb(23 23 23 / 0.7);
131 --nav-pill-border: rgb(212 212 212 / 0.1);
132}
133
134/* Nolebase sliders hardcode #fff / #e1e2da for the thumb and progress fill;
135 use theme tokens (like the radio pills) so they follow the theme. */
136.nolebase-ui-slider {
137 --nolebase-ui-slider-thumb-color: var(--vp-c-bg);
138 --nolebase-ui-slider-track-color: var(--vp-c-bg);
139 --nolebase-ui-slider-track-progress-color: var(--vp-c-bg);
140}
141
142.dark .nolebase-ui-slider {
143 --nolebase-ui-slider-thumb-color: var(--vp-c-text-1);
144 --nolebase-ui-slider-track-color: var(--vp-c-text-1);
145 --nolebase-ui-slider-track-progress-color: var(--vp-c-text-1);
146}
147
148.dark {
149 /* Colors: Brand */
150 --vp-c-brand-1: theme("colors.brand.400");
151 --vp-c-brand-2: theme("colors.brand.500");
152 --vp-c-brand-3: theme("colors.brand.700");
153 --vp-c-brand-soft: color-mix(
154 in oklch,
155 theme("colors.brand.500") 20%,
156 transparent
157 );
158
159 /* Colors: Custom Block */
160 /** Info */
161 --vp-custom-block-info-bg: theme("colors.swarm.950");
162 --vp-custom-block-info-border: theme("colors.swarm.800");
163 --vp-custom-block-info-text: theme("colors.swarm.200");
164 --vp-custom-block-info-text-deep: theme("colors.swarm.200");
165 /** Tip */
166 --vp-custom-block-tip-bg: theme("colors.meadow.950");
167 --vp-custom-block-tip-border: theme("colors.meadow.800");
168 --vp-custom-block-tip-text: theme("colors.meadow.200");
169 --vp-custom-block-tip-text-deep: theme("colors.meadow.200");
170 /** Warning */
171 --vp-custom-block-warning-bg: theme("colors.merlin.950");
172 --vp-custom-block-warning-border: theme("colors.merlin.800");
173 --vp-custom-block-warning-text: theme("colors.merlin.200");
174 --vp-custom-block-warning-text-deep: theme("colors.merlin.200");
175 /** Danger */
176 --vp-custom-block-danger-bg: theme("colors.carnation.950");
177 --vp-custom-block-danger-border: theme("colors.carnation.800");
178 --vp-custom-block-danger-text: theme("colors.carnation.200");
179 --vp-custom-block-danger-text-deep: theme("colors.carnation.200");
180 /** Collapsible */
181 --vp-collapsible-bg: color-mix(in srgb, var(--vp-c-brand-1) 10%, transparent);
182 --vp-collapsible-border: var(--vp-c-brand-3);
183 --vp-collapsible-text: var(--vp-c-brand-1);
184
185 --vp-badge-info-text: theme("colors.brand.200");
186 --vp-badge-info-bg: theme("colors.brand.950");
187 --vp-badge-tip-text: theme("colors.meadow.200");
188 --vp-badge-tip-bg: theme("colors.meadow.950");
189 --vp-badge-warning-text: theme("colors.merlin.200");
190 --vp-badge-warning-bg: theme("colors.merlin.950");
191 --vp-badge-danger-text: theme("colors.carnation.200");
192 --vp-badge-danger-bg: theme("colors.carnation.950");
193}
194
195.search-result-highlight {
196 display: inline;
197 position: relative;
198 padding: 0 0.25em;
199 border: 1px solid var(--vp-c-brand-1);
200 border-radius: 4px;
201 background-color: var(--vp-collapsible-bg);
202 color: var(--vp-c-brand-1);
203 font-size: 0.9em;
204 font-weight: 600;
205 line-height: 1.5;
206 white-space: normal;
207 vertical-align: baseline;
208}
209
210.search-result-highlight--solid {
211 border: none;
212 background-color: var(--vp-c-brand-1);
213}
214
215html:not(.dark) .search-result-highlight--solid {
216 color: #fff;
217}
218
219html.dark .search-result-highlight--solid {
220 color: #000;
221}
222
223.vp-doc a {
224 color: var(--vp-c-brand-2);
225 text-decoration: underline;
226 text-underline-offset: 4px;
227 text-decoration-style: dashed;
228 text-decoration-thickness: 1px;
229 text-decoration-color: transparent;
230 -webkit-text-decoration-color: transparent;
231 transition: text-decoration-color 0.25s;
232
233 &:hover {
234 color: var(--vp-c-brand-2);
235 text-decoration-color: var(--vp-c-brand-2);
236 -webkit-text-decoration-color: var(--vp-c-brand-2);
237 }
238
239 .dark & {
240 color: var(--vp-c-brand-1);
241
242 &:hover {
243 color: var(--vp-c-brand-1);
244 text-decoration-color: var(--vp-c-brand-1);
245 -webkit-text-decoration-color: var(--vp-c-brand-1);
246 }
247 }
248}
249
250.vp-doc .custom-block a {
251 text-decoration: underline;
252 text-underline-offset: 4px;
253 text-decoration-style: dashed;
254 text-decoration-thickness: 1px;
255}
256
257::selection {
258 background-color: theme("colors.brand.400");
259
260 .dark & {
261 background-color: theme("colors.brand.800");
262 }
263}
264
265
266:root {
267 --vp-home-hero-name-color: transparent;
268 --vp-home-hero-name-background: -webkit-linear-gradient(
269 -30deg,
270 #62cff4,
271 #1473e6
272 );
273 --vp-home-hero-image-background-image: none;
274 --vp-home-hero-image-filter: none;
275}
276
277.VPNavBarTitle .title {
278 font-size: 18px;
279 font-weight: 600;
280}
281
282.breadcrumb ol,
283.breadcrumb li,
284.breadcrumb a,
285.breadcrumb li > span {
286 align-items: center;
287}
288
289.breadcrumb a,
290.breadcrumb li > span {
291 display: inline-flex;
292 min-height: 1.25rem;
293 gap: 0.375rem;
294 line-height: 1.25rem;
295 vertical-align: middle;
296}
297
298.breadcrumb [class*="i-"] {
299 display: inline-block;
300 flex: 0 0 auto;
301 width: 1rem;
302 height: 1rem;
303 line-height: 1;
304 vertical-align: middle;
305}
306
307.medium-zoom-overlay {
308 background-color: var(--vp-c-bg) !important;
309 z-index: 100;
310}
311
312.medium-zoom-overlay ~ img {
313 z-index: 101;
314}
315
316.medium-zoom--opened .medium-zoom-overlay {
317 opacity: 0.98 !important;
318}
319
320.video_wrapper {
321 position: relative;
322 padding-bottom: 56.25%;
323}
324
325iframe {
326 position: absolute;
327 top: 0;
328 left: 0;
329 width: 100%;
330 height: 100%;
331}
332
333main figure {
334 margin: 2rem 0;
335 transition: transform var(--vp-tt);
336}
337
338.vp-doc > div > p > img {
339 @apply rounded-lg;
340}
341
342main figure img {
343 margin: 0 auto;
344 border-radius: 12px;
345}
346
347main figure figcaption {
348 text-align: center;
349 margin-top: 1.25rem;
350 font-size: 0.875rem;
351 color: var(--vp-c-text-2);
352}
353
354// VitePress v2 probably broke this somewhere idk
355.VPHero .image-src {
356 width: unset !important;
357 height: unset !important;
358 object-fit: contain !important;
359}
360
361@media (min-width: 1440px) {
362 :root {
363 --vp-layout-max-width: 100% !important;
364 /* 100% of the viewport width */
365 --vp-sidebar-width: 300px !important;
366 /* increase sidebar width from default 272px */
367 }
368
369 /* target a div with class .content-container*/
370 .content-container {
371 max-width: 70% !important;
372 /* 888px is the default max-width */
373 }
374}
375
376.custom-block {
377 --uno: "rounded-xl border-2";
378}
379
380:root:not(.dark) .details.custom-block a {
381 color: var(--vp-c-brand-2);
382 font-weight: 500;
383 text-decoration: underline;
384 text-underline-offset: 2px;
385 text-decoration-style: dashed;
386 text-decoration-thickness: 1px;
387 transition: opacity 0.25s;
388}
389
390:root:not(.dark) .details.custom-block a:hover {
391 opacity: 0.7;
392 color: var(--vp-c-brand-1);
393}
394
395.info.custom-block a {
396 color: var(--vp-custom-block-info-text);
397 font-weight: 500;
398 text-decoration: underline;
399 text-underline-offset: 2px;
400 text-decoration-style: dashed;
401 text-decoration-thickness: 1px;
402 transition: opacity 0.25s;
403}
404
405.info.custom-block a:hover {
406 opacity: 0.7;
407 color: var(--vp-custom-block-info-text-deep);
408}
409
410.note.custom-block a {
411 color: var(--vp-custom-block-info-text);
412 font-weight: 500;
413 text-decoration: underline;
414 text-underline-offset: 2px;
415 text-decoration-style: dashed;
416 text-decoration-thickness: 1px;
417 transition: opacity 0.25s;
418}
419
420.note.custom-block a:hover {
421 opacity: 0.7;
422 color: var(--vp-custom-block-note-text-deep);
423}
424
425.tip.custom-block a {
426 color: var(--vp-custom-block-tip-text);
427 font-weight: 500;
428 text-decoration: underline;
429 text-underline-offset: 2px;
430 text-decoration-style: dashed;
431 text-decoration-thickness: 1px;
432 transition: opacity 0.25s;
433}
434
435.tip.custom-block a:hover {
436 opacity: 0.7;
437 color: var(--vp-custom-block-tip-text-deep);
438}
439
440.warning.custom-block a {
441 color: var(--vp-custom-block-warning-text);
442 font-weight: 500;
443 text-decoration: underline;
444 text-underline-offset: 2px;
445 text-decoration-style: dashed;
446 text-decoration-thickness: 1px;
447 transition: opacity 0.25s;
448}
449
450.warning.custom-block a:hover {
451 opacity: 0.7;
452 color: var(--vp-custom-block-warning-text-deep);
453}
454
455.danger.custom-block a {
456 color: var(--vp-custom-block-danger-text);
457 font-weight: 500;
458 text-decoration: underline;
459 text-underline-offset: 2px;
460 text-decoration-style: dashed;
461 text-decoration-thickness: 1px;
462 transition: opacity 0.25s;
463}
464
465.danger.custom-block a:hover {
466 opacity: 0.7;
467 color: var(--vp-custom-block-danger-text-deep);
468}
469
470.info.custom-block {
471 --icon: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGNsYXNzPSJsdWNpZGUgbHVjaWRlLWluZm8iPjxjaXJjbGUgY3g9IjEyIiBjeT0iMTIiIHI9IjEwIi8+PHBhdGggZD0iTTEyIDE2di00Ii8+PHBhdGggZD0iTTEyIDhoLjAxIi8+PC9zdmc+");
472}
473
474.note.custom-block {
475 --icon: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGNsYXNzPSJsdWNpZGUgbHVjaWRlLWluZm8iPjxjaXJjbGUgY3g9IjEyIiBjeT0iMTIiIHI9IjEwIi8+PHBhdGggZD0iTTEyIDE2di00Ii8+PHBhdGggZD0iTTEyIDhoLjAxIi8+PC9zdmc+");
476}
477
478.tip.custom-block {
479 --icon: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGNsYXNzPSJsdWNpZGUgbHVjaWRlLWxpZ2h0YnVsYiI+PHBhdGggZD0iTTE1IDE0Yy4yLTEgLjctMS43IDEuNS0yLjUgMS0uOSAxLjUtMi4yIDEuNS0zLjVBNiA2IDAgMCAwIDYgOGMwIDEgLjIgMi4yIDEuNSAzLjUuNy43IDEuMyAxLjUgMS41IDIuNSIvPjxwYXRoIGQ9Ik05IDE4aDYiLz48cGF0aCBkPSJNMTAgMjJoNCIvPjwvc3ZnPg==");
480}
481
482.warning.custom-block {
483 --icon: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGNsYXNzPSJsdWNpZGUgbHVjaWRlLWFsZXJ0LXRyaWFuZ2xlIj48cGF0aCBkPSJtMjEuNzMgMTgtOC0xNGEyIDIgMCAwIDAtMy40OCAwbC04IDE0QTIgMiAwIDAgMCA0IDIxaDE2YTIgMiAwIDAgMCAxLjczLTNaIi8+PHBhdGggZD0iTTEyIDl2NCIvPjxwYXRoIGQ9Ik0xMiAxN2guMDEiLz48L3N2Zz4=");
484}
485
486.danger.custom-block {
487 --icon: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGNsYXNzPSJsdWNpZGUgbHVjaWRlLXNrdWxsIj48Y2lyY2xlIGN4PSI5IiBjeT0iMTIiIHI9IjEiLz48Y2lyY2xlIGN4PSIxNSIgY3k9IjEyIiByPSIxIi8+PHBhdGggZD0iTTggMjB2Mmg4di0yIi8+PHBhdGggZD0ibTEyLjUgMTctLjUtMS0uNSAxaDF6Ii8+PHBhdGggZD0iTTE2IDIwYTIgMiAwIDAgMCAxLjU2LTMuMjUgOCA4IDAgMSAwLTExLjEyIDBBMiAyIDAgMCAwIDggMjAiLz48L3N2Zz4=");
488}
489
490.custom-block-title {
491 display: inline-flex;
492 align-items: center;
493 gap: 8px;
494}
495
496.custom-block-title::before {
497 content: "";
498 width: 16px;
499 height: 16px;
500 -webkit-mask: var(--icon) no-repeat;
501 mask: var(--icon) no-repeat;
502 -webkit-mask-size: 100% 100%;
503 mask-size: 100% 100%;
504 background-color: currentColor;
505 color: inherit;
506}
507
508.vp-doc h3 {
509 text-decoration: underline;
510}
511
512.vp-doc h1 {
513 font-size: 2.25rem;
514}
515
516.vp-doc h2 {
517 font-size: 1.75rem;
518}
519
520.vp-doc h3 {
521 font-size: 1.4rem;
522}
523
524.vp-doc h4 {
525 font-size: 1.2rem;
526}
527
528.vp-doc h1 {
529 margin-top: 0.5rem;
530 margin-bottom: 0.5rem;
531}
532
533.vp-doc h2 {
534 margin-top: 1.5rem;
535 margin-bottom: 0.5rem;
536 border-top-color: #525252;
537}
538
539.vp-doc h1 + .vp-nolebase-page-properties {
540 display: none;
541}
542
543.vp-doc h4 {
544 margin-top: 1rem;
545 margin-bottom: 1rem;
546}
547
548/* Make the page half the width for class `sandbox` */
549.sandbox {
550 max-width: 50%;
551 width: 50%;
552 margin: 0 auto;
553}
554.v-popper__arrow-container {
555 display: none;
556}
557
558/** Two-tone rows, applied per-cell so rowspan cells keep the default color */
559.vp-doc table tbody tr:nth-child(even) td:not([rowspan]),
560table tbody tr:nth-child(even) td:not([rowspan]) {
561 background-color: var(--vp-c-bg-soft);
562}
563
564.vp-doc table tbody td[rowspan],
565.vp-doc table tbody th[rowspan],
566table tbody td[rowspan],
567table tbody th[rowspan] {
568 background-color: var(--vp-c-bg);
569}
570
571.vp-doc table tr,
572.vp-doc table td,
573.vp-doc table th {
574 border-color: #3d3d3d;
575}
576
577/* width: max-content forces exact column sizing so favicon toggling doesn't shrink the right-side gap. */
578@media (max-width: 767px) {
579 .vp-doc table:not(.scrape-table) {
580 width: max-content;
581 }
582
583 .vp-doc table:not(.scrape-table) th,
584 .vp-doc table:not(.scrape-table) td {
585 white-space: nowrap;
586 }
587
588 /* Scroll container injected by wrapTablesInRoot in Layout.vue, isolated from sibling content. */
589 .table-scroll {
590 overflow-x: auto;
591 }
592}
593
594.tip.custom-block table tr,
595.tip.custom-block table td,
596.tip.custom-block table th {
597 border-color: theme("colors.meadow.800") !important;
598}
599
600.info.custom-block table tr,
601.info.custom-block table td,
602.info.custom-block table th {
603 border-color: var(--vp-c-brand-3) !important;
604}
605
606.warning.custom-block table tr,
607.warning.custom-block table td,
608.warning.custom-block table th {
609 border-color: theme("colors.merlin.800") !important;
610}
611
612.danger.custom-block table tr,
613.danger.custom-block table td,
614.danger.custom-block table th {
615 border-color: theme("colors.carnation.800") !important;
616}
617
618.details.custom-block table:not(.scrape-table) tr,
619.details.custom-block table:not(.scrape-table) td,
620.details.custom-block table:not(.scrape-table) th {
621 border-color: var(--vp-c-brand-3) !important;
622}
623
624/** fix for nolebase-git-changelog */
625.vp-nolebase-git-changelog a {
626 text-decoration: none !important;
627}
628
629/** New Styles */
630
631
632::view-transition-group(root) {
633 animation-timing-function: $ease-in-expo;
634 z-index: 100;
635}
636
637::view-transition-new(root) {
638 animation: var(--switch-name) var(--switch-duration);
639 animation-fill-mode: both;
640 animation-timing-function: cubic-bezier(0.7, 0, 0.84, 0);
641}
642
643::view-transition-old(root),
644.dark::view-transition-old(root) {
645 animation: var(--switch-name) var(--switch-duration);
646 animation-fill-mode: both;
647 animation-timing-function: cubic-bezier(0.7, 0, 0.84, 0);
648}
649
650@keyframes scale {
651 0% {
652 mask-size: 0;
653 }
654 10% {
655 mask-size: 25vmax;
656 }
657 90% {
658 mask-size: 25vmax;
659 }
660 100% {
661 mask-size: 750vmax;
662 }
663}
664
665@keyframes scale-fast {
666 0% {
667 mask-size: 0;
668 }
669 10% {
670 mask-size: 25vmax;
671 }
672 87.5% {
673 mask-size: 25vmax;
674 }
675 100% {
676 mask-size: 750vmax;
677 }
678}
679
680/* auto-height */
681.VPSidebarItem {
682 @apply relative;
683
684 .is-link:hover {
685 background-color: var(--vp-c-sidebar-active) !important;
686 }
687
688 .is-link.has-active {
689 background-color: var(--vp-c-sidebar-active) !important;
690 }
691
692 &.collapsible {
693 @apply relative grid w-full pl-0 border-0 motion-reduce:transition-none;
694 grid-template-rows: 1fr;
695 transition: grid-template-rows 0.5s cubic-bezier(0.16, 1, 0.3, 1);
696
697 &.collapsed {
698 @apply motion-reduce:transition-none;
699
700 grid-template-rows: 0fr;
701 transition: grid-template-rows 0.35s cubic-bezier(0.76, 0, 0.24, 1);
702
703 & > .items {
704 @apply block;
705 }
706 }
707
708 & > .item {
709 @apply absolute;
710 }
711
712 & > .items {
713 @apply overflow-hidden pt-9;
714
715 & > .VPSidebarItem {
716 @apply cursor-pointer;
717 }
718 }
719 }
720
721 /* nested accordian */
722 .level-1.collapsible {
723 @apply min-h-8;
724 transition: grid-template-rows 0.5s cubic-bezier(0.16, 1, 0.3, 1)
725 !important;
726
727 &.collapsed {
728 @apply motion-reduce:transition-none;
729
730 transition: grid-template-rows 0.325s cubic-bezier(0.5, 0, 0.75, 0)
731 !important;
732 }
733
734 & > .item {
735 @apply pl-4;
736 }
737
738 & > .items {
739 @apply pt-8;
740
741 & > .VPSidebarItem {
742 @apply cursor-pointer;
743 }
744 }
745 }
746}
747
748#VPSidebarNav > .group,
749#VPSidebarNavMobile > .group {
750 @apply border-t-0 min-h-11 pt-2.25;
751
752 & > .VPSidebarItem {
753 @apply pb-1;
754
755 & > .item {
756 @apply hover:scale-[1.03] focus:scale-[1.03] active:scale-[0.98]
757 transition-all! opacity-85;
758
759 & > .text {
760 @apply flex items-center text-base font-medium py-1.5;
761
762 &::before {
763 @apply mr-2.5 opacity-70;
764
765 --uno-translate-y: calc(0.25rem * 0.175);
766 translate: var(--uno-translate-x) var(--uno-translate-y);
767 }
768 }
769
770 & > .caret {
771 @apply scale-90 translate-y-0.5;
772 }
773 }
774
775 & > .items {
776 & > .VPSidebarItem {
777 @apply pl-4 border-l dark:border-l-neutral-600 rounded-none
778 transition-all duration-100 ease-out;
779
780 /* Separation between nested table of content */
781 &:not(.collapsible),
782 &.collapsible > .items > .VPSidebarItem {
783 &:hover,
784 &:focus,
785 &.is-active.has-active {
786 @apply rounded-lg border-transparent;
787
788 background-color: var(--vp-c-brand-nav-active);
789
790 & > .item > .indicator {
791 background-color: var(--vp-c-brand-1);
792 }
793 }
794 }
795
796 &.collapsible {
797 &:not(.is-active) {
798 & > .item:has(.link):hover,
799 & > .item:has(.link):focus {
800 & > .caret {
801 @apply -translate-x-2;
802 }
803 }
804 }
805
806 & > .item {
807 @apply rounded-lg transition-all duration-100 ease-out;
808
809 &:hover,
810 &:focus {
811 background-color: var(--vp-c-brand-nav-active);
812
813 & > h3 {
814 color: var(--vp-c-brand) !important;
815 }
816
817 & > .indicator {
818 background-color: var(--vp-c-brand);
819 }
820 }
821
822 & > .indicator {
823 @apply translate-x-4;
824 }
825
826 & > h3 {
827 @apply font-normal;
828 }
829
830 &:has(.link):hover,
831 &:has(.link):focus {
832 background-color: var(--vp-c-brand-nav-active);
833
834 & > .indicator {
835 background-color: var(--vp-c-brand);
836 }
837
838 & > .link > h3 {
839 color: var(--vp-c-brand) !important;
840 }
841 }
842 }
843
844 &.is-active > .item {
845 @apply pr-2;
846 background-color: var(--vp-c-brand-nav-active);
847 border-color: var(--vp-c-brand-nav-active) !important;
848
849 & > .indicator {
850 @apply translate-x-4;
851 background-color: var(--vp-c-brand);
852 }
853
854 & > div > .caret-icon {
855 color: var(--vp-c-brand);
856 }
857 }
858
859 & > .items {
860 @apply grid border-0 pl-0;
861
862 & > .VPSidebarItem {
863 @apply border-l pl-4 dark:border-l-neutral-600;
864 }
865
866 & > .caret {
867 &:hover,
868 &:focus {
869 background-color: transparent;
870 }
871 }
872
873 & > .VPSidebarItem {
874 @apply min-h-8;
875 }
876 }
877 }
878 }
879 }
880 }
881}
882
883.VPLocalNav {
884 @apply bg-transparent! border-0!;
885
886 & > .container {
887 @apply relative flex bg-transparent mx-auto px-4 sm:px-6 md:px-0 lg:px-0
888 py-0 mt-2;
889 max-width: 688px;
890
891 & > .menu {
892 @apply p-0;
893 }
894
895 & > .menu,
896 & > .VPLocalNavOutlineDropdown > button {
897 @apply bg-white/80! dark:bg-neutral-800/80! px-2 py-0.75 rounded-xl border
898 border-neutral-700/10 dark:border-neutral-300/10 backdrop-blur-md;
899 }
900
901 & > .VPLocalNavOutlineDropdown {
902 @apply p-0 ml-auto;
903
904 & > .items {
905 @apply top-10 right-4 md:right-0 max-w-[calc(100%-32px)] sm:max-w-sm
906 bg-white/75! dark:bg-neutral-800/75! p-1 rounded-2xl border
907 border-neutral-700/10 dark:border-neutral-300/10 backdrop-blur-md
908 shadow-2xl shadow-black/5;
909 left: unset;
910 transition-duration: 0.5s;
911 transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
912
913 & > .header {
914 @apply h-9 mb-2 bg-transparent;
915 }
916
917 & > .outline {
918 @apply p-0 outline-0 bg-transparent;
919
920 & > .nested {
921 @apply px-0;
922
923 & > li {
924 & > a {
925 @apply px-4;
926 }
927
928 & > a {
929 &:hover,
930 &:focus,
931 &.active {
932 @apply rounded-xl;
933 background-color: var(--vp-c-brand-nav-active);
934 color: var(--vp-c-brand);
935 }
936
937 &.active {
938 @apply font-semibold;
939 }
940 }
941
942 & > ul {
943 @apply pl-4 pr-0;
944
945 & > li {
946 @apply border-l;
947
948 & > a {
949 @apply px-4;
950 }
951
952 & > a {
953 &:hover,
954 &:focus,
955 &.active {
956 @apply rounded-lg;
957 background-color: var(--vp-c-brand-nav-active);
958 color: var(--vp-c-brand);
959 }
960
961 &.active {
962 @apply font-semibold;
963 }
964 }
965 }
966 }
967 }
968 }
969 }
970 }
971 }
972 }
973}
974
975.VPNav {
976 @media (max-width: 1280px) {
977 z-index: 40 !important;
978 }
979
980 & > .VPNavBar {
981 @apply bg-transparent!;
982
983 /* Doc layout */
984 & > .wrapper > .container > .content > .content-body {
985 @apply bg-transparent gap-0;
986 }
987
988 & > .divider {
989 @apply hidden;
990 }
991 }
992}
993
994.VPNavBar {
995 @apply border-0 bg-white/60 dark:bg-neutral-900/60 transition-colors;
996
997 & > .container {
998 & > .content,
999 & > .title {
1000 background: color-mix(in srgb, var(--vp-c-bg) 80%, transparent);
1001 }
1002 }
1003}
1004
1005#contributors,
1006#changelog,
1007.vp-nolebase-git-changelog,
1008.vp-nolebase-git-changelog-history {
1009 @apply max-w-2xl w-full mx-auto my-4;
1010}
1011
1012.vp-nolebase-git-changelog-contributors-list {
1013 @apply gap-2 mb-4;
1014
1015 & > a,
1016 & > div {
1017 font-size: 0;
1018 gap: 0;
1019
1020 & > img {
1021 @apply w-10 h-10;
1022 }
1023 }
1024}
1025
1026#changelog {
1027 @apply h-0 p-0 m-0 border-0;
1028 font-size: 0;
1029}
1030
1031.vp-nolebase-git-changelog-history {
1032 @apply mt-0;
1033}
1034
1035.vp-nolebase-git-changelog-history-list {
1036 @apply bg-neutral-50 dark:bg-neutral-800;
1037}
1038
1039.VPSwitchAppearance {
1040 @apply hover:scale-[1.03] focus:scale-[1.03] active:scale-[0.98]
1041 transition-all! size-7! bg-transparent! border-0! opacity-80 pl-2!
1042 rounded-l-3xl!;
1043
1044 &::before {
1045 @apply hidden;
1046 }
1047
1048 .check {
1049 position: unset;
1050
1051 .icon {
1052 margin-top: 2px;
1053 width: 100%;
1054 height: 100%;
1055 border-radius: 50%;
1056 overflow: visible;
1057
1058 [class^="vpi-"] {
1059 position: absolute;
1060 top: 2px;
1061 left: 2px;
1062 width: 20px;
1063 height: 20px;
1064 color: currentColor;
1065 }
1066 }
1067 }
1068}
1069
1070.VPSidebar {
1071 @apply pb-6! overflow-y-auto;
1072 /* Custom scrollbar */
1073 scrollbar-width: thin;
1074
1075 &::-webkit-scrollbar {
1076 width: 8px;
1077 }
1078
1079 &::-webkit-scrollbar-track {
1080 background: transparent;
1081 }
1082
1083 &::-webkit-scrollbar-thumb {
1084 border-radius: 4px;
1085 }
1086
1087 @media (max-width: 959.9px) {
1088 @apply max-w-68 translate-x-2 translate-y-2 p-1! bg-white/85
1089 dark:bg-neutral-800/85 border dark:border-neutral-700 border-neutral-200
1090 rounded-3xl backdrop-blur shadow-lg overflow-x-hidden overflow-y-auto
1091 max-h-dvh;
1092 height: calc(100dvh - 1rem);
1093
1094 & > .nav {
1095 @apply w-full p-4 pt-2;
1096 }
1097 }
1098}
1099
1100.VPBackdrop.backdrop {
1101 @media (max-width: 1024px) {
1102 @apply bg-black/5!;
1103 }
1104}
1105
1106#VPSidebarNav {
1107 @apply flex flex-col min-h-full;
1108}
1109
1110.VPLocalSearchBox {
1111 & > .backdrop {
1112 @apply bg-black/7.5!;
1113 }
1114
1115 & > .shell {
1116 /* 688px is the max-width of the content (Vitepress default) */
1117 --uno: "gap-0! md:max-w-[688px] px-0! pt-0.5! md:translate-x-2 bg-white! md:bg-white/70! dark:bg-neutral-900! md:dark:bg-neutral-900/90! md:backdrop-blur-xl md:rounded-2xl! md:border dark:border-neutral-700 md:shadow-xl shadow-black/5";
1118
1119 & > .search-bar {
1120 --uno: "w-full py-1.5 px-2 border-0 border-b border-neutral-400/25! dark:border-neutral-600/65! rounded-none";
1121
1122 & > #localsearch-label {
1123 @apply opacity-50!;
1124 }
1125
1126 & > .search-input {
1127 @apply pl-0;
1128 }
1129
1130 & > .search-actions {
1131 @apply gap-0;
1132 }
1133 }
1134
1135 & > .results {
1136 @apply relative gap-1 pb-4 px-3 min-h-full md:min-h-60;
1137
1138 &:has(li)::before {
1139 @apply hidden;
1140 }
1141
1142 & > li {
1143 @apply z-10 scroll-pt-2;
1144
1145 &:first-child {
1146 @apply mt-2;
1147 }
1148
1149 & > .result {
1150 @apply rounded-xl! py-0.5 border-0;
1151
1152 &.selected {
1153 @apply bg-brand-500/5! dark:bg-brand-300/5!;
1154 }
1155 }
1156 }
1157 }
1158
1159 & > .search-keyboard-shortcuts {
1160 @apply z-30 pt-2.5 px-3;
1161
1162 & > span > kbd {
1163 @apply rounded-lg dark:bg-neutral-700!;
1164 }
1165 }
1166 }
1167}
1168
1169.excerpt-wrapper {
1170 & > .excerpt-gradient-bottom,
1171 & > .excerpt-gradient-top {
1172 @apply hidden;
1173 }
1174
1175 & > .excerpt {
1176 & > .vp-doc {
1177 @apply bg-transparent!;
1178 }
1179 }
1180}
1181
1182.VPNavBarMenuGroup > .menu {
1183 @apply top-12 backdrop-blur-xl rounded-2xl;
1184 will-change: opacity;
1185
1186 & > .VPMenu {
1187 @apply bg-white/80! dark:bg-neutral-700/80! p-1 border border-neutral-100
1188 dark:border-neutral-700 rounded-2xl shadow-2xl shadow-black/5;
1189
1190 & > .items {
1191 & > .VPMenuLink > .VPLink {
1192 @apply rounded-xl hover:bg-brand-500/5 focus:bg-brand-500/5
1193 dark:hover:bg-brand-400/25 dark:focus:bg-brand-400/25 duration-0;
1194 }
1195 }
1196 }
1197}
1198
1199.VPNavBarExtra.extra > .menu {
1200 @apply top-12 backdrop-blur-xl rounded-2xl;
1201 will-change: opacity;
1202
1203 & > .VPMenu {
1204 @apply bg-white/80! dark:bg-neutral-700/80! border border-neutral-100
1205 dark:border-neutral-700 rounded-2xl shadow-2xl shadow-black/5;
1206 }
1207}
1208
1209.VPNavBarMenu.menu {
1210 @apply h-11 rounded-l-3xl;
1211
1212 & > .VPFlyout.VPNavBarMenuGroup {
1213 & > .button {
1214 @apply h-11;
1215 }
1216 }
1217
1218 & > .VPFlyout.VPNavBarMenuGroup > .button,
1219 & > a {
1220 @apply backdrop-blur-lg bg-white/80 dark:bg-neutral-900/70;
1221 }
1222
1223 /* Skip screen reader content */
1224 & > *:nth-child(2),
1225 & > *:nth-child(2) > .button {
1226 @apply rounded-l-3xl!;
1227 }
1228}
1229
1230.VPNavBarAppearance.appearance,
1231.VPSocialLinks.VPNavBarSocialLinks.social-links {
1232 @apply hidden!;
1233}
1234
1235@media (min-width: 768px) {
1236 .VPFlyout.VPNavBarExtra.extra {
1237 @apply hidden!;
1238 }
1239}
1240
1241#local-search {
1242 & > .DocSearch-Button {
1243 @apply hover:scale-[1.03] focus:scale-[1.03] active:scale-[0.98]
1244 h-10 rounded-xl backdrop-blur-sm lg:ml-2;
1245 transition: scale 150ms ease !important;
1246 color: var(--docsearch-secondary-text-color);
1247
1248 & > .DocSearch-Button-Container {
1249 & > .DocSearch-Button-Placeholder {
1250 @apply hidden!;
1251 }
1252 }
1253
1254 & > .DocSearch-Button-Keys {
1255 @apply hidden!;
1256 }
1257 }
1258}
1259
1260.VPSidebarItem.is-link:not(.collapsible),
1261.VPSidebarItem.is-link.collapsible > .item {
1262 @apply active:scale-[0.98] transition-all!;
1263}
1264
1265.VPDocAside {
1266 & > .VPDocAsideOutline > .content {
1267 @apply pl-0 border-l-0;
1268
1269 & > .outline-marker {
1270 @apply z-10 w-0.75;
1271 background-color: var(--vp-c-brand-1);
1272 transition-timing-function: $ease-out-expo;
1273 transition-duration: 0.3s;
1274 }
1275
1276 & > .outline-title {
1277 @apply flex items-center font-medium text-neutral-700
1278 dark:text-neutral-100;
1279
1280 &::before {
1281 @apply inline-block size-3.5 bg-cover mr-1.5;
1282 content: "";
1283 background-image: url("data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"lucide lucide-text-align-start-icon lucide-text-align-start\"><path d=\"M21 5H3\"/><path d=\"M15 12H3\"/><path d=\"M17 19H3\"/></svg>");
1284 }
1285
1286 .dark &::before {
1287 @apply invert-100;
1288 }
1289 }
1290
1291 .VPDocOutlineItem.root > li {
1292
1293 &:hover .toc-bookmark-btn,
1294 & .toc-bookmark-btn.is-bookmarked {
1295 opacity: 1;
1296 }
1297
1298 & > .outline-link {
1299 position: relative;
1300 padding-right: 20px;
1301 @apply text-neutral-600/80 dark:text-neutral-300/80 transition-all
1302 dark:hover:text-neutral-300 dark:focus:text-neutral-300;
1303
1304 &:hover,
1305 &:focus,
1306 &.active {
1307 @apply font-semibold;
1308 color: var(--vp-c-brand-1) !important;
1309 transition-timing-function: $ease-out-expo;
1310 transition-duration: 0.35s;
1311 }
1312 }
1313
1314 & > ul {
1315 & > li {
1316 & > a {
1317 @apply leading-7 opacity-60 dark:opacity-70 transition-all;
1318 font-size: 0.825rem;
1319
1320 &:hover,
1321 &:focus,
1322 &.active {
1323 @apply opacity-100 font-semibold;
1324 color: var(--vp-c-brand-1) !important;
1325 transition-timing-function: $ease-out-expo;
1326 transition-duration: 0.35s;
1327 }
1328 }
1329 }
1330 }
1331 }
1332
1333 .toc-bookmark-btn {
1334 position: absolute;
1335 right: 2px;
1336 top: 0;
1337 height: 32px;
1338 display: flex;
1339 align-items: center;
1340 justify-content: center;
1341 width: 16px;
1342 padding: 0;
1343 opacity: 0;
1344 border: none;
1345 background: transparent;
1346 cursor: pointer;
1347 color: var(--vp-c-text-2);
1348 line-height: 0;
1349 transition: opacity 0.2s, color 0.15s;
1350
1351 &.is-bookmarked {
1352 color: var(--vp-c-brand-1);
1353
1354 svg path {
1355 fill: currentColor;
1356 }
1357 }
1358
1359 &:hover {
1360 color: var(--vp-c-brand-1);
1361 }
1362 }
1363
1364 & > .VPDocOutlineItem {
1365 --uno: "border-l-2! border-neutral-100 dark:border-neutral-600 pl-4";
1366 }
1367 }
1368}
1369
1370.VPLocalNavOutlineDropdown .outline > .VPDocOutlineItem > li {
1371 & > .outline-link {
1372 position: relative;
1373 padding-right: 28px !important;
1374 overflow: hidden !important;
1375 text-overflow: ellipsis !important;
1376 white-space: nowrap !important;
1377 }
1378}
1379
1380.VPLocalNavOutlineDropdown .outline {
1381
1382 .toc-bookmark-btn {
1383 position: absolute;
1384 right: 4px;
1385 top: 0;
1386 height: 32px;
1387 display: flex;
1388 align-items: center;
1389 justify-content: center;
1390 width: 16px;
1391 padding: 0;
1392 opacity: 1;
1393 border: none;
1394 background: transparent;
1395 cursor: pointer;
1396 color: var(--vp-c-text-3);
1397 line-height: 0;
1398 transition: color 0.15s;
1399
1400 &.is-bookmarked {
1401 color: var(--vp-c-brand-1);
1402
1403 svg path {
1404 fill: currentColor;
1405 }
1406 }
1407
1408 &:hover {
1409 color: var(--vp-c-brand-1);
1410 }
1411 }
1412}
1413
1414@media (hover: none) {
1415 .VPDocAside .toc-bookmark-btn {
1416 opacity: 1;
1417 }
1418}
1419
1420.aside-container {
1421 padding-top: calc(
1422 var(--vp-nav-height) + var(--vp-layout-top-height, 0px) +
1423 var(--vp-doc-top-height, 0px) +
1424 24px
1425 ) !important;
1426}
1427
1428.VPNavBarSearch.search {
1429 @apply ml-2 pl-0!;
1430}
1431
1432// Search lives in the nav pill, which now shows on phones too.
1433#local-search {
1434 @apply hidden!;
1435}
1436
1437// Nav list is empty and settings live in the pill's gear (which opens its own
1438// panel), so the hamburger is unused on phones.
1439.VPNavBarHamburger {
1440 display: none !important;
1441}
1442
1443// uniform sidepadding for phone ui
1444@media (max-width: 767px) {
1445 .VPNavBar .wrapper {
1446 padding-right: 24px !important;
1447 }
1448}
1449
1450%thin-scrollbar {
1451 scrollbar-width: thin;
1452 &::-webkit-scrollbar {
1453 width: 8px;
1454 }
1455 &::-webkit-scrollbar-track {
1456 background: transparent;
1457 }
1458 &::-webkit-scrollbar-thumb {
1459 border-radius: 4px;
1460 }
1461}
1462
1463%thin-scrollbar-narrow {
1464 scrollbar-width: thin;
1465 &::-webkit-scrollbar {
1466 width: 6px;
1467 }
1468 &::-webkit-scrollbar-track {
1469 background: transparent;
1470 }
1471 &::-webkit-scrollbar-thumb {
1472 border-radius: 3px;
1473 background-color: var(--vp-c-divider);
1474 }
1475}
1476
1477/* Home sidebar menu button in navbar */
1478.home-menu-btn {
1479 display: none;
1480 align-items: center;
1481 justify-content: center;
1482 margin-right: 16px;
1483 color: var(--vp-c-text-2);
1484 cursor: pointer;
1485 transition: color 0.25s;
1486
1487 &:hover {
1488 color: var(--vp-c-text-1);
1489 }
1490
1491 @media (min-width: 960px) {
1492 display: inline-flex;
1493 }
1494}
1495
1496.home-menu-icon {
1497 font-size: 20px;
1498}
1499
1500.home-sidebar-backdrop {
1501 position: fixed;
1502 inset: 0;
1503 z-index: var(--vp-z-index-backdrop, 100);
1504 background-color: rgba(0, 0, 0, 0.6);
1505}
1506
1507/* Home desktop sidebar (left slideout) */
1508.home-sidebar {
1509 position: fixed;
1510 top: 0;
1511 bottom: 0;
1512 left: 0;
1513 z-index: calc(var(--vp-z-index-backdrop, 100) + 1);
1514 padding: 0 32px 32px;
1515 width: var(--vp-sidebar-width);
1516 max-width: calc(100vw - 64px);
1517 background-color: var(--vp-sidebar-bg-color);
1518 box-shadow: var(--vp-c-shadow-3);
1519 overflow-x: hidden;
1520 overflow-y: auto;
1521 overscroll-behavior: contain;
1522 @extend %thin-scrollbar;
1523
1524 .dark & {
1525 box-shadow: var(--vp-shadow-1);
1526 }
1527}
1528
1529.home-sidebar-header {
1530 position: sticky;
1531 top: 0;
1532 z-index: 1;
1533 height: var(--vp-nav-height);
1534 display: flex;
1535 align-items: center;
1536 background-color: var(--vp-sidebar-bg-color);
1537 border-bottom: 1px solid var(--vp-c-divider);
1538}
1539
1540.home-sidebar-logo {
1541 display: flex;
1542 align-items: center;
1543 height: var(--vp-nav-height);
1544 font-size: 16px;
1545 font-weight: 600;
1546 color: var(--vp-c-text-1);
1547 text-decoration: none;
1548}
1549
1550.home-sidebar-logo-img {
1551 margin-right: 8px;
1552 height: var(--vp-nav-logo-height);
1553}
1554
1555.home-sidebar-nav {
1556 padding-top: 10px;
1557}
1558
1559/* Desktop sidebar transitions */
1560.home-fade-enter-active,
1561.home-fade-leave-active {
1562 transition: opacity 0.25s;
1563}
1564
1565.home-fade-enter-from,
1566.home-fade-leave-to {
1567 opacity: 0;
1568}
1569
1570.home-slide-enter-active {
1571 transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.25s;
1572}
1573
1574.home-slide-leave-active {
1575 transition: transform 0.25s ease, opacity 0.5s;
1576}
1577
1578.home-slide-enter-from,
1579.home-slide-leave-to {
1580 transform: translateX(-100%);
1581 opacity: 0;
1582}
1583
1584/* Hide navbar border when home NavScreen is open */
1585.VPNavBar.home.screen-open {
1586 border-bottom: none !important;
1587}
1588
1589/* Home NavScreen: restyle as left-aligned floating panel matching VPSidebar */
1590.VPNavScreen:has(.home-screen-nav) {
1591 @apply bg-white/85 dark:bg-neutral-800/85 border dark:border-neutral-700
1592 border-neutral-200 rounded-3xl backdrop-blur shadow-lg;
1593 padding: 0 !important;
1594 left: 0.5rem !important;
1595 right: auto !important;
1596 top: 0.5rem !important;
1597 bottom: 0.5rem !important;
1598 width: calc(100vw - 64px) !important;
1599 max-width: 320px !important;
1600 overflow-x: hidden !important;
1601 @extend %thin-scrollbar-narrow;
1602
1603 & > * {
1604 max-width: 100% !important;
1605 padding: 16px 16px 0 !important;
1606 display: flex !important;
1607 flex-direction: column !important;
1608 min-height: 100%;
1609 }
1610
1611 .VPNavScreenAppearance {
1612 margin-top: 24px !important;
1613 }
1614
1615 .VPNavScreenSocialLinks {
1616 margin-top: auto !important;
1617 padding: 16px 0 !important;
1618 display: flex;
1619 justify-content: center;
1620 }
1621}
1622
1623.home-screen-nav {
1624 padding-top: 8px;
1625}
1626
1627/* Override NavScreen fade transition to slide-from-left on home */
1628.VPNavScreen:has(.home-screen-nav) {
1629 &.fade-enter-active,
1630 &.fade-leave-active {
1631 transition:
1632 transform 0.3s cubic-bezier(0.19, 1, 0.22, 1),
1633 opacity 0.25s !important;
1634
1635 .container {
1636 transform: none !important;
1637 }
1638 }
1639
1640 &.fade-enter-from,
1641 &.fade-leave-to {
1642 transform: translateX(-100%) !important;
1643 opacity: 0 !important;
1644 }
1645}
1646
1647// Applied to <html> when the "Effects" preference is off (the default).
1648// Strips backdrop blur, view/page transitions and scaling bounces.
1649html.effects-disabled {
1650 &::view-transition-group(root),
1651 &::view-transition-new(root),
1652 &::view-transition-old(root) {
1653 animation: none !important;
1654 }
1655
1656 .VPLocalSearchBox,
1657 .VPLocalSearchBox * {
1658 animation: none !important;
1659 scroll-behavior: auto !important;
1660 transition-duration: 0s !important;
1661 }
1662
1663 .VPLocalNav > .container > .menu,
1664 .VPLocalNav > .container > .VPLocalNavOutlineDropdown > button,
1665 .VPLocalNav > .container > .VPLocalNavOutlineDropdown > .items,
1666 .VPSidebar,
1667 .VPLocalSearchBox > .shell,
1668 .VPNavBarMenuGroup > .menu,
1669 .VPNavBarExtra.extra > .menu,
1670 .VPNavBarMenu.menu > .VPFlyout.VPNavBarMenuGroup > .button,
1671 .VPNavBarMenu.menu > a,
1672 .VPNavBarAppearance.appearance,
1673 .VPSocialLinks.VPNavBarSocialLinks.social-links,
1674 .VPFlyout.VPNavBarExtra.extra > .button,
1675 #local-search > .DocSearch-Button,
1676 .VPNolebaseEnhancedReadabilitiesMenuFlyout,
1677 .nav-actions,
1678 .VPNavScreen:has(.home-screen-nav) {
1679 backdrop-filter: none !important;
1680 -webkit-backdrop-filter: none !important;
1681 }
1682
1683 .VPLocalNav > .container > .menu,
1684 .VPLocalNav > .container > .VPLocalNavOutlineDropdown > button,
1685 .VPLocalNav > .container > .VPLocalNavOutlineDropdown > .items,
1686 .VPLocalSearchBox > .shell,
1687 .VPNavBarMenuGroup > .menu > .VPMenu,
1688 .VPNavBarExtra.extra > .menu > .VPMenu,
1689 .VPNavBarMenu.menu > .VPFlyout.VPNavBarMenuGroup > .button,
1690 .VPNavBarMenu.menu > a,
1691 .VPNavBarAppearance.appearance,
1692 .VPSocialLinks.VPNavBarSocialLinks.social-links,
1693 .VPNolebaseEnhancedReadabilitiesMenuFlyout,
1694 .nav-actions,
1695 .VPFlyout.VPNavBarExtra.extra,
1696 .VPNavScreen:has(.home-screen-nav) {
1697 background-color: var(--vp-c-bg) !important;
1698 }
1699
1700 &.dark {
1701 .VPNavBarAppearance.appearance,
1702 .VPSocialLinks.VPNavBarSocialLinks.social-links,
1703 .nav-actions,
1704 .VPNolebaseEnhancedReadabilitiesMenuFlyout {
1705 background-color: var(--wk-c-nav-solid-bg) !important;
1706 }
1707 }
1708
1709 @media (max-width: 959.9px) {
1710 .VPSidebar {
1711 background-color: var(--vp-sidebar-bg-color) !important;
1712 }
1713 }
1714
1715 // Sidebar group header hover/active scale bounce
1716 #VPSidebarNav > .group > .VPSidebarItem > .item,
1717 #VPSidebarNavMobile > .group > .VPSidebarItem > .item,
1718 // Sidebar link item active scale bounce
1719 .VPSidebarItem.is-link:not(.collapsible),
1720 .VPSidebarItem.is-link.collapsible > .item,
1721 // Search button hover/active scale bounce
1722 #local-search > .DocSearch-Button,
1723 // Appearance (dark/light) toggle hover/active scale bounce
1724 .VPSwitchAppearance {
1725 scale: none !important;
1726 transition: none !important;
1727 }
1728
1729 // ToC semi-bold during being selected
1730 .VPDocAsideOutline a.outline-link,
1731 .VPLocalNavOutlineDropdown a.outline-link {
1732 font-weight: normal !important;
1733 transition: none !important;
1734 }
1735
1736 // Nav-pill button + dropdown panel active/open scale bounces
1737 .nav-action-btn:active,
1738 .nav-actions .VPSocialLink:active,
1739 .VPNolebaseEnhancedReadabilitiesMenuFlyout .button:active,
1740 .bookmarks-btn:active,
1741 .bookmarks-panel-enter-from,
1742 .bookmarks-panel-leave-to,
1743 .settings-popup-enter-from,
1744 .settings-popup-leave-to {
1745 transform: none !important;
1746 }
1747}
1748
1749// favicons beside external links
1750.wk-favicon {
1751 display: inline-block;
1752 width: 14px;
1753 height: 14px;
1754 margin: 0 0.3em 0 0.1em;
1755 vertical-align: -2px;
1756 border-radius: 3px;
1757 background: var(--vp-c-default-soft);
1758}
1759
1760.wk-favicon-fallback {
1761 background: none;
1762 color: var(--vp-c-text-3);
1763 position: relative;
1764 top: 2px;
1765}
1766
1767/* Icon tooltips (hover on desktop, tap on mobile) */
1768.icon-tip {
1769 position: relative;
1770 display: inline-block;
1771 vertical-align: -0.125em;
1772 cursor: help;
1773}
1774
1775/* Base icon wrapper for consistent alignment */
1776.icon {
1777 display: inline-block;
1778 vertical-align: -0.125em;
1779}
1780
1781/* adds space betn mirror and tooltip button */
1782
1783.mirror-wrapper + .v-popper.v-popper--theme-vp-tooltip,
1784.v-popper.v-popper--theme-vp-tooltip + .mirror-wrapper {
1785 margin-left: 0.25em;
1786}
1787
1788/* Fixed-position tooltip rendered into <body> by JS to escape table overflow clipping */
1789.icon-tip-popup {
1790 position: fixed;
1791 padding: 4px 8px;
1792 border-radius: 6px;
1793 background: var(--vp-c-bg-elv);
1794 color: var(--vp-c-text-1);
1795 font-size: 12px;
1796 line-height: 1.4;
1797 white-space: nowrap;
1798 box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
1799 pointer-events: none;
1800 z-index: 9999;
1801 opacity: 0;
1802 transition: opacity 0.15s;
1803
1804 &.visible {
1805 opacity: 1;
1806 }
1807}
1808
1809/* Manual column copy button */
1810.vp-doc table td.has-manual-copy {
1811 vertical-align: middle;
1812 white-space: nowrap;
1813}
1814
1815.manual-copy-btn {
1816 vertical-align: -0.2em;
1817 display: inline-flex;
1818 align-items: center;
1819 justify-content: center;
1820 margin-left: 4px;
1821 padding: 0;
1822 border: none;
1823 background: none;
1824 color: var(--vp-c-text-3);
1825 cursor: pointer;
1826 line-height: 1;
1827 transition: color 0.15s;
1828
1829 &:hover {
1830 color: var(--vp-c-text-1);
1831 }
1832
1833 &.copied {
1834 color: var(--vp-c-green-1);
1835 }
1836}
1837
1838/* ScrapeTable */
1839:root {
1840 --scrape-cell-bg: #ebedf0;
1841 --scrape-cell-active: #56d364;
1842 --scrape-cell-active-sd: #ff4d4f;
1843}
1844
1845.dark {
1846 --scrape-cell-bg: #151b23;
1847}
1848
1849/* Override VitePress .vp-doc table/tr/th/td defaults */
1850.scrape-table {
1851 display: table !important;
1852 table-layout: fixed;
1853 border-collapse: separate !important;
1854 border-spacing: 0;
1855 white-space: nowrap;
1856 width: max-content;
1857 overflow: visible !important;
1858 margin: 0 !important;
1859 margin-right: 1px !important;
1860
1861 .col-cell {
1862 width: 34px;
1863 }
1864
1865 tr {
1866 background: transparent !important;
1867 border: none !important;
1868 }
1869
1870 th, td {
1871 background: var(--vp-c-bg) !important;
1872 padding: 0 !important;
1873 border: none !important;
1874 }
1875
1876 .corner,
1877 .source-header {
1878 border: 1px solid var(--vp-c-divider) !important;
1879 border-left: none !important;
1880 }
1881
1882 .corner {
1883 position: sticky;
1884 left: 0;
1885 z-index: 2;
1886 padding: 0 12px !important;
1887 height: var(--scrape-header-height, 140px);
1888 background-color: var(--vp-c-bg-soft) !important;
1889 border-left: 1px solid var(--vp-c-divider) !important;
1890 color: var(--vp-c-text-1) !important;
1891 font-weight: 600;
1892 font-size: 13px;
1893 vertical-align: middle;
1894 text-align: center;
1895 }
1896
1897 .source-header {
1898 vertical-align: bottom;
1899 height: var(--scrape-header-height, 140px);
1900 text-align: center;
1901 background: var(--vp-c-bg) !important;
1902
1903 span {
1904 writing-mode: vertical-lr;
1905 transform: rotate(180deg);
1906 display: inline-block;
1907 font-weight: 600;
1908 color: var(--vp-c-text-1);
1909 font-size: 12px;
1910 }
1911 }
1912
1913 .site-name {
1914 position: sticky;
1915 left: 0;
1916 z-index: 1;
1917 padding: 4px 12px !important;
1918 background: var(--vp-c-bg) !important;
1919 border: 1px solid var(--vp-c-divider) !important;
1920 border-top: none !important;
1921 color: var(--vp-c-text-1);
1922 font-weight: 600;
1923 font-size: 13px;
1924 line-height: 1;
1925 }
1926
1927 .cell {
1928 border: 2px solid transparent !important;
1929 height: 34px;
1930 position: relative;
1931
1932 &::before {
1933 content: "";
1934 display: block;
1935 width: 100%;
1936 height: 100%;
1937 border-radius: 6px;
1938 background: var(--scrape-cell-bg);
1939 }
1940
1941 &.active::before {
1942 background: var(--scrape-cell-active);
1943 }
1944
1945 &.active-sd::before {
1946 background: var(--scrape-cell-active-sd);
1947 }
1948
1949 &.active[title]:hover::after {
1950 content: attr(title);
1951 position: absolute;
1952 bottom: calc(100% + 4px);
1953 left: 50%;
1954 transform: translateX(-50%);
1955 padding: 3px 8px;
1956 border-radius: 6px;
1957 background: var(--vp-c-bg-elv);
1958 color: var(--vp-c-text-1);
1959 font-size: 11px;
1960 white-space: nowrap;
1961 box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
1962 z-index: 10;
1963 pointer-events: none;
1964 }
1965 }
1966}
1967
1968.vp-doc .vp-card,
1969.vp-doc .vp-card:hover,
1970.vp-doc .vp-card:focus,
1971.vp-doc .vp-card:visited {
1972 text-decoration: none !important;
1973}
1974
1975.VPFeature {
1976 border: 2px solid #3d3d3d !important;
1977 transition: border-color 0.25s !important;
1978
1979 &:hover {
1980 border-color: var(--vp-c-brand-1) !important;
1981 }
1982}
1983
1984.vp-doc .vp-card .vp-card-title {
1985 text-decoration: none !important;
1986 border-top: none !important;
1987}
1988
1989:root {
1990 --vp-plugin-tabs-tab-text-color: var(--vp-c-text-2);
1991 --vp-plugin-tabs-tab-active-text-color: var(--vp-c-text-1);
1992 --vp-plugin-tabs-tab-hover-text-color: var(--vp-c-text-1);
1993 --vp-plugin-tabs-tab-bg: var(--vp-c-bg-soft);
1994 --vp-plugin-tabs-tab-divider: var(--vp-c-divider);
1995 --vp-plugin-tabs-tab-active-bar-color: var(--vp-c-brand-1);
1996}
1997
1998.plugin-tabs {
1999 margin: 16px 0;
2000 background-color: var(--vp-plugin-tabs-tab-bg);
2001 border: 2px solid #3d3d3d;
2002 border-radius: var(--radius-xl);
2003}
2004
2005.plugin-tabs--tab-list {
2006 position: relative;
2007 padding: 0 12px;
2008 overflow-x: auto;
2009 overflow-y: hidden;
2010}
2011
2012.plugin-tabs--tab-list::after {
2013 content: "";
2014 position: absolute;
2015 right: 0;
2016 bottom: 0;
2017 left: 0;
2018 height: 2px;
2019 background-color: var(--vp-plugin-tabs-tab-divider);
2020}
2021
2022.plugin-tabs--tab {
2023 position: relative;
2024 padding: 0 12px;
2025 border-bottom: 2px solid transparent;
2026 color: var(--vp-plugin-tabs-tab-text-color);
2027 font-size: 14px;
2028 font-weight: 500;
2029 line-height: 48px;
2030 white-space: nowrap;
2031 transition: color 0.25s;
2032}
2033
2034.plugin-tabs--tab[aria-selected="true"] {
2035 color: var(--vp-plugin-tabs-tab-active-text-color);
2036}
2037
2038.plugin-tabs--tab:hover {
2039 color: var(--vp-plugin-tabs-tab-hover-text-color);
2040}
2041
2042.plugin-tabs--tab::after {
2043 content: "";
2044 position: absolute;
2045 z-index: 1;
2046 right: 8px;
2047 bottom: -2px;
2048 left: 8px;
2049 height: 2px;
2050 background-color: transparent;
2051 transition: background-color 0.25s;
2052}
2053
2054.plugin-tabs--tab[aria-selected="true"]::after {
2055 background-color: var(--vp-plugin-tabs-tab-active-bar-color);
2056}
2057
2058.plugin-tabs--content {
2059 padding: 16px;
2060}
2061
2062.plugin-tabs--content[data-is-print="true"]:not(:last-child) {
2063 border-bottom: 2px solid var(--vp-plugin-tabs-tab-divider);
2064}
2065
2066.plugin-tabs--content > :first-child:first-child {
2067 margin-top: 0;
2068}
2069
2070.plugin-tabs--content > :last-child:last-child {
2071 margin-bottom: 0;
2072}
2073
2074.plugin-tabs--content > div[class*="language-"] {
2075 margin: 16px 0;
2076 border-radius: 8px;
2077}
2078
2079:root:not(.dark) .plugin-tabs--content div[class*="language-"] {
2080 background-color: var(--vp-c-bg);
2081}
2082
2083.vp-doc .collapsible-search-heading,
2084.vp-doc .tab-search-heading {
2085 position: absolute;
2086 width: 1px;
2087 height: 1px;
2088 padding: 0;
2089 margin: -1px;
2090 overflow: hidden;
2091 clip: rect(0, 0, 0, 0);
2092 white-space: nowrap;
2093 border: 0;
2094}
2095
2096/* noteblock icon shrinking and top-bottom padding fix */
2097.vp-doc .custom-block-title {
2098 display: flex;
2099 align-items: flex-start;
2100 gap: 6px;
2101}
2102
2103.vp-doc .custom-block-title::before {
2104 flex-shrink: 0;
2105 margin-top: 3px;
2106}
2107
2108/* so that the gap only applies to title only blocks. check layout.vue for initTitleOnly() */
2109
2110.vp-doc .custom-block.title-only {
2111 padding-bottom: 16px;
2112}
2113
2114html:not(.dark) .nolebase-ui-input-horizontal-option {
2115 --nolebase-ui-input-horizontal-option-active-bg: var(--vp-c-bg);
2116 --nolebase-ui-input-horizontal-option-active-text: var(--vp-c-text-1);
2117}
2118
2119/* Hide the default VitePress mobile appearance toggle and social links — we render them ourselves in ScreenMenu */
2120#VPNavScreen .VPNavScreenAppearance,
2121#VPNavScreen .VPNavScreenSocialLinks {
2122 display: none;
2123}
2124
2125.screen-menu-social-links {
2126 padding-top: 8px;
2127 border-top: 1px solid var(--vp-c-divider);
2128}