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