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