/** * Copyright (c) 2024 taskylizard * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ :root { /** Layout */ --vp-layout-max-width: 1490px; --vp-sidebar-width: 280px; --vp-nav-logo-height: 36px; /** Colors */ --vp-c-brand-1: #7bc5e4; --vp-c-brand-2: #1473e6; --vp-c-brand-3: #1473e6; --vp-c-brand-soft: rgba(123, 197, 228, 0.08); --vp-c-green-light: #16a891; --vp-c-brand-nav-active: color-mix( in srgb, var(--vp-c-brand-1) 15%, transparent 100% ); /** Button brand style */ --vp-button-brand-text: var(--vp-c-bg); --vp-button-brand-bg: var(--vp-c-brand-2); --vp-button-brand-hover-text: var(--vp-c-bg); --vp-button-brand-hover-bg: var(--vp-c-brand-1); --vp-button-brand-active-text: var(--vp-c-bg); --vp-button-brand-active-bg: var(--vp-c-brand-1); /** Button alt style */ --vp-button-alt-border: var(--vp-c-default-3); --vp-button-alt-text: var(--vp-c-text-1); --vp-button-alt-bg: transparent; --vp-button-alt-hover-border: var(--vp-c-default-1); --vp-button-alt-hover-text: var(--vp-c-text-1); --vp-button-alt-hover-bg: transparent; --vp-button-alt-active-border: var(--vp-c-default-1); --vp-button-alt-active-text: var(--vp-c-text-1); --vp-button-alt-active-bg: transparent; --vp-c-bg-nav: rgba(255, 255, 255, 0.7); --vp-c-bg-mark: rgb(232, 232, 232); /* Colors: Custom Block */ /** Info */ --vp-custom-block-info-bg: theme('colors.swarm.100'); --vp-custom-block-info-border: theme('colors.swarm.800'); --vp-custom-block-info-text: theme('colors.swarm.800'); --vp-custom-block-info-text-deep: theme('colors.swarm.900'); /** Tip */ --vp-custom-block-tip-bg: theme('colors.meadow.100'); --vp-custom-block-tip-border: theme('colors.meadow.800'); --vp-custom-block-tip-text: theme('colors.meadow.800'); --vp-custom-block-tip-text-deep: theme('colors.meadow.900'); /** Warning */ --vp-custom-block-warning-bg: theme('colors.merlin.100'); --vp-custom-block-warning-border: theme('colors.merlin.800'); --vp-custom-block-warning-text: theme('colors.merlin.800'); --vp-custom-block-warning-text-deep: theme('colors.merlin.900'); /** Danger */ --vp-custom-block-danger-bg: theme('colors.carnation.100'); --vp-custom-block-danger-border: theme('colors.carnation.800'); --vp-custom-block-danger-text: theme('colors.carnation.800'); --vp-custom-block-danger-text-deep: theme('colors.carnation.900'); /** Details */ --vp-custom-block-details-bg: var(--vp-custom-block-info-bg); --vp-custom-block-details-border: var(--vp-custom-block-info-border); --vp-custom-block-details-text: var(--vp-custom-block-info-text); --vp-custom-block-details-text-deep: var(--vp-custom-block-info-text-deep); } .dark { --vp-c-bg: rgb(26, 26, 26); --vp-c-bg-alt: rgb(23, 23, 23); --vp-c-bg-nav: rgba(23, 23, 23, 0.8); --vp-c-bg-mark: rgb(0, 0, 0); /* Colors: Custom Block */ /** Info */ --vp-custom-block-info-bg: theme('colors.swarm.950'); --vp-custom-block-info-border: theme('colors.swarm.800'); --vp-custom-block-info-text: theme('colors.swarm.200'); --vp-custom-block-info-text-deep: theme('colors.swarm.200'); /** Tip */ --vp-custom-block-tip-bg: theme('colors.meadow.950'); --vp-custom-block-tip-border: theme('colors.meadow.800'); --vp-custom-block-tip-text: theme('colors.meadow.200'); --vp-custom-block-tip-text-deep: theme('colors.meadow.200'); /** Warning */ --vp-custom-block-warning-bg: theme('colors.merlin.950'); --vp-custom-block-warning-border: theme('colors.merlin.800'); --vp-custom-block-warning-text: theme('colors.merlin.200'); --vp-custom-block-warning-text-deep: theme('colors.merlin.200'); /** Danger */ --vp-custom-block-danger-bg: theme('colors.carnation.950'); --vp-custom-block-danger-border: theme('colors.carnation.800'); --vp-custom-block-danger-text: theme('colors.carnation.200'); --vp-custom-block-danger-text-deep: theme('colors.carnation.200'); /** Details */ --vp-custom-block-details-bg: var(--vp-custom-block-info-bg); --vp-custom-block-details-border: var(--vp-custom-block-info-border); --vp-custom-block-details-text: var(--vp-custom-block-info-text); --vp-custom-block-details-text-deep: var(--vp-custom-block-info-text-deep); } .vp-doc a { color: var(--vp-c-brand-1); text-decoration: underline; text-underline-offset: 4px; text-decoration-style: solid; text-decoration-color: transparent; -webkit-text-decoration-color: transparent; transition: text-decoration-color 0.25s; } .vp-doc a:hover { color: var(--vp-c-brand-1); text-decoration-color: var(--vp-c-brand-1); -webkit-text-decoration-color: var(--vp-c-brand-1); } :root { --vp-home-hero-name-color: transparent; --vp-home-hero-name-background: -webkit-linear-gradient( -30deg, #62cff4, #1473e6 ); --vp-home-hero-image-background-image: linear-gradient( -30deg, #62cff4, #9acbec ); --vp-home-hero-image-filter: blur(40px); } @media (min-width: 640px) { :root { --vp-home-hero-image-filter: blur(56px); } } @media (min-width: 960px) { :root { --vp-home-hero-image-filter: blur(72px); } } .VPNavBarTitle .title { font-size: 18px; font-weight: 600; } /* .VPNavBarTitle .title:after { content: ""; margin-left: 2px; margin-top: -6px; display: inline-block; width: 32px; height: 32px; image-rendering: pixelated; background-image: url("/asset/oneko.gif"); animation: sleep 1s infinite; cursor: pointer; } .VPNavBarTitle .title:hover:after { animation: wakeup 2.5s 1 forwards; } @keyframes sleep { 0%, 50% { background-position: -64px 0; } 50.00001%, 100% { background-position: -64px -32px; } } @keyframes wakeup { 0%, 20% { background-position: -160px 0; } 20.00001%, 40% { background-position: -192px 0; } 40.00001%, 60% { background-position: -224px 0; } 60.00001%, 80% { background-position: -96px -64px; } 80.00001%, 100% { background-position: -96px -96px; } } */ .medium-zoom-overlay { background-color: var(--vp-c-bg) !important; z-index: 100; } .medium-zoom-overlay ~ img { z-index: 101; } .medium-zoom--opened .medium-zoom-overlay { opacity: 0.98 !important; } .video_wrapper { position: relative; padding-bottom: 56.25%; } iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; } .VPSidebarItem.level-1.is-active > .item > .indicator, .VPSidebarItem.level-2.is-active > .item > .indicator, .VPSidebarItem.level-3.is-active > .item > .indicator, .VPSidebarItem.level-4.is-active > .item > .indicator, .VPSidebarItem.level-5.is-active > .item > .indicator { background-color: var(--vp-c-brand-1); transition-duration: 0.1s; transition-property: opacity; } main figure { margin: 2rem 0; transition: transform var(--vp-tt); } main figure img { margin: 0 auto; border-radius: 12px; } main figure figcaption { text-align: center; margin-top: 1.25rem; font-size: 0.875rem; color: var(--vp-c-text-2); } @media (min-width: 1440px) { :root { --vp-layout-max-width: 100% !important; /* 100% of the viewport width */ --vp-sidebar-width: 300px !important; /* increase sidebar width from default 272px */ } /* target a div with class .content-container*/ .content-container { max-width: 70% !important; /* 888px is the default max-width */ } } .info.custom-block { --icon: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGNsYXNzPSJsdWNpZGUgbHVjaWRlLWluZm8iPjxjaXJjbGUgY3g9IjEyIiBjeT0iMTIiIHI9IjEwIi8+PHBhdGggZD0iTTEyIDE2di00Ii8+PHBhdGggZD0iTTEyIDhoLjAxIi8+PC9zdmc+'); } .tip.custom-block { --icon: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGNsYXNzPSJsdWNpZGUgbHVjaWRlLWxpZ2h0YnVsYiI+PHBhdGggZD0iTTE1IDE0Yy4yLTEgLjctMS43IDEuNS0yLjUgMS0uOSAxLjUtMi4yIDEuNS0zLjVBNiA2IDAgMCAwIDYgOGMwIDEgLjIgMi4yIDEuNSAzLjUuNy43IDEuMyAxLjUgMS41IDIuNSIvPjxwYXRoIGQ9Ik05IDE4aDYiLz48cGF0aCBkPSJNMTAgMjJoNCIvPjwvc3ZnPg=='); } .warning.custom-block { --icon: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGNsYXNzPSJsdWNpZGUgbHVjaWRlLWFsZXJ0LXRyaWFuZ2xlIj48cGF0aCBkPSJtMjEuNzMgMTgtOC0xNGEyIDIgMCAwIDAtMy40OCAwbC04IDE0QTIgMiAwIDAgMCA0IDIxaDE2YTIgMiAwIDAgMCAxLjczLTNaIi8+PHBhdGggZD0iTTEyIDl2NCIvPjxwYXRoIGQ9Ik0xMiAxN2guMDEiLz48L3N2Zz4='); } .danger.custom-block { --icon: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGNsYXNzPSJsdWNpZGUgbHVjaWRlLXNrdWxsIj48Y2lyY2xlIGN4PSI5IiBjeT0iMTIiIHI9IjEiLz48Y2lyY2xlIGN4PSIxNSIgY3k9IjEyIiByPSIxIi8+PHBhdGggZD0iTTggMjB2Mmg4di0yIi8+PHBhdGggZD0ibTEyLjUgMTctLjUtMS0uNSAxaDF6Ii8+PHBhdGggZD0iTTE2IDIwYTIgMiAwIDAgMCAxLjU2LTMuMjUgOCA4IDAgMSAwLTExLjEyIDBBMiAyIDAgMCAwIDggMjAiLz48L3N2Zz4='); } .custom-block-title { display: inline-flex; align-items: center; gap: 8px; } .custom-block-title::before { content: ''; width: 16px; height: 16px; -webkit-mask: var(--icon) no-repeat; mask: var(--icon) no-repeat; -webkit-mask-size: 100% 100%; mask-size: 100% 100%; background-color: currentColor; color: inherit; } .vp-doc .custom-block a { text-decoration: underline; text-underline-offset: 4px; text-decoration-style: solid; } .vp-doc h3 { text-decoration: underline; } .vp-doc h1 { font-size: 2.5rem; /* Adjust the size as needed */ } .vp-doc h2 { font-size: 1.75rem; /* Adjust the size as needed */ } .vp-doc h3 { font-size: 1.4rem; /* Adjust the size as needed */ } .vp-doc h4 { font-size: 1.2rem; /* Adjust the size as needed */ } .vp-doc h1 { margin-top: -0.5rem; /* Adjust the top margin as needed */ margin-bottom: -1.5rem; /* Adjust the bottom margin as needed */ } .vp-doc h4 { margin-top: 1rem; /* Adjust the top margin as needed */ margin-bottom: 1rem; /* Adjust the bottom margin as needed */ } .vp-doc._credits div h1 { margin-top: 35px; margin-bottom: 15px; } /* Make the page half the width for class `sandbox` */ .sandbox { max-width: 50%; width: 50%; margin: 0 auto; } .v-popper__arrow-container { display: none; } /** Color links inside custom containers */ .tip.custom-block a { color: theme('colors.meadow.500'); } .tip.custom-block a:hover { color: theme('colors.meadow.400'); text-decoration-color: theme('colors.meadow.300'); -webkit-text-decoration-color: theme('colors.meadow.300'); } .info.custom-block a { color: theme('colors.swarm.500'); } .info.custom-block a:hover { color: theme('colors.swarm.400'); text-decoration-color: theme('colors.swarm.300'); -webkit-text-decoration-color: theme('colors.swarm.300'); } .warning.custom-block a { color: theme('colors.merlin.500'); } .warning.custom-block a:hover { color: theme('colors.merlin.400'); text-decoration-color: theme('colors.merlin.300'); -webkit-text-decoration-color: theme('colors.merlin.300'); } .danger.custom-block a { color: theme('colors.carnation.500'); } .danger.custom-block a:hover { color: theme('colors.carnation.400'); text-decoration-color: theme('colors.carnation.300'); -webkit-text-decoration-color: theme('colors.carnation.300'); } .details.custom-block a { color: theme('colors.swarm.500'); } .details.custom-block a:hover { color: theme('colors.swarm.400'); text-decoration-color: theme('colors.swarm.300'); -webkit-text-decoration-color: theme('colors.swarm.300'); } /** Fix for markdown-it-merge-cells */ .vp-doc table tr:nth-child(even), .vp-doc table tr:nth-child(odd) { background-color: transparent !important; } table tr:nth-child(even), table tr:nth-child(odd) { background-color: transparent !important; } .tip.custom-block table tr, .tip.custom-block table td, .tip.custom-block table th { border-color: theme('colors.meadow.800') !important; } .info.custom-block table tr, .info.custom-block table td, .info.custom-block table th { border-color: theme('colors.swarm.800') !important; } .warning.custom-block table tr, .warning.custom-block table td, .warning.custom-block table th { border-color: theme('colors.merlin.800') !important; } .danger.custom-block table tr, .danger.custom-block table td, .danger.custom-block table th { border-color: theme('colors.carnation.800') !important; } .details.custom-block table tr, .details.custom-block table td, .details.custom-block table th { border-color: theme('colors.swarm.800') !important; } /** fix for nolebase-git-changelog */ .vp-nolebase-git-changelog a { text-decoration: none !important; } .VPFooter { .divider { color: var(--vp-c-divider); } } #VPSidebarNav > .group:nth-child(-n + 8):not(:first-child) > .VPSidebarItem > .item > .text::before { filter: invert(1); } #VPSidebarNav > .group { @apply border-t-0; & > .VPSidebarItem { @apply pb-1; & > .item > .text { @apply flex items-center text-base py-1.5; } & > .items { & > .VPSidebarItem { @apply pl-4 border-l dark:border-l-gray-600 rounded-none transition-all duration-150 ease-out; /* Separation between nested table of content */ &:not(.collapsible), &.collapsible > .items > .VPSidebarItem { &:hover, &:focus, &.is-active.has-active { @apply rounded-lg border-transparent; background-color: var(--vp-c-brand-nav-active); & > .item > .indicator { background-color: var(--vp-c-brand-1); } } } &.collapsible { & > .items { @apply border-0 pl-0; & > .VPSidebarItem { @apply border-l pl-4 dark:border-l-gray-600; } & > .caret { &:hover, &:focus { background-color: transparent; } } } } } } } }