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