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