docs/.vitepress/theme/styles/style.scss
1223 lines · 30442 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 tr,
482.details.custom-block table td,
483.details.custom-block 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-group(root) {
500 animation-timing-function: $ease-in-expo;
501 z-index: 100;
502}
503
504::view-transition-new(root) {
505 animation: var(--switch-name) var(--switch-duration);
506 animation-fill-mode: both;
507 animation-timing-function: cubic-bezier(0.7, 0, 0.84, 0);
508}
509
510::view-transition-old(root),
511.dark::view-transition-old(root) {
512 animation: var(--switch-name) var(--switch-duration);
513 animation-fill-mode: both;
514 animation-timing-function: cubic-bezier(0.7, 0, 0.84, 0);
515}
516
517@keyframes scale {
518 0% {
519 mask-size: 0;
520 }
521 10% {
522 mask-size: 25vmax;
523 }
524 90% {
525 mask-size: 25vmax;
526 }
527 100% {
528 mask-size: 750vmax;
529 }
530}
531
532@keyframes scale-fast {
533 0% {
534 mask-size: 0;
535 }
536 10% {
537 mask-size: 25vmax;
538 }
539 87.5% {
540 mask-size: 25vmax;
541 }
542 100% {
543 mask-size: 750vmax;
544 }
545}
546
547/* auto-height */
548.VPSidebarItem {
549 @apply relative;
550
551 .is-link:hover {
552 @apply bg-brand-800/15! dark:bg-brand-500/15!;
553 }
554
555 .is-link.has-active {
556 @apply bg-brand-800/15! dark:bg-brand-500/15!;
557 }
558
559 &.collapsible {
560 @apply relative grid w-full pl-0 border-0 motion-reduce:transition-none;
561 grid-template-rows: 1fr;
562 transition: grid-template-rows 0.5s cubic-bezier(0.16, 1, 0.3, 1);
563
564 &.collapsed {
565 @apply motion-reduce:transition-none;
566
567 grid-template-rows: 0fr;
568 transition: grid-template-rows 0.35s cubic-bezier(0.76, 0, 0.24, 1);
569
570 & > .items {
571 @apply block;
572 }
573 }
574
575 & > .item {
576 @apply absolute;
577 }
578
579 & > .items {
580 @apply overflow-hidden pt-9;
581
582 & > .VPSidebarItem {
583 @apply cursor-pointer;
584 }
585 }
586 }
587
588 /* nested accordian */
589 .level-1.collapsible {
590 @apply min-h-8;
591 transition: grid-template-rows 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
592
593 &.collapsed {
594 @apply motion-reduce:transition-none;
595
596 transition: grid-template-rows 0.325s cubic-bezier(0.5, 0, 0.75, 0) !important;
597 }
598
599 & > .item {
600 @apply pl-4;
601 }
602
603 & > .items {
604 @apply pt-8;
605
606 & > .VPSidebarItem {
607 @apply cursor-pointer;
608 }
609 }
610 }
611}
612
613#VPSidebarNav > .group {
614 @apply border-t-0 min-h-11 pt-2.25;
615
616 & > .VPSidebarItem {
617 @apply pb-1;
618
619 & > .item {
620 @apply hover:scale-[1.03] focus:scale-[1.03] active:scale-[0.98]
621 transition-all! opacity-85;
622
623 & > .text {
624 @apply flex items-center text-base font-medium py-1.5;
625
626 &::before {
627 @apply mr-2.5 opacity-70;
628
629 --uno-translate-y: calc(0.25rem * 0.175);
630 translate: var(--uno-translate-x) var(--uno-translate-y);
631 }
632 }
633
634 & > .caret {
635 @apply scale-90 translate-y-0.5;
636 }
637 }
638
639 & > .items {
640 & > .VPSidebarItem {
641 @apply pl-4 border-l dark:border-l-neutral-600 rounded-none
642 transition-all duration-100 ease-out;
643
644 /* Separation between nested table of content */
645 &:not(.collapsible),
646 &.collapsible > .items > .VPSidebarItem {
647 &:hover,
648 &:focus,
649 &.is-active.has-active {
650 @apply rounded-lg border-transparent;
651
652 background-color: var(--vp-c-brand-nav-active);
653
654 & > .item > .indicator {
655 background-color: var(--vp-c-brand-1);
656 }
657 }
658 }
659
660 &.collapsible {
661 &:not(.is-active) {
662 & > .item:has(.link):hover,
663 & > .item:has(.link):focus {
664 & > .caret {
665 @apply -translate-x-2;
666 }
667 }
668 }
669
670 & > .item {
671 @apply rounded-lg transition-all duration-100 ease-out;
672
673 &:hover,
674 &:focus {
675 background-color: var(--vp-c-brand-nav-active);
676
677 & > h3 {
678 color: var(--vp-c-brand) !important;
679 }
680
681 & > .indicator {
682 background-color: var(--vp-c-brand);
683 }
684 }
685
686 & > .indicator {
687 @apply translate-x-4;
688 }
689
690 & > h3 {
691 @apply font-normal;
692 }
693
694 &:has(.link):hover,
695 &:has(.link):focus {
696 background-color: var(--vp-c-brand-nav-active);
697
698 & > .indicator {
699 background-color: var(--vp-c-brand);
700 }
701
702 & > .link > h3 {
703 color: var(--vp-c-brand) !important;
704 }
705 }
706 }
707
708 &.is-active > .item {
709 @apply pr-2;
710 background-color: var(--vp-c-brand-nav-active);
711 border-color: var(--vp-c-brand-nav-active) !important;
712
713 & > .indicator {
714 @apply translate-x-4;
715 background-color: var(--vp-c-brand);
716 }
717
718 & > div > .caret-icon {
719 color: var(--vp-c-brand);
720 }
721 }
722
723 & > .items {
724 @apply grid border-0 pl-0;
725
726 & > .VPSidebarItem {
727 @apply border-l pl-4 dark:border-l-neutral-600;
728 }
729
730 & > .caret {
731 &:hover,
732 &:focus {
733 background-color: transparent;
734 }
735 }
736
737 & > .VPSidebarItem {
738 @apply min-h-8;
739 }
740 }
741 }
742 }
743 }
744 }
745}
746
747.VPLocalNav {
748 @apply bg-transparent! border-0!;
749
750 & > .container {
751 @apply relative flex bg-transparent mx-auto px-4 sm:px-6 md:px-0 lg:px-0
752 py-0 mt-2;
753 max-width: 688px;
754
755 & > .menu {
756 @apply p-0;
757 }
758
759 & > .menu,
760 & > .VPLocalNavOutlineDropdown > button {
761 @apply bg-white/80! dark:bg-neutral-800/80! px-2 py-0.75 rounded-xl border
762 border-neutral-700/10 dark:border-neutral-300/10 backdrop-blur-md;
763 }
764
765 & > .VPLocalNavOutlineDropdown {
766 @apply p-0 ml-auto;
767
768 & > .items {
769 @apply top-10 right-4 md:right-0 max-w-[calc(100%-32px)] sm:max-w-sm
770 bg-white/75! dark:bg-neutral-800/75! p-1 rounded-2xl border
771 border-neutral-700/10 dark:border-neutral-300/10 backdrop-blur-md
772 shadow-2xl shadow-black/5;
773 left: unset;
774 transition-duration: 0.5s;
775 transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
776
777 & > .header {
778 @apply h-9 mb-2 bg-transparent;
779 }
780
781 & > .outline {
782 @apply p-0 outline-0 bg-transparent;
783
784 & > .nested {
785 @apply px-0;
786
787 & > li {
788 & > a {
789 @apply px-4;
790 }
791
792 & > a {
793 &:hover,
794 &:focus {
795 @apply rounded-xl;
796 background-color: var(--vp-c-brand-nav-active);
797 color: var(--vp-c-brand);
798 }
799 }
800
801 & > ul {
802 @apply pl-4 pr-0;
803
804 & > li {
805 @apply border-l;
806
807 & > a {
808 @apply px-4;
809 }
810
811 & > a {
812 &:hover,
813 &:focus {
814 @apply rounded-lg;
815 background-color: var(--vp-c-brand-nav-active);
816 color: var(--vp-c-brand);
817 }
818 }
819 }
820 }
821 }
822 }
823 }
824 }
825 }
826 }
827}
828
829.VPNav {
830 @media (max-width: 1280px) {
831 z-index: 40 !important;
832 }
833
834 & > .VPNavBar {
835 @apply bg-transparent!;
836
837 /* Doc layout */
838 & > .wrapper > .container > .content > .content-body {
839 @apply bg-transparent gap-0;
840 }
841
842 & > .divider {
843 @apply hidden;
844 }
845 }
846}
847
848.VPNavBar {
849 @apply border-0 bg-white/60 dark:bg-neutral-900/60 transition-colors;
850
851 & > .container {
852 & > .content,
853 & > .title {
854 background: color-mix(in srgb, var(--vp-c-bg) 80%, transparent);
855 }
856 }
857}
858
859#contributors,
860#changelog,
861.vp-nolebase-git-changelog,
862.vp-nolebase-git-changelog-history {
863 @apply max-w-2xl w-full mx-auto my-4;
864}
865
866.vp-nolebase-git-changelog-contributors-list {
867 @apply gap-2 mb-4;
868
869 & > a,
870 & > div {
871 font-size: 0;
872 gap: 0;
873
874 & > img {
875 @apply w-10 h-10;
876 }
877 }
878}
879
880#changelog {
881 @apply h-0 p-0 m-0 border-0;
882 font-size: 0;
883}
884
885.vp-nolebase-git-changelog-history {
886 @apply mt-0;
887}
888
889.vp-nolebase-git-changelog-history-list {
890 @apply bg-neutral-50 dark:bg-neutral-800;
891}
892
893.VPSwitchAppearance {
894 @apply hover:scale-[1.03] focus:scale-[1.03] active:scale-[0.98]
895 transition-all! size-7! bg-transparent! border-0! opacity-80 pl-2!
896 rounded-l-3xl!;
897
898 &::before {
899 @apply hidden;
900 }
901
902 .check {
903 position: unset;
904
905 .icon {
906 margin-top: 2px;
907 width: 100%;
908 height: 100%;
909 border-radius: 50%;
910 overflow: visible;
911
912 [class^='vpi-'] {
913 position: absolute;
914 top: 2px;
915 left: 2px;
916 width: 20px;
917 height: 20px;
918 color: currentColor;
919 }
920 }
921 }
922}
923
924.VPSidebar {
925 @apply pb-6! overflow-y-auto;
926 /* Custom scrollbar */
927 scrollbar-width: thin;
928
929 &::-webkit-scrollbar {
930 width: 8px;
931 }
932
933 &::-webkit-scrollbar-track {
934 background: transparent;
935 }
936
937 &::-webkit-scrollbar-thumb {
938 border-radius: 4px;
939 }
940
941 @media (max-width: 959.9px) {
942 @apply max-w-68 translate-x-2 translate-y-2 p-1! bg-white/85
943 dark:bg-neutral-800/85 border dark:border-neutral-700 border-neutral-200
944 rounded-3xl backdrop-blur shadow-lg overflow-x-hidden overflow-y-auto
945 max-h-dvh;
946 height: calc(100dvh - 1rem);
947
948 & > .nav {
949 @apply w-full p-4 pt-2;
950 }
951 }
952}
953
954.VPBackdrop.backdrop {
955 @media (max-width: 1024px) {
956 @apply bg-black/5!;
957 }
958}
959
960#VPSidebarNav {
961 @apply flex flex-col min-h-full;
962}
963
964.VPLocalSearchBox {
965 & > .backdrop {
966 @apply bg-black/7.5!;
967 }
968
969 & > .shell {
970 /* 688px is the max-width of the content (Vitepress default) */
971 --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';
972
973 & > .search-bar {
974 --uno: 'w-full py-1.5 px-2 border-0 border-b border-neutral-400/25! dark:border-neutral-600/65! rounded-none';
975
976 & > #localsearch-label {
977 @apply opacity-50!;
978 }
979
980 & > .search-input {
981 @apply pl-0;
982 }
983
984 & > .search-actions {
985 @apply gap-0;
986 }
987 }
988
989 & > .results {
990 @apply relative gap-1 pb-4 px-3 min-h-full md:min-h-60;
991
992 &:has(li)::before {
993 @apply hidden;
994 }
995
996 &::after {
997 @apply fixed hidden md:block left-0 bottom-11 w-full h-0.25
998 bg-neutral-400/25 dark:bg-neutral-600/65;
999 content: '';
1000 }
1001
1002 & > li {
1003 @apply z-10 scroll-pt-2;
1004
1005 &:first-child {
1006 @apply mt-2;
1007 }
1008
1009 & > .result {
1010 @apply rounded-xl! py-0.5 border-0;
1011
1012 &.selected {
1013 @apply bg-brand-500/5! dark:bg-brand-300/5!;
1014 }
1015 }
1016 }
1017 }
1018
1019 & > .search-keyboard-shortcuts {
1020 @apply z-30 pt-2.5 px-3;
1021
1022 & > span > kbd {
1023 @apply rounded-lg dark:bg-neutral-700!;
1024 }
1025 }
1026 }
1027}
1028
1029.excerpt-wrapper {
1030 & > .excerpt-gradient-bottom,
1031 & > .excerpt-gradient-top {
1032 @apply hidden;
1033 }
1034
1035 & > .excerpt {
1036 & > .vp-doc {
1037 @apply bg-transparent!;
1038 }
1039 }
1040}
1041
1042.VPNavBarMenuGroup > .menu {
1043 @apply top-12 backdrop-blur-xl rounded-2xl;
1044 will-change: opacity;
1045
1046 & > .VPMenu {
1047 @apply bg-white/80! dark:bg-neutral-700/80! p-1 border border-neutral-100
1048 dark:border-neutral-700 rounded-2xl shadow-2xl shadow-black/5;
1049
1050 & > .items {
1051 & > .VPMenuLink > .VPLink {
1052 @apply rounded-xl hover:bg-brand-500/5 focus:bg-brand-500/5
1053 dark:hover:bg-brand-400/25 dark:focus:bg-brand-400/25 duration-0;
1054 }
1055 }
1056 }
1057}
1058
1059.VPNavBarExtra.extra > .menu {
1060 @apply top-12 backdrop-blur-xl rounded-2xl;
1061 will-change: opacity;
1062
1063 & > .VPMenu {
1064 @apply bg-white/80! dark:bg-neutral-700/80! border border-neutral-100
1065 dark:border-neutral-700 rounded-2xl shadow-2xl shadow-black/5;
1066 }
1067}
1068
1069/* navbar left side group in order */
1070.VPNavBarMenu.menu {
1071 @apply h-11 rounded-l-3xl;
1072
1073 & > .VPFlyout.VPNavBarMenuGroup {
1074 & > .button {
1075 @apply h-11;
1076 }
1077 }
1078
1079 & > .VPFlyout.VPNavBarMenuGroup > .button,
1080 & > a {
1081 @apply backdrop-blur-lg bg-white/80 dark:bg-neutral-900/70;
1082 }
1083
1084 /* Skip screen reader content */
1085 & > *:nth-child(2),
1086 & > *:nth-child(2) > .button {
1087 @apply rounded-l-3xl!;
1088 }
1089}
1090
1091.VPNavBarAppearance.appearance {
1092 @apply h-11 bg-white/80 dark:bg-neutral-900/70 backdrop-blur-lg rounded-l-3xl;
1093
1094 &::before {
1095 @apply hidden;
1096 }
1097}
1098
1099.VPSocialLinks.VPNavBarSocialLinks.social-links {
1100 @apply h-11 pr-0! pl-1.5! bg-white/80 dark:bg-neutral-900/70 backdrop-blur-lg;
1101}
1102
1103/* ... mobile */
1104.VPFlyout.VPNavBarExtra.extra {
1105 @apply h-11 bg-white/80 dark:bg-neutral-900/70;
1106
1107 & > .button {
1108 @apply h-10.5 backdrop-blur-lg rounded-r-3xl!;
1109 }
1110}
1111
1112/* end navbar leftside group */
1113
1114#local-search {
1115 & > .DocSearch-Button {
1116 @apply hover:scale-[1.03] focus:scale-[1.03] active:scale-[0.98]
1117 transition-all! h-10 rounded-xl backdrop-blur-sm lg:ml-2 sm:bg-red-50;
1118 color: var(--docsearch-secondary-text-color);
1119
1120 @media (width >= 40rem /* 640px */) {
1121 background-color: var(--vp-c-bg-soft);
1122 }
1123
1124 & > .DocSearch-Button-Container {
1125 & > .DocSearch-Button-Placeholder {
1126 @apply pl-2 pr-3 hidden sm:inline;
1127 }
1128 }
1129
1130 & > .DocSearch-Button-Keys {
1131 @apply py-0.75 -translate-y-1 hidden sm:inline;
1132 }
1133 }
1134}
1135
1136.VPSidebarItem.is-link:not(.collapsible),
1137.VPSidebarItem.is-link.collapsible > .item {
1138 @apply active:scale-[0.98] transition-all!;
1139}
1140
1141.VPSocialLinks.VPNavBarSocialLinks.social-links {
1142 @apply pl-2.5;
1143
1144 &::before {
1145 @apply hidden;
1146 }
1147}
1148
1149.VPDocAside {
1150 & > .VPDocAsideOutline > .content {
1151 @apply pl-0 border-l-0;
1152
1153 & > .outline-marker {
1154 @apply z-10 w-0.75 dark:bg-brand-300;
1155 transition-timing-function: $ease-out-expo;
1156 transition-duration: 0.3s;
1157 }
1158
1159 & > .outline-title {
1160 @apply flex items-center font-medium text-neutral-700
1161 dark:text-neutral-100;
1162
1163 &::before {
1164 @apply inline-block size-3.5 bg-cover mr-1.5;
1165 content: '';
1166 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>');
1167 }
1168
1169 .dark &::before {
1170 @apply invert-100;
1171 }
1172 }
1173
1174 .VPDocOutlineItem.root > li {
1175 & > .outline-link {
1176 @apply text-neutral-600/80 dark:text-neutral-300/80 transition-all
1177 dark:hover:text-neutral-300 dark:focus:text-neutral-300;
1178
1179 &:hover,
1180 &:focus,
1181 &.active {
1182 @apply font-semibold dark:text-brand-300!;
1183 color: var(--vp-c-brand-1);
1184 transition-timing-function: $ease-out-expo;
1185 transition-duration: 0.35s;
1186 }
1187 }
1188
1189 & > ul {
1190 & > li {
1191 & > a {
1192 @apply leading-7 opacity-60 dark:opacity-70 transition-all;
1193 font-size: 0.825rem;
1194
1195 &:hover,
1196 &:focus,
1197 &.active {
1198 @apply opacity-100 font-semibold dark:text-brand-300;
1199 color: var(--vp-c-brand-1);
1200 transition-timing-function: $ease-out-expo;
1201 transition-duration: 0.35s;
1202 }
1203 }
1204 }
1205 }
1206 }
1207
1208 & > .VPDocOutlineItem {
1209 --uno: 'border-l-2! border-neutral-100 dark:border-neutral-600 pl-4';
1210 }
1211 }
1212}
1213
1214.aside-container {
1215 padding-top: calc(
1216 var(--vp-nav-height) + var(--vp-layout-top-height, 0px) +
1217 var(--vp-doc-top-height, 0px) + 24px
1218 ) !important;
1219}
1220
1221.VPNavBarSearch.search {
1222 @apply ml-2 pl-0!;
1223}