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