web/docs/.vitepress/theme/style.css

251 lines
5.0 KiB
CSS

/**
* Customize default theme styling by overriding CSS variables:
* https://github.com/vuejs/vitepress/blob/main/src/client/theme-default/styles/vars.css
*/
/**
* Colors
* -------------------------------------------------------------------------- */
:root {
--vp-c-brand: #09f;
--vp-c-brand-light: #0099ffe0;
--vp-c-brand-lighter: #0099ffa0;
--vp-c-brand-lightest: #0099ffc0;
--vp-c-brand-dark: #535bf2;
--vp-c-brand-darker: #454ce1;
--vp-c-brand-dimm: rgba(100, 108, 255, 0.08);
--vp-sidebar-bg-color: transparent;
--vp-nav-height: 56px;
}
/* :root {
--vp-c-brand: #646cff;
--vp-c-brand-light: #747bff;
--vp-c-brand-lighter: #9499ff;
--vp-c-brand-lightest: #bcc0ff;
--vp-c-brand-dark: #535bf2;
--vp-c-brand-darker: #454ce1;
--vp-c-brand-dimm: rgba(100, 108, 255, 0.08);
--vp-sidebar-bg-color: transparent;
} */
/**
* Component: Button
* -------------------------------------------------------------------------- */
:root {
--vp-button-brand-border: var(--vp-c-brand-light);
--vp-button-brand-text: var(--vp-c-white);
--vp-button-brand-bg: var(--vp-c-brand);
--vp-button-brand-hover-border: var(--vp-c-brand-light);
--vp-button-brand-hover-text: var(--vp-c-white);
--vp-button-brand-hover-bg: var(--vp-c-brand-light);
--vp-button-brand-active-border: var(--vp-c-brand-light);
--vp-button-brand-active-text: var(--vp-c-white);
--vp-button-brand-active-bg: var(--vp-button-brand-bg);
}
/**
* Component: Home
* -------------------------------------------------------------------------- */
:root {
--vp-home-hero-name-color: transparent;
--vp-home-hero-name-background: -webkit-linear-gradient(120deg, #bd34fe 30%, #41d1ff);
--vp-home-hero-image-background-image: linear-gradient(-45deg, #bd34fe 50%, #47caff 50%);
--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);
}
.VPContent .VPDoc {
padding: 20px 0 40px;
}
.VPDoc .container > .content {
background: #fff;
padding: 28px 24px;
box-shadow: 0 0 8px #f1f3f5;
border: 1px solid #f1f3f5;
border-radius: 4px;
}
}
/**
* Component: Custom Block
* -------------------------------------------------------------------------- */
:root {
--vp-custom-block-tip-border: var(--vp-c-brand);
--vp-custom-block-tip-text: var(--vp-c-brand-darker);
--vp-custom-block-tip-bg: var(--vp-c-brand-dimm);
}
.dark {
--vp-custom-block-tip-border: var(--vp-c-brand);
--vp-custom-block-tip-text: var(--vp-c-brand-lightest);
--vp-custom-block-tip-bg: var(--vp-c-brand-dimm);
}
/**
* Component: Algolia
* -------------------------------------------------------------------------- */
.DocSearch {
--docsearch-primary-color: var(--vp-c-brand) !important;
}
.Layout {
background-color: #f1f3f5;
}
#VPContent .VPDoc.has-aside .content-container {
max-width: initial;
margin: 0;
}
.VPNav {
border-bottom: 1px solid #f1f3f5;
background: #fff;
}
.curtain,
.aside-curtain {
display: none;
}
#VPContent .aside {
padding-left: 20px;
}
@media (min-width: 640px) {
.vp-doc div[class*="language-"] {
border-radius: 2px;
}
}
#VPSidebarNav {
margin-top: 20px;
background: #fff;
padding: 16px;
}
#VPSidebarNav .group {
padding-top: 0;
}
#app .VPSidebar {
width: calc((100% - (var(--vp-layout-max-width) - 64px)) / 2 + var(--vp-sidebar-width) - 20px);
padding-right: 24px;
}
#app .aside-container {
padding-top: calc(var(--vp-nav-height) + var(--vp-layout-top-height, 0px) + var(--vp-doc-top-height, 0px) + 20px);
}
#app .aside {
max-width: 228px;
}
#app .pager-link {
border-radius: 4px;
}
#app .VPNavBarTitle.has-sidebar .title {
border-bottom-color: transparent;
}
#app .VPMenu {
border-radius: 2px;
}
/**
* Component: Home
* -------------------------------------------------------------------------- */
::-webkit-scrollbar {
width: 10px;
}
::-webkit-scrollbar-track {
background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
background: #888;
border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
background: #555;
}
.content img {
border: 1px solid #e1f1f1;
border-radius: 2px;
}
.item {
width: 100%;
overflow: hidden;
}
.link {
width: 100%;
}
.text {
width: 100%;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
body {
font-size: 14px;
}
.VPSidebarItem {
/* padding: 0 8px; */
}
.items > .VPSidebarItem.level-1 {
margin-top: 4px;
padding: 0 8px;
}
.items > .VPSidebarItem.level-1.is-active {
background: hsl(204 100% 95% / 1);
/* padding: 0 8px; */
border-radius: 2px;
}
.vp-doc tr:nth-child(2n) {
background-color: transparent;
}
.vp-doc h2 {
margin: 32px 0 16px;
border-top: none;
padding-top: 0;
border-bottom: 1px solid var(--vp-c-divider);
padding-bottom: 8px;
letter-spacing: -0.02em;
line-height: 32px;
font-size: 24px;
font-weight: 600;
}
.vp-doc a {
display: none;
}
.VPNavBarTitle .title {
font-weight: 400;
}