docs/.vitepress/theme/styles/style.scss
1637 lines · 39831 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.5rem; /* Adjust the size as needed */
391}
392
393.vp-doc h2 {
394 font-size: 1.75rem; /* Adjust the size as needed */
395}
396
397.vp-doc h3 {
398 font-size: 1.4rem; /* Adjust the size as needed */
399}
400
401.vp-doc h4 {
402 font-size: 1.2rem; /* Adjust the size as needed */
403}
404
405.vp-doc h1 {
406 margin-top: -0.5rem; /* Adjust the top margin as needed */
407 margin-bottom: -1.5rem; /* Adjust the bottom margin as needed */
408}
409
410.vp-doc h4 {
411 margin-top: 1rem; /* Adjust the top margin as needed */
412 margin-bottom: 1rem; /* Adjust the bottom margin as needed */
413}
414
415.vp-doc._credits div h1 {
416 margin-top: 35px;
417 margin-bottom: 15px;
418}
419
420/* Make the page half the width for class `sandbox` */
421.sandbox {
422 max-width: 50%;
423 width: 50%;
424 margin: 0 auto;
425}
426.v-popper__arrow-container {
427 display: none;
428}
429
430/** Fix for markdown-it-merge-cells */
431.vp-doc table tr:nth-child(even),
432.vp-doc table tr:nth-child(odd) {
433 background-color: transparent !important;
434}
435
436table tr:nth-child(even),
437table tr:nth-child(odd) {
438 background-color: transparent !important;
439}
440
441.tip.custom-block table tr,
442.tip.custom-block table td,
443.tip.custom-block table th {
444 border-color: theme("colors.meadow.800") !important;
445}
446
447.info.custom-block table tr,
448.info.custom-block table td,
449.info.custom-block table th {
450 border-color: theme("colors.brand.800") !important;
451}
452
453.warning.custom-block table tr,
454.warning.custom-block table td,
455.warning.custom-block table th {
456 border-color: theme("colors.merlin.800") !important;
457}
458
459.danger.custom-block table tr,
460.danger.custom-block table td,
461.danger.custom-block table th {
462 border-color: theme("colors.carnation.800") !important;
463}
464
465.details.custom-block table:not(.scrape-table) tr,
466.details.custom-block table:not(.scrape-table) td,
467.details.custom-block table:not(.scrape-table) th {
468 border-color: theme("colors.brand.800") !important;
469}
470
471/** fix for nolebase-git-changelog */
472.vp-nolebase-git-changelog a {
473 text-decoration: none !important;
474}
475
476/** New Styles */
477.VPFooter {
478 .divider {
479 color: var(--vp-c-divider);
480 }
481}
482
483::view-transition-group(root) {
484 animation-timing-function: $ease-in-expo;
485 z-index: 100;
486}
487
488::view-transition-new(root) {
489 animation: var(--switch-name) var(--switch-duration);
490 animation-fill-mode: both;
491 animation-timing-function: cubic-bezier(0.7, 0, 0.84, 0);
492}
493
494::view-transition-old(root),
495.dark::view-transition-old(root) {
496 animation: var(--switch-name) var(--switch-duration);
497 animation-fill-mode: both;
498 animation-timing-function: cubic-bezier(0.7, 0, 0.84, 0);
499}
500
501@keyframes scale {
502 0% {
503 mask-size: 0;
504 }
505 10% {
506 mask-size: 25vmax;
507 }
508 90% {
509 mask-size: 25vmax;
510 }
511 100% {
512 mask-size: 750vmax;
513 }
514}
515
516@keyframes scale-fast {
517 0% {
518 mask-size: 0;
519 }
520 10% {
521 mask-size: 25vmax;
522 }
523 87.5% {
524 mask-size: 25vmax;
525 }
526 100% {
527 mask-size: 750vmax;
528 }
529}
530
531/* auto-height */
532.VPSidebarItem {
533 @apply relative;
534
535 .is-link:hover {
536 @apply bg-brand-800/15! dark:bg-brand-500/15!;
537 }
538
539 .is-link.has-active {
540 @apply bg-brand-800/15! dark:bg-brand-500/15!;
541 }
542
543 &.collapsible {
544 @apply relative grid w-full pl-0 border-0 motion-reduce:transition-none;
545 grid-template-rows: 1fr;
546 transition: grid-template-rows 0.5s cubic-bezier(0.16, 1, 0.3, 1);
547
548 &.collapsed {
549 @apply motion-reduce:transition-none;
550
551 grid-template-rows: 0fr;
552 transition: grid-template-rows 0.35s cubic-bezier(0.76, 0, 0.24, 1);
553
554 & > .items {
555 @apply block;
556 }
557 }
558
559 & > .item {
560 @apply absolute;
561 }
562
563 & > .items {
564 @apply overflow-hidden pt-9;
565
566 & > .VPSidebarItem {
567 @apply cursor-pointer;
568 }
569 }
570 }
571
572 /* nested accordian */
573 .level-1.collapsible {
574 @apply min-h-8;
575 transition: grid-template-rows 0.5s cubic-bezier(0.16, 1, 0.3, 1)
576 !important;
577
578 &.collapsed {
579 @apply motion-reduce:transition-none;
580
581 transition: grid-template-rows 0.325s cubic-bezier(0.5, 0, 0.75, 0)
582 !important;
583 }
584
585 & > .item {
586 @apply pl-4;
587 }
588
589 & > .items {
590 @apply pt-8;
591
592 & > .VPSidebarItem {
593 @apply cursor-pointer;
594 }
595 }
596 }
597}
598
599#VPSidebarNav > .group,
600#VPSidebarNavMobile > .group {
601 @apply border-t-0 min-h-11 pt-2.25;
602
603 & > .VPSidebarItem {
604 @apply pb-1;
605
606 & > .item {
607 @apply hover:scale-[1.03] focus:scale-[1.03] active:scale-[0.98]
608 transition-all! opacity-85;
609
610 & > .text {
611 @apply flex items-center text-base font-medium py-1.5;
612
613 &::before {
614 @apply mr-2.5 opacity-70;
615
616 --uno-translate-y: calc(0.25rem * 0.175);
617 translate: var(--uno-translate-x) var(--uno-translate-y);
618 }
619 }
620
621 & > .caret {
622 @apply scale-90 translate-y-0.5;
623 }
624 }
625
626 & > .items {
627 & > .VPSidebarItem {
628 @apply pl-4 border-l dark:border-l-neutral-600 rounded-none
629 transition-all duration-100 ease-out;
630
631 /* Separation between nested table of content */
632 &:not(.collapsible),
633 &.collapsible > .items > .VPSidebarItem {
634 &:hover,
635 &:focus,
636 &.is-active.has-active {
637 @apply rounded-lg border-transparent;
638
639 background-color: var(--vp-c-brand-nav-active);
640
641 & > .item > .indicator {
642 background-color: var(--vp-c-brand-1);
643 }
644 }
645 }
646
647 &.collapsible {
648 &:not(.is-active) {
649 & > .item:has(.link):hover,
650 & > .item:has(.link):focus {
651 & > .caret {
652 @apply -translate-x-2;
653 }
654 }
655 }
656
657 & > .item {
658 @apply rounded-lg transition-all duration-100 ease-out;
659
660 &:hover,
661 &:focus {
662 background-color: var(--vp-c-brand-nav-active);
663
664 & > h3 {
665 color: var(--vp-c-brand) !important;
666 }
667
668 & > .indicator {
669 background-color: var(--vp-c-brand);
670 }
671 }
672
673 & > .indicator {
674 @apply translate-x-4;
675 }
676
677 & > h3 {
678 @apply font-normal;
679 }
680
681 &:has(.link):hover,
682 &:has(.link):focus {
683 background-color: var(--vp-c-brand-nav-active);
684
685 & > .indicator {
686 background-color: var(--vp-c-brand);
687 }
688
689 & > .link > h3 {
690 color: var(--vp-c-brand) !important;
691 }
692 }
693 }
694
695 &.is-active > .item {
696 @apply pr-2;
697 background-color: var(--vp-c-brand-nav-active);
698 border-color: var(--vp-c-brand-nav-active) !important;
699
700 & > .indicator {
701 @apply translate-x-4;
702 background-color: var(--vp-c-brand);
703 }
704
705 & > div > .caret-icon {
706 color: var(--vp-c-brand);
707 }
708 }
709
710 & > .items {
711 @apply grid border-0 pl-0;
712
713 & > .VPSidebarItem {
714 @apply border-l pl-4 dark:border-l-neutral-600;
715 }
716
717 & > .caret {
718 &:hover,
719 &:focus {
720 background-color: transparent;
721 }
722 }
723
724 & > .VPSidebarItem {
725 @apply min-h-8;
726 }
727 }
728 }
729 }
730 }
731 }
732}
733
734.VPLocalNav {
735 @apply bg-transparent! border-0!;
736
737 & > .container {
738 @apply relative flex bg-transparent mx-auto px-4 sm:px-6 md:px-0 lg:px-0
739 py-0 mt-2;
740 max-width: 688px;
741
742 & > .menu {
743 @apply p-0;
744 }
745
746 & > .menu,
747 & > .VPLocalNavOutlineDropdown > button {
748 @apply bg-white/80! dark:bg-neutral-800/80! px-2 py-0.75 rounded-xl border
749 border-neutral-700/10 dark:border-neutral-300/10 backdrop-blur-md;
750 }
751
752 & > .VPLocalNavOutlineDropdown {
753 @apply p-0 ml-auto;
754
755 & > .items {
756 @apply top-10 right-4 md:right-0 max-w-[calc(100%-32px)] sm:max-w-sm
757 bg-white/75! dark:bg-neutral-800/75! p-1 rounded-2xl border
758 border-neutral-700/10 dark:border-neutral-300/10 backdrop-blur-md
759 shadow-2xl shadow-black/5;
760 left: unset;
761 transition-duration: 0.5s;
762 transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
763
764 & > .header {
765 @apply h-9 mb-2 bg-transparent;
766 }
767
768 & > .outline {
769 @apply p-0 outline-0 bg-transparent;
770
771 & > .nested {
772 @apply px-0;
773
774 & > li {
775 & > a {
776 @apply px-4;
777 }
778
779 & > a {
780 &:hover,
781 &:focus {
782 @apply rounded-xl;
783 background-color: var(--vp-c-brand-nav-active);
784 color: var(--vp-c-brand);
785 }
786 }
787
788 & > ul {
789 @apply pl-4 pr-0;
790
791 & > li {
792 @apply border-l;
793
794 & > a {
795 @apply px-4;
796 }
797
798 & > a {
799 &:hover,
800 &:focus {
801 @apply rounded-lg;
802 background-color: var(--vp-c-brand-nav-active);
803 color: var(--vp-c-brand);
804 }
805 }
806 }
807 }
808 }
809 }
810 }
811 }
812 }
813 }
814}
815
816.VPNav {
817 @media (max-width: 1280px) {
818 z-index: 40 !important;
819 }
820
821 & > .VPNavBar {
822 @apply bg-transparent!;
823
824 /* Doc layout */
825 & > .wrapper > .container > .content > .content-body {
826 @apply bg-transparent gap-0;
827 }
828
829 & > .divider {
830 @apply hidden;
831 }
832 }
833}
834
835.VPNavBar {
836 @apply border-0 bg-white/60 dark:bg-neutral-900/60 transition-colors;
837
838 & > .container {
839 & > .content,
840 & > .title {
841 background: color-mix(in srgb, var(--vp-c-bg) 80%, transparent);
842 }
843 }
844}
845
846#contributors,
847#changelog,
848.vp-nolebase-git-changelog,
849.vp-nolebase-git-changelog-history {
850 @apply max-w-2xl w-full mx-auto my-4;
851}
852
853.vp-nolebase-git-changelog-contributors-list {
854 @apply gap-2 mb-4;
855
856 & > a,
857 & > div {
858 font-size: 0;
859 gap: 0;
860
861 & > img {
862 @apply w-10 h-10;
863 }
864 }
865}
866
867#changelog {
868 @apply h-0 p-0 m-0 border-0;
869 font-size: 0;
870}
871
872.vp-nolebase-git-changelog-history {
873 @apply mt-0;
874}
875
876.vp-nolebase-git-changelog-history-list {
877 @apply bg-neutral-50 dark:bg-neutral-800;
878}
879
880.VPSwitchAppearance {
881 @apply hover:scale-[1.03] focus:scale-[1.03] active:scale-[0.98]
882 transition-all! size-7! bg-transparent! border-0! opacity-80 pl-2!
883 rounded-l-3xl!;
884
885 &::before {
886 @apply hidden;
887 }
888
889 .check {
890 position: unset;
891
892 .icon {
893 margin-top: 2px;
894 width: 100%;
895 height: 100%;
896 border-radius: 50%;
897 overflow: visible;
898
899 [class^="vpi-"] {
900 position: absolute;
901 top: 2px;
902 left: 2px;
903 width: 20px;
904 height: 20px;
905 color: currentColor;
906 }
907 }
908 }
909}
910
911.VPSidebar {
912 @apply pb-6! overflow-y-auto;
913 /* Custom scrollbar */
914 scrollbar-width: thin;
915
916 &::-webkit-scrollbar {
917 width: 8px;
918 }
919
920 &::-webkit-scrollbar-track {
921 background: transparent;
922 }
923
924 &::-webkit-scrollbar-thumb {
925 border-radius: 4px;
926 }
927
928 @media (max-width: 959.9px) {
929 @apply max-w-68 translate-x-2 translate-y-2 p-1! bg-white/85
930 dark:bg-neutral-800/85 border dark:border-neutral-700 border-neutral-200
931 rounded-3xl backdrop-blur shadow-lg overflow-x-hidden overflow-y-auto
932 max-h-dvh;
933 height: calc(100dvh - 1rem);
934
935 & > .nav {
936 @apply w-full p-4 pt-2;
937 }
938 }
939}
940
941.VPBackdrop.backdrop {
942 @media (max-width: 1024px) {
943 @apply bg-black/5!;
944 }
945}
946
947#VPSidebarNav {
948 @apply flex flex-col min-h-full;
949}
950
951.VPLocalSearchBox {
952 & > .backdrop {
953 @apply bg-black/7.5!;
954 }
955
956 & > .shell {
957 /* 688px is the max-width of the content (Vitepress default) */
958 --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";
959
960 & > .search-bar {
961 --uno: "w-full py-1.5 px-2 border-0 border-b border-neutral-400/25! dark:border-neutral-600/65! rounded-none";
962
963 & > #localsearch-label {
964 @apply opacity-50!;
965 }
966
967 & > .search-input {
968 @apply pl-0;
969 }
970
971 & > .search-actions {
972 @apply gap-0;
973 }
974 }
975
976 & > .results {
977 @apply relative gap-1 pb-4 px-3 min-h-full md:min-h-60;
978
979 &:has(li)::before {
980 @apply hidden;
981 }
982
983 &::after {
984 @apply fixed hidden md:block left-0 bottom-11 w-full h-0.25
985 bg-neutral-400/25 dark:bg-neutral-600/65;
986 content: "";
987 }
988
989 & > li {
990 @apply z-10 scroll-pt-2;
991
992 &:first-child {
993 @apply mt-2;
994 }
995
996 & > .result {
997 @apply rounded-xl! py-0.5 border-0;
998
999 &.selected {
1000 @apply bg-brand-500/5! dark:bg-brand-300/5!;
1001 }
1002 }
1003 }
1004 }
1005
1006 & > .search-keyboard-shortcuts {
1007 @apply z-30 pt-2.5 px-3;
1008
1009 & > span > kbd {
1010 @apply rounded-lg dark:bg-neutral-700!;
1011 }
1012 }
1013 }
1014}
1015
1016.excerpt-wrapper {
1017 & > .excerpt-gradient-bottom,
1018 & > .excerpt-gradient-top {
1019 @apply hidden;
1020 }
1021
1022 & > .excerpt {
1023 & > .vp-doc {
1024 @apply bg-transparent!;
1025 }
1026 }
1027}
1028
1029.VPNavBarMenuGroup > .menu {
1030 @apply top-12 backdrop-blur-xl rounded-2xl;
1031 will-change: opacity;
1032
1033 & > .VPMenu {
1034 @apply bg-white/80! dark:bg-neutral-700/80! p-1 border border-neutral-100
1035 dark:border-neutral-700 rounded-2xl shadow-2xl shadow-black/5;
1036
1037 & > .items {
1038 & > .VPMenuLink > .VPLink {
1039 @apply rounded-xl hover:bg-brand-500/5 focus:bg-brand-500/5
1040 dark:hover:bg-brand-400/25 dark:focus:bg-brand-400/25 duration-0;
1041 }
1042 }
1043 }
1044}
1045
1046.VPNavBarExtra.extra > .menu {
1047 @apply top-12 backdrop-blur-xl rounded-2xl;
1048 will-change: opacity;
1049
1050 & > .VPMenu {
1051 @apply bg-white/80! dark:bg-neutral-700/80! border border-neutral-100
1052 dark:border-neutral-700 rounded-2xl shadow-2xl shadow-black/5;
1053 }
1054}
1055
1056/* navbar left side group in order */
1057.VPNavBarMenu.menu {
1058 @apply h-11 rounded-l-3xl;
1059
1060 & > .VPFlyout.VPNavBarMenuGroup {
1061 & > .button {
1062 @apply h-11;
1063 }
1064 }
1065
1066 & > .VPFlyout.VPNavBarMenuGroup > .button,
1067 & > a {
1068 @apply backdrop-blur-lg bg-white/80 dark:bg-neutral-900/70;
1069 }
1070
1071 /* Skip screen reader content */
1072 & > *:nth-child(2),
1073 & > *:nth-child(2) > .button {
1074 @apply rounded-l-3xl!;
1075 }
1076}
1077
1078.VPNavBarAppearance.appearance {
1079 @apply h-11 bg-white/80 dark:bg-neutral-900/70 backdrop-blur-lg rounded-l-3xl;
1080
1081 &::before {
1082 @apply hidden;
1083 }
1084}
1085
1086.VPSocialLinks.VPNavBarSocialLinks.social-links {
1087 @apply h-11 pr-0! pl-1.5! bg-white/80 dark:bg-neutral-900/70 backdrop-blur-lg;
1088}
1089
1090/* ... mobile */
1091.VPFlyout.VPNavBarExtra.extra {
1092 @apply h-11 bg-white/80 dark:bg-neutral-900/70;
1093
1094 & > .button {
1095 @apply h-10.5 backdrop-blur-lg rounded-r-3xl!;
1096 }
1097}
1098
1099/* end navbar leftside group */
1100
1101#local-search {
1102 & > .DocSearch-Button {
1103 @apply hover:scale-[1.03] focus:scale-[1.03] active:scale-[0.98]
1104 transition-all! h-10 rounded-xl backdrop-blur-sm lg:ml-2 sm:bg-red-50;
1105 color: var(--docsearch-secondary-text-color);
1106
1107 @media (width >= 40rem /* 640px */) {
1108 background-color: var(--vp-c-bg-soft);
1109 }
1110
1111 & > .DocSearch-Button-Container {
1112 & > .DocSearch-Button-Placeholder {
1113 @apply pl-2 pr-3 hidden sm:inline;
1114 }
1115 }
1116
1117 & > .DocSearch-Button-Keys {
1118 @apply py-0.75 -translate-y-1 hidden sm:inline;
1119 }
1120 }
1121}
1122
1123.VPSidebarItem.is-link:not(.collapsible),
1124.VPSidebarItem.is-link.collapsible > .item {
1125 @apply active:scale-[0.98] transition-all!;
1126}
1127
1128.VPSocialLinks.VPNavBarSocialLinks.social-links {
1129 @apply pl-2.5;
1130
1131 &::before {
1132 @apply hidden;
1133 }
1134}
1135
1136.VPDocAside {
1137 & > .VPDocAsideOutline > .content {
1138 @apply pl-0 border-l-0;
1139
1140 & > .outline-marker {
1141 @apply z-10 w-0.75 dark:bg-brand-300;
1142 transition-timing-function: $ease-out-expo;
1143 transition-duration: 0.3s;
1144 }
1145
1146 & > .outline-title {
1147 @apply flex items-center font-medium text-neutral-700
1148 dark:text-neutral-100;
1149
1150 &::before {
1151 @apply inline-block size-3.5 bg-cover mr-1.5;
1152 content: "";
1153 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>");
1154 }
1155
1156 .dark &::before {
1157 @apply invert-100;
1158 }
1159 }
1160
1161 .VPDocOutlineItem.root > li {
1162 & > .outline-link {
1163 @apply text-neutral-600/80 dark:text-neutral-300/80 transition-all
1164 dark:hover:text-neutral-300 dark:focus:text-neutral-300;
1165
1166 &:hover,
1167 &:focus,
1168 &.active {
1169 @apply font-semibold dark:text-brand-300!;
1170 color: var(--vp-c-brand-1);
1171 transition-timing-function: $ease-out-expo;
1172 transition-duration: 0.35s;
1173 }
1174 }
1175
1176 & > ul {
1177 & > li {
1178 & > a {
1179 @apply leading-7 opacity-60 dark:opacity-70 transition-all;
1180 font-size: 0.825rem;
1181
1182 &:hover,
1183 &:focus,
1184 &.active {
1185 @apply opacity-100 font-semibold dark:text-brand-300;
1186 color: var(--vp-c-brand-1);
1187 transition-timing-function: $ease-out-expo;
1188 transition-duration: 0.35s;
1189 }
1190 }
1191 }
1192 }
1193 }
1194
1195 & > .VPDocOutlineItem {
1196 --uno: "border-l-2! border-neutral-100 dark:border-neutral-600 pl-4";
1197 }
1198 }
1199}
1200
1201.aside-container {
1202 padding-top: calc(
1203 var(--vp-nav-height) + var(--vp-layout-top-height, 0px) +
1204 var(--vp-doc-top-height, 0px) +
1205 24px
1206 ) !important;
1207}
1208
1209.VPNavBarSearch.search {
1210 @apply ml-2 pl-0!;
1211}
1212
1213%thin-scrollbar {
1214 scrollbar-width: thin;
1215 &::-webkit-scrollbar {
1216 width: 8px;
1217 }
1218 &::-webkit-scrollbar-track {
1219 background: transparent;
1220 }
1221 &::-webkit-scrollbar-thumb {
1222 border-radius: 4px;
1223 }
1224}
1225
1226%thin-scrollbar-narrow {
1227 scrollbar-width: thin;
1228 &::-webkit-scrollbar {
1229 width: 6px;
1230 }
1231 &::-webkit-scrollbar-track {
1232 background: transparent;
1233 }
1234 &::-webkit-scrollbar-thumb {
1235 border-radius: 3px;
1236 background-color: var(--vp-c-divider);
1237 }
1238}
1239
1240/* Home sidebar menu button in navbar */
1241.home-menu-btn {
1242 display: none;
1243 align-items: center;
1244 justify-content: center;
1245 margin-right: 16px;
1246 color: var(--vp-c-text-2);
1247 cursor: pointer;
1248 transition: color 0.25s;
1249
1250 &:hover {
1251 color: var(--vp-c-text-1);
1252 }
1253
1254 @media (min-width: 960px) {
1255 display: inline-flex;
1256 }
1257}
1258
1259.home-menu-icon {
1260 font-size: 20px;
1261}
1262
1263.home-sidebar-backdrop {
1264 position: fixed;
1265 inset: 0;
1266 z-index: var(--vp-z-index-backdrop, 100);
1267 background-color: rgba(0, 0, 0, 0.6);
1268}
1269
1270/* Home desktop sidebar (left slideout) */
1271.home-sidebar {
1272 position: fixed;
1273 top: 0;
1274 bottom: 0;
1275 left: 0;
1276 z-index: calc(var(--vp-z-index-backdrop, 100) + 1);
1277 padding: 0 32px 32px;
1278 width: var(--vp-sidebar-width);
1279 max-width: calc(100vw - 64px);
1280 background-color: var(--vp-sidebar-bg-color);
1281 box-shadow: var(--vp-c-shadow-3);
1282 overflow-x: hidden;
1283 overflow-y: auto;
1284 overscroll-behavior: contain;
1285 @extend %thin-scrollbar;
1286
1287 .dark & {
1288 box-shadow: var(--vp-shadow-1);
1289 }
1290}
1291
1292.home-sidebar-header {
1293 position: sticky;
1294 top: 0;
1295 z-index: 1;
1296 height: var(--vp-nav-height);
1297 display: flex;
1298 align-items: center;
1299 background-color: var(--vp-sidebar-bg-color);
1300 border-bottom: 1px solid var(--vp-c-divider);
1301}
1302
1303.home-sidebar-logo {
1304 display: flex;
1305 align-items: center;
1306 height: var(--vp-nav-height);
1307 font-size: 16px;
1308 font-weight: 600;
1309 color: var(--vp-c-text-1);
1310 text-decoration: none;
1311}
1312
1313.home-sidebar-logo-img {
1314 margin-right: 8px;
1315 height: var(--vp-nav-logo-height);
1316}
1317
1318.home-sidebar-nav {
1319 padding-top: 10px;
1320}
1321
1322/* Desktop sidebar transitions */
1323.home-fade-enter-active,
1324.home-fade-leave-active {
1325 transition: opacity 0.25s;
1326}
1327
1328.home-fade-enter-from,
1329.home-fade-leave-to {
1330 opacity: 0;
1331}
1332
1333.home-slide-enter-active {
1334 transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.25s;
1335}
1336
1337.home-slide-leave-active {
1338 transition: transform 0.25s ease, opacity 0.5s;
1339}
1340
1341.home-slide-enter-from,
1342.home-slide-leave-to {
1343 transform: translateX(-100%);
1344 opacity: 0;
1345}
1346
1347/* Hide navbar border when home NavScreen is open */
1348.VPNavBar.home.screen-open {
1349 border-bottom: none !important;
1350}
1351
1352/* Home NavScreen: restyle as left-aligned floating panel matching VPSidebar */
1353.VPNavScreen:has(.home-screen-nav) {
1354 @apply bg-white/85 dark:bg-neutral-800/85 border dark:border-neutral-700
1355 border-neutral-200 rounded-3xl backdrop-blur shadow-lg;
1356 padding: 0 !important;
1357 left: 0.5rem !important;
1358 right: auto !important;
1359 top: 0.5rem !important;
1360 bottom: 0.5rem !important;
1361 width: calc(100vw - 64px) !important;
1362 max-width: 320px !important;
1363 overflow-x: hidden !important;
1364 @extend %thin-scrollbar-narrow;
1365
1366 & > * {
1367 max-width: 100% !important;
1368 padding: 16px 16px 0 !important;
1369 display: flex !important;
1370 flex-direction: column !important;
1371 min-height: 100%;
1372 }
1373
1374 .VPNavScreenAppearance {
1375 margin-top: 24px !important;
1376 }
1377
1378 .VPNavScreenSocialLinks {
1379 margin-top: auto !important;
1380 padding: 16px 0 !important;
1381 display: flex;
1382 justify-content: center;
1383 }
1384}
1385
1386.home-screen-nav {
1387 padding-top: 8px;
1388}
1389
1390/* Override NavScreen fade transition to slide-from-left on home */
1391.VPNavScreen:has(.home-screen-nav) {
1392 &.fade-enter-active,
1393 &.fade-leave-active {
1394 transition:
1395 transform 0.3s cubic-bezier(0.19, 1, 0.22, 1),
1396 opacity 0.25s !important;
1397
1398 .container {
1399 transform: none !important;
1400 }
1401 }
1402
1403 &.fade-enter-from,
1404 &.fade-leave-to {
1405 transform: translateX(-100%) !important;
1406 opacity: 0 !important;
1407 }
1408}
1409
1410html.reduce-blur-effects {
1411 &::view-transition-group(root),
1412 &::view-transition-new(root),
1413 &::view-transition-old(root) {
1414 animation: none !important;
1415 }
1416
1417 .VPLocalNav > .container > .menu,
1418 .VPLocalNav > .container > .VPLocalNavOutlineDropdown > button,
1419 .VPLocalNav > .container > .VPLocalNavOutlineDropdown > .items,
1420 .VPSidebar,
1421 .VPLocalSearchBox > .shell,
1422 .VPNavBarMenuGroup > .menu,
1423 .VPNavBarExtra.extra > .menu,
1424 .VPNavBarMenu.menu > .VPFlyout.VPNavBarMenuGroup > .button,
1425 .VPNavBarMenu.menu > a,
1426 .VPNavBarAppearance.appearance,
1427 .VPSocialLinks.VPNavBarSocialLinks.social-links,
1428 .VPFlyout.VPNavBarExtra.extra > .button,
1429 #local-search > .DocSearch-Button,
1430 .VPNolebaseEnhancedReadabilitiesMenuFlyout,
1431 .VPNavScreen:has(.home-screen-nav) {
1432 backdrop-filter: none !important;
1433 -webkit-backdrop-filter: none !important;
1434 }
1435
1436 .VPLocalNav > .container > .menu,
1437 .VPLocalNav > .container > .VPLocalNavOutlineDropdown > button,
1438 .VPLocalNav > .container > .VPLocalNavOutlineDropdown > .items,
1439 .VPLocalSearchBox > .shell,
1440 .VPNavBarMenuGroup > .menu > .VPMenu,
1441 .VPNavBarExtra.extra > .menu > .VPMenu,
1442 .VPNavBarMenu.menu > .VPFlyout.VPNavBarMenuGroup > .button,
1443 .VPNavBarMenu.menu > a,
1444 .VPNavBarAppearance.appearance,
1445 .VPSocialLinks.VPNavBarSocialLinks.social-links,
1446 .VPFlyout.VPNavBarExtra.extra,
1447 .VPNavScreen:has(.home-screen-nav) {
1448 background-color: var(--vp-c-bg) !important;
1449 }
1450
1451 .VPNavBarAppearance.appearance,
1452 .VPSocialLinks.VPNavBarSocialLinks.social-links,
1453 .VPNolebaseEnhancedReadabilitiesMenuFlyout {
1454 background-color: #151617 !important;
1455 }
1456
1457 @media (max-width: 959.9px) {
1458 .VPSidebar {
1459 background-color: var(--vp-sidebar-bg-color) !important;
1460 }
1461 }
1462}
1463
1464/* Icon tooltips (hover on desktop, tap on mobile) */
1465.icon-tip {
1466 position: relative;
1467 display: inline-block;
1468 vertical-align: -0.125em;
1469 cursor: help;
1470
1471 &::after {
1472 content: attr(data-tip);
1473 position: absolute;
1474 bottom: calc(100% + 6px);
1475 left: 50%;
1476 transform: translateX(-50%);
1477 padding: 4px 8px;
1478 border-radius: 6px;
1479 background: var(--vp-c-bg-elv);
1480 color: var(--vp-c-text-1);
1481 font-size: 12px;
1482 line-height: 1.4;
1483 white-space: nowrap;
1484 box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
1485 pointer-events: none;
1486 opacity: 0;
1487 transition: opacity 0.15s;
1488 z-index: 10;
1489 }
1490
1491 &:hover::after,
1492 &:focus::after {
1493 opacity: 1;
1494 }
1495}
1496
1497/* ScrapeTable */
1498:root {
1499 --scrape-cell-bg: #ebedf0;
1500 --scrape-cell-active: #56d364;
1501 --scrape-cell-active-sd: #ff4d4f;
1502}
1503
1504.dark {
1505 --scrape-cell-bg: #151b23;
1506}
1507
1508/* Override VitePress .vp-doc table/tr/th/td defaults */
1509.scrape-table {
1510 display: table !important;
1511 table-layout: fixed;
1512 border-collapse: separate !important;
1513 border-spacing: 0;
1514 white-space: nowrap;
1515 width: max-content;
1516 overflow: visible !important;
1517 margin: 0 !important;
1518 margin-right: 1px !important;
1519
1520 .col-cell {
1521 width: 34px;
1522 }
1523
1524 tr {
1525 background: transparent !important;
1526 border: none !important;
1527 }
1528
1529 th, td {
1530 background: var(--vp-c-bg) !important;
1531 padding: 0 !important;
1532 border: none !important;
1533 }
1534
1535 .corner,
1536 .source-header {
1537 border: 1px solid var(--vp-c-divider) !important;
1538 border-left: none !important;
1539 }
1540
1541 .corner {
1542 position: sticky;
1543 left: 0;
1544 z-index: 2;
1545 padding: 0 12px !important;
1546 height: var(--scrape-header-height, 140px);
1547 background-color: var(--vp-c-bg-soft) !important;
1548 border-left: 1px solid var(--vp-c-divider) !important;
1549 color: var(--vp-c-text-1) !important;
1550 font-weight: 600;
1551 font-size: 13px;
1552 vertical-align: middle;
1553 text-align: center;
1554 }
1555
1556 .source-header {
1557 vertical-align: bottom;
1558 height: var(--scrape-header-height, 140px);
1559 text-align: center;
1560 background: var(--vp-c-bg) !important;
1561
1562 span {
1563 writing-mode: vertical-lr;
1564 transform: rotate(180deg);
1565 display: inline-block;
1566 font-weight: 600;
1567 color: var(--vp-c-text-1);
1568 font-size: 12px;
1569 }
1570 }
1571
1572 .site-name {
1573 position: sticky;
1574 left: 0;
1575 z-index: 1;
1576 padding: 4px 12px !important;
1577 background: var(--vp-c-bg) !important;
1578 border: 1px solid var(--vp-c-divider) !important;
1579 border-top: none !important;
1580 color: var(--vp-c-text-1);
1581 font-weight: 600;
1582 font-size: 13px;
1583 line-height: 1;
1584 }
1585
1586 .cell {
1587 border: 2px solid transparent !important;
1588 height: 34px;
1589 position: relative;
1590
1591 &::before {
1592 content: "";
1593 display: block;
1594 width: 100%;
1595 height: 100%;
1596 border-radius: 6px;
1597 background: var(--scrape-cell-bg);
1598 }
1599
1600 &.active::before {
1601 background: var(--scrape-cell-active);
1602 }
1603
1604 &.active-sd::before {
1605 background: var(--scrape-cell-active-sd);
1606 }
1607
1608 &.active[title]:hover::after {
1609 content: attr(title);
1610 position: absolute;
1611 bottom: calc(100% + 4px);
1612 left: 50%;
1613 transform: translateX(-50%);
1614 padding: 3px 8px;
1615 border-radius: 6px;
1616 background: var(--vp-c-bg-elv);
1617 color: var(--vp-c-text-1);
1618 font-size: 11px;
1619 white-space: nowrap;
1620 box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
1621 z-index: 10;
1622 pointer-events: none;
1623 }
1624 }
1625}
1626
1627.vp-doc .vp-card,
1628.vp-doc .vp-card:hover,
1629.vp-doc .vp-card:focus,
1630.vp-doc .vp-card:visited {
1631 text-decoration: none !important;
1632}
1633
1634.vp-doc .vp-card .vp-card-title {
1635 text-decoration: none !important;
1636 border-top: none !important;
1637}