Space/.vitepress/theme/style.css

128 lines
2.8 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: #d0204a;
--vp-c-brand-light: #ca3f60;
--vp-c-brand-lighter: #d14e6d;
--vp-c-brand-lightest: #e76281;
--vp-c-brand-dark: #c01e44;
--vp-c-brand-darker: #a01837;
--vp-c-brand-dimm: rgba(255, 100, 126, 0.08);
}
.dark {
--vp-c-brand: #db2b54;
}
/**
* 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,
#D9234A 30%,
#c44460
);
--vp-home-hero-image-background-image: linear-gradient(
-45deg,
#D9234A 50%,
#c44460 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);
}
}
/**
* 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;
}
/* Custom start */
:root {
--c-bg-card: rgba(0,0,0,.04);
--c-border-card: rgba(0,0,0,.1);
}
html.dark {
--c-bg-card: rgba(0,0,0,.3);
--c-border-card: rgba(0,0,0,.3);
}
/* Special card component */
:is(blockquote, .card) :is(p, ol, ul) {
margin: 7px 0;
line-height: 1.5;
}
.card {
background-color: var(--c-bg-card);
border: 1px solid var(--c-border-card);
border-radius: 6px;
margin: 5px 0;
}
.card > .inner {
margin: 12px 16px;
}