79 lines
1.3 KiB
SCSS
79 lines
1.3 KiB
SCSS
|
// -----------
|
||
|
// - sidebar -
|
||
|
// -----------
|
||
|
|
||
|
#sidebar {
|
||
|
background: var(--sidebar-background);
|
||
|
border-top: 2px solid var(--vriish-rose);
|
||
|
display: flex;
|
||
|
flex-direction: column;
|
||
|
grid-area: sidebar;
|
||
|
height: 100vh;
|
||
|
margin-top: -2px;
|
||
|
max-width: 300px;
|
||
|
position: sticky;
|
||
|
top: 0;
|
||
|
z-index: 1;
|
||
|
header {
|
||
|
text-align: center;
|
||
|
padding: 2em 1em;
|
||
|
#name {
|
||
|
margin: 0;
|
||
|
font-weight: bold;
|
||
|
font-size: 1.8em;
|
||
|
}
|
||
|
#information {
|
||
|
margin: 0;
|
||
|
font-size: .8em;
|
||
|
}
|
||
|
}
|
||
|
#sidebar-menu {
|
||
|
padding: 2em 1em;
|
||
|
ul {
|
||
|
list-style: none;
|
||
|
padding: 0;
|
||
|
margin: 0;
|
||
|
}
|
||
|
li {
|
||
|
border-radius: .5em;
|
||
|
margin: .25em 0;
|
||
|
padding: .25em .5em;
|
||
|
position: relative;
|
||
|
letter-spacing: .025em;
|
||
|
a {
|
||
|
text-shadow: 0 0 0 transparent;
|
||
|
transition: text-shadow .5s;
|
||
|
}
|
||
|
::after {
|
||
|
background: var(--vriish-gradient);
|
||
|
border-radius: .5em;
|
||
|
bottom: 0;
|
||
|
content: "";
|
||
|
left: 0;
|
||
|
position: absolute;
|
||
|
right: 0;
|
||
|
top: 0;
|
||
|
transition: opacity .5s;
|
||
|
opacity: 0;
|
||
|
z-index: -1;
|
||
|
}
|
||
|
&.active {
|
||
|
background: var(--vriish-gradient);
|
||
|
a {
|
||
|
text-shadow: var(--vriish-gradient-shadow);
|
||
|
}
|
||
|
}
|
||
|
&:hover {
|
||
|
a {
|
||
|
text-shadow: var(--vriish-gradient-shadow);
|
||
|
}
|
||
|
::after {
|
||
|
opacity: 1;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
a {
|
||
|
text-decoration: none;
|
||
|
}
|
||
|
}
|
||
|
}
|