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