Space/.vuepress/styles/index.scss

109 lines
1.6 KiB
SCSS

:root {
--c-brand: #d0204a;
--c-brand-light: #ca3f60;
--c-bg-card: rgba(0,0,0,.04);
--c-border-card: rgba(0,0,0,.1);
}
html.dark {
--c-brand: #cf3559;
--c-brand-light: #ca3f60;
--c-bg: #1C1B22;
--c-bg-light: #2B2A33;
--c-border: #2B2A33;
--c-bg-card: rgba(0,0,0,.3);
--c-border-card: rgba(0,0,0,.3);
}
/* Page top padding */
.page .theme-default-content {
padding-top: 2.5rem;
}
/* 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;
}
/* Navbar items */
.navbar .navbar-items .navbar-item {
& > a {
position: relative;
font-weight: 700;
&:after {
content: "";
position: absolute;
bottom: -2px;
background-color: var(--c-brand);
border-radius: 2px;
height: 2px;
left: 50%;
width: 0%;
transition: all .2s;
}
}
& > :is(a:hover, a.router-link-active) {
border: none;
&:after {
left: 20%;
width: 60%;
}
}
}
/* Sidebar items */
a.sidebar-heading {
color: var(--c-text) !important;
&:hover {
text-decoration: underline;
}
}
ul.sidebar-items a {
border-color: transparent !important;
}
ul.sidebar-items > * > * > * > .sidebar-item:not(p.sidebar-heading) {
position: relative;
&:after {
content: "";
position: absolute;
background-color: var(--c-brand);
border-radius: 2px;
top: 50%;
left: 20px;
width: 4px;
height: 4px;
margin-top: -2px;
opacity: 0;
transform: scale(0);
transition: all .2s;
}
&.active:after {
opacity: 1;
transform: scale(1);
}
}