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