docs/.vitepress/theme/styles/style.css
524 lines · 14822 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:root {
9 /** Layout */
10 --vp-layout-max-width: 1490px;
11 --vp-sidebar-width: 280px;
12 --vp-nav-logo-height: 36px;
13
14 /** Colors */
15 --vp-c-brand-1: #7bc5e4;
16 --vp-c-brand-2: #1473e6;
17 --vp-c-brand-3: #1473e6;
18 --vp-c-brand-soft: rgba(123, 197, 228, 0.08);
19 --vp-c-green-light: #16a891;
20 --vp-c-brand-nav-active: color-mix(
21 in srgb,
22 var(--vp-c-brand-1) 15%,
23 transparent 100%
24 );
25
26 /** Button brand style */
27 --vp-button-brand-text: var(--vp-c-bg);
28 --vp-button-brand-bg: var(--vp-c-brand-2);
29 --vp-button-brand-hover-text: var(--vp-c-bg);
30 --vp-button-brand-hover-bg: var(--vp-c-brand-1);
31 --vp-button-brand-active-text: var(--vp-c-bg);
32 --vp-button-brand-active-bg: var(--vp-c-brand-1);
33
34 /** Button alt style */
35 --vp-button-alt-border: var(--vp-c-default-3);
36 --vp-button-alt-text: var(--vp-c-text-1);
37 --vp-button-alt-bg: transparent;
38 --vp-button-alt-hover-border: var(--vp-c-default-1);
39 --vp-button-alt-hover-text: var(--vp-c-text-1);
40 --vp-button-alt-hover-bg: transparent;
41 --vp-button-alt-active-border: var(--vp-c-default-1);
42 --vp-button-alt-active-text: var(--vp-c-text-1);
43 --vp-button-alt-active-bg: transparent;
44 --vp-c-bg-nav: rgba(255, 255, 255, 0.7);
45 --vp-c-bg-mark: rgb(232, 232, 232);
46
47 /* Colors: Custom Block */
48 /** Info */
49 --vp-custom-block-info-bg: theme('colors.swarm.100');
50 --vp-custom-block-info-border: theme('colors.swarm.800');
51 --vp-custom-block-info-text: theme('colors.swarm.800');
52 --vp-custom-block-info-text-deep: theme('colors.swarm.900');
53 /** Tip */
54 --vp-custom-block-tip-bg: theme('colors.meadow.100');
55 --vp-custom-block-tip-border: theme('colors.meadow.800');
56 --vp-custom-block-tip-text: theme('colors.meadow.800');
57 --vp-custom-block-tip-text-deep: theme('colors.meadow.900');
58 /** Warning */
59 --vp-custom-block-warning-bg: theme('colors.merlin.100');
60 --vp-custom-block-warning-border: theme('colors.merlin.800');
61 --vp-custom-block-warning-text: theme('colors.merlin.800');
62 --vp-custom-block-warning-text-deep: theme('colors.merlin.900');
63 /** Danger */
64 --vp-custom-block-danger-bg: theme('colors.carnation.100');
65 --vp-custom-block-danger-border: theme('colors.carnation.800');
66 --vp-custom-block-danger-text: theme('colors.carnation.800');
67 --vp-custom-block-danger-text-deep: theme('colors.carnation.900');
68 /** Details */
69 --vp-custom-block-details-bg: var(--vp-custom-block-info-bg);
70 --vp-custom-block-details-border: var(--vp-custom-block-info-border);
71 --vp-custom-block-details-text: var(--vp-custom-block-info-text);
72 --vp-custom-block-details-text-deep: var(--vp-custom-block-info-text-deep);
73}
74
75.dark {
76 --vp-c-bg: rgb(26, 26, 26);
77 --vp-c-bg-alt: rgb(23, 23, 23);
78 --vp-c-bg-nav: rgba(23, 23, 23, 0.8);
79 --vp-c-bg-mark: rgb(0, 0, 0);
80
81 /* Colors: Custom Block */
82 /** Info */
83 --vp-custom-block-info-bg: theme('colors.swarm.950');
84 --vp-custom-block-info-border: theme('colors.swarm.800');
85 --vp-custom-block-info-text: theme('colors.swarm.200');
86 --vp-custom-block-info-text-deep: theme('colors.swarm.200');
87 /** Tip */
88 --vp-custom-block-tip-bg: theme('colors.meadow.950');
89 --vp-custom-block-tip-border: theme('colors.meadow.800');
90 --vp-custom-block-tip-text: theme('colors.meadow.200');
91 --vp-custom-block-tip-text-deep: theme('colors.meadow.200');
92 /** Warning */
93 --vp-custom-block-warning-bg: theme('colors.merlin.950');
94 --vp-custom-block-warning-border: theme('colors.merlin.800');
95 --vp-custom-block-warning-text: theme('colors.merlin.200');
96 --vp-custom-block-warning-text-deep: theme('colors.merlin.200');
97 /** Danger */
98 --vp-custom-block-danger-bg: theme('colors.carnation.950');
99 --vp-custom-block-danger-border: theme('colors.carnation.800');
100 --vp-custom-block-danger-text: theme('colors.carnation.200');
101 --vp-custom-block-danger-text-deep: theme('colors.carnation.200');
102 /** Details */
103 --vp-custom-block-details-bg: var(--vp-custom-block-info-bg);
104 --vp-custom-block-details-border: var(--vp-custom-block-info-border);
105 --vp-custom-block-details-text: var(--vp-custom-block-info-text);
106 --vp-custom-block-details-text-deep: var(--vp-custom-block-info-text-deep);
107}
108
109.vp-doc a {
110 color: var(--vp-c-brand-1);
111 text-decoration: underline;
112 text-underline-offset: 4px;
113 text-decoration-style: solid;
114 text-decoration-color: transparent;
115 -webkit-text-decoration-color: transparent;
116 transition: text-decoration-color 0.25s;
117}
118
119.vp-doc a:hover {
120 color: var(--vp-c-brand-1);
121 text-decoration-color: var(--vp-c-brand-1);
122 -webkit-text-decoration-color: var(--vp-c-brand-1);
123}
124
125:root {
126 --vp-home-hero-name-color: transparent;
127 --vp-home-hero-name-background: -webkit-linear-gradient(
128 -30deg,
129 #62cff4,
130 #1473e6
131 );
132 --vp-home-hero-image-background-image: linear-gradient(
133 -30deg,
134 #62cff4,
135 #9acbec
136 );
137 --vp-home-hero-image-filter: blur(40px);
138}
139
140@media (min-width: 640px) {
141 :root {
142 --vp-home-hero-image-filter: blur(56px);
143 }
144}
145
146@media (min-width: 960px) {
147 :root {
148 --vp-home-hero-image-filter: blur(72px);
149 }
150}
151
152.VPNavBarTitle .title {
153 font-size: 18px;
154 font-weight: 600;
155}
156
157/*
158.VPNavBarTitle .title:after {
159 content: "";
160 margin-left: 2px;
161 margin-top: -6px;
162 display: inline-block;
163 width: 32px;
164 height: 32px;
165 image-rendering: pixelated;
166 background-image: url("/asset/oneko.gif");
167 animation: sleep 1s infinite;
168 cursor: pointer;
169}
170
171.VPNavBarTitle .title:hover:after {
172 animation: wakeup 2.5s 1 forwards;
173}
174
175@keyframes sleep {
176 0%,
177 50% {
178 background-position: -64px 0;
179 }
180 50.00001%,
181 100% {
182 background-position: -64px -32px;
183 }
184}
185
186@keyframes wakeup {
187 0%,
188 20% {
189 background-position: -160px 0;
190 }
191 20.00001%,
192 40% {
193 background-position: -192px 0;
194 }
195 40.00001%,
196 60% {
197 background-position: -224px 0;
198 }
199 60.00001%,
200 80% {
201 background-position: -96px -64px;
202 }
203 80.00001%,
204 100% {
205 background-position: -96px -96px;
206 }
207}
208
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
237.VPSidebarItem.level-1.is-active > .item > .indicator,
238.VPSidebarItem.level-2.is-active > .item > .indicator,
239.VPSidebarItem.level-3.is-active > .item > .indicator,
240.VPSidebarItem.level-4.is-active > .item > .indicator,
241.VPSidebarItem.level-5.is-active > .item > .indicator {
242 background-color: var(--vp-c-brand-1);
243 transition-duration: 0.1s;
244 transition-property: opacity;
245}
246
247main figure {
248 margin: 2rem 0;
249 transition: transform var(--vp-tt);
250}
251
252main figure img {
253 margin: 0 auto;
254 border-radius: 12px;
255}
256
257main figure figcaption {
258 text-align: center;
259 margin-top: 1.25rem;
260 font-size: 0.875rem;
261 color: var(--vp-c-text-2);
262}
263
264@media (min-width: 1440px) {
265 :root {
266 --vp-layout-max-width: 100% !important;
267 /* 100% of the viewport width */
268 --vp-sidebar-width: 300px !important;
269 /* increase sidebar width from default 272px */
270 }
271
272 /* target a div with class .content-container*/
273 .content-container {
274 max-width: 70% !important;
275 /* 888px is the default max-width */
276 }
277}
278
279.info.custom-block {
280 --icon: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGNsYXNzPSJsdWNpZGUgbHVjaWRlLWluZm8iPjxjaXJjbGUgY3g9IjEyIiBjeT0iMTIiIHI9IjEwIi8+PHBhdGggZD0iTTEyIDE2di00Ii8+PHBhdGggZD0iTTEyIDhoLjAxIi8+PC9zdmc+');
281}
282
283.tip.custom-block {
284 --icon: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGNsYXNzPSJsdWNpZGUgbHVjaWRlLWxpZ2h0YnVsYiI+PHBhdGggZD0iTTE1IDE0Yy4yLTEgLjctMS43IDEuNS0yLjUgMS0uOSAxLjUtMi4yIDEuNS0zLjVBNiA2IDAgMCAwIDYgOGMwIDEgLjIgMi4yIDEuNSAzLjUuNy43IDEuMyAxLjUgMS41IDIuNSIvPjxwYXRoIGQ9Ik05IDE4aDYiLz48cGF0aCBkPSJNMTAgMjJoNCIvPjwvc3ZnPg==');
285}
286
287.warning.custom-block {
288 --icon: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGNsYXNzPSJsdWNpZGUgbHVjaWRlLWFsZXJ0LXRyaWFuZ2xlIj48cGF0aCBkPSJtMjEuNzMgMTgtOC0xNGEyIDIgMCAwIDAtMy40OCAwbC04IDE0QTIgMiAwIDAgMCA0IDIxaDE2YTIgMiAwIDAgMCAxLjczLTNaIi8+PHBhdGggZD0iTTEyIDl2NCIvPjxwYXRoIGQ9Ik0xMiAxN2guMDEiLz48L3N2Zz4=');
289}
290
291.danger.custom-block {
292 --icon: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGNsYXNzPSJsdWNpZGUgbHVjaWRlLXNrdWxsIj48Y2lyY2xlIGN4PSI5IiBjeT0iMTIiIHI9IjEiLz48Y2lyY2xlIGN4PSIxNSIgY3k9IjEyIiByPSIxIi8+PHBhdGggZD0iTTggMjB2Mmg4di0yIi8+PHBhdGggZD0ibTEyLjUgMTctLjUtMS0uNSAxaDF6Ii8+PHBhdGggZD0iTTE2IDIwYTIgMiAwIDAgMCAxLjU2LTMuMjUgOCA4IDAgMSAwLTExLjEyIDBBMiAyIDAgMCAwIDggMjAiLz48L3N2Zz4=');
293}
294
295.custom-block-title {
296 display: inline-flex;
297 align-items: center;
298 gap: 8px;
299}
300
301.custom-block-title::before {
302 content: '';
303 width: 16px;
304 height: 16px;
305 -webkit-mask: var(--icon) no-repeat;
306 mask: var(--icon) no-repeat;
307 -webkit-mask-size: 100% 100%;
308 mask-size: 100% 100%;
309 background-color: currentColor;
310 color: inherit;
311}
312
313.vp-doc .custom-block a {
314 text-decoration: underline;
315 text-underline-offset: 4px;
316 text-decoration-style: solid;
317}
318
319.vp-doc h3 {
320 text-decoration: underline;
321}
322
323.vp-doc h1 {
324 font-size: 2.5rem; /* Adjust the size as needed */
325}
326
327.vp-doc h2 {
328 font-size: 1.75rem; /* Adjust the size as needed */
329}
330
331.vp-doc h3 {
332 font-size: 1.4rem; /* Adjust the size as needed */
333}
334
335.vp-doc h4 {
336 font-size: 1.2rem; /* Adjust the size as needed */
337}
338
339.vp-doc h1 {
340 margin-top: -0.5rem; /* Adjust the top margin as needed */
341 margin-bottom: -1.5rem; /* Adjust the bottom margin as needed */
342}
343
344.vp-doc h4 {
345 margin-top: 1rem; /* Adjust the top margin as needed */
346 margin-bottom: 1rem; /* Adjust the bottom margin as needed */
347}
348
349.vp-doc._credits div h1 {
350 margin-top: 35px;
351 margin-bottom: 15px;
352}
353
354/* Make the page half the width for class `sandbox` */
355.sandbox {
356 max-width: 50%;
357 width: 50%;
358 margin: 0 auto;
359}
360.v-popper__arrow-container {
361 display: none;
362}
363
364/** Color links inside custom containers */
365.tip.custom-block a {
366 color: theme('colors.meadow.500');
367}
368
369.tip.custom-block a:hover {
370 color: theme('colors.meadow.400');
371 text-decoration-color: theme('colors.meadow.300');
372 -webkit-text-decoration-color: theme('colors.meadow.300');
373}
374
375.info.custom-block a {
376 color: theme('colors.swarm.500');
377}
378
379.info.custom-block a:hover {
380 color: theme('colors.swarm.400');
381 text-decoration-color: theme('colors.swarm.300');
382 -webkit-text-decoration-color: theme('colors.swarm.300');
383}
384
385.warning.custom-block a {
386 color: theme('colors.merlin.500');
387}
388
389.warning.custom-block a:hover {
390 color: theme('colors.merlin.400');
391 text-decoration-color: theme('colors.merlin.300');
392 -webkit-text-decoration-color: theme('colors.merlin.300');
393}
394
395.danger.custom-block a {
396 color: theme('colors.carnation.500');
397}
398
399.danger.custom-block a:hover {
400 color: theme('colors.carnation.400');
401 text-decoration-color: theme('colors.carnation.300');
402 -webkit-text-decoration-color: theme('colors.carnation.300');
403}
404
405.details.custom-block a {
406 color: theme('colors.swarm.500');
407}
408
409.details.custom-block a:hover {
410 color: theme('colors.swarm.400');
411 text-decoration-color: theme('colors.swarm.300');
412 -webkit-text-decoration-color: theme('colors.swarm.300');
413}
414
415/** Fix for markdown-it-merge-cells */
416.vp-doc table tr:nth-child(even),
417.vp-doc table tr:nth-child(odd) {
418 background-color: transparent !important;
419}
420
421table tr:nth-child(even),
422table tr:nth-child(odd) {
423 background-color: transparent !important;
424}
425
426.tip.custom-block table tr,
427.tip.custom-block table td,
428.tip.custom-block table th {
429 border-color: theme('colors.meadow.800') !important;
430}
431
432.info.custom-block table tr,
433.info.custom-block table td,
434.info.custom-block table th {
435 border-color: theme('colors.swarm.800') !important;
436}
437
438.warning.custom-block table tr,
439.warning.custom-block table td,
440.warning.custom-block table th {
441 border-color: theme('colors.merlin.800') !important;
442}
443
444.danger.custom-block table tr,
445.danger.custom-block table td,
446.danger.custom-block table th {
447 border-color: theme('colors.carnation.800') !important;
448}
449
450.details.custom-block table tr,
451.details.custom-block table td,
452.details.custom-block table th {
453 border-color: theme('colors.swarm.800') !important;
454}
455
456/** fix for nolebase-git-changelog */
457.vp-nolebase-git-changelog a {
458 text-decoration: none !important;
459}
460
461.VPFooter {
462 .divider {
463 color: var(--vp-c-divider);
464 }
465}
466
467#VPSidebarNav
468 > .group:nth-child(-n + 8):not(:first-child)
469 > .VPSidebarItem
470 > .item
471 > .text::before {
472 filter: invert(1);
473}
474
475#VPSidebarNav > .group {
476 @apply border-t-0;
477
478 & > .VPSidebarItem {
479 @apply pb-1;
480
481 & > .item > .text {
482 @apply flex items-center text-base py-1.5;
483 }
484
485 & > .items {
486 & > .VPSidebarItem {
487 @apply pl-4 border-l dark:border-l-gray-600 rounded-none transition-all duration-150 ease-out;
488
489 /* Separation between nested table of content */
490 &:not(.collapsible),
491 &.collapsible > .items > .VPSidebarItem {
492 &:hover,
493 &:focus,
494 &.is-active.has-active {
495 @apply rounded-lg border-transparent;
496
497 background-color: var(--vp-c-brand-nav-active);
498
499 & > .item > .indicator {
500 background-color: var(--vp-c-brand-1);
501 }
502 }
503 }
504
505 &.collapsible {
506 & > .items {
507 @apply border-0 pl-0;
508
509 & > .VPSidebarItem {
510 @apply border-l pl-4 dark:border-l-gray-600;
511 }
512
513 & > .caret {
514 &:hover,
515 &:focus {
516 background-color: transparent;
517 }
518 }
519 }
520 }
521 }
522 }
523 }
524}