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