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