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