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