website/_src/assets/css/default/nav.css

127 lines
2 KiB
CSS

.navbar {
position: fixed;
display: flex;
z-index: 2;
flex-direction: column;
overflow-x: hidden;
padding: var(--pad-l);
width: var(--view);
height: 100%;
overflow-y: scroll;
scrollbar-width: none;
gap: var(--pad-m);
margin: 0;
& li *:is(a, button) {
align-items: center;
border-style: solid;
border-width: 2px;
border-radius: var(--round);
}
& section {
border-radius: var(--round);
font-weight: bold;
border-width: 2px;
border-style: solid;
& h3 {
display: flex;
justify-content: center;
align-items: center;
padding: 0;
height: var(--pad-xl);
font-size: 1.4rem;
}
}
& * svg,
li img {
margin: 0 8px 0 8px;
width: 20px;
align-self: center;
}
& ul {
margin: var(--pad-s);
padding: 0;
& li,
button {
padding: 0;
align-items: center;
margin-bottom: inherit;
& img {
border-radius: 100%;
}
}
}
& li *:is(a, button) {
display: flex;
font-size: 1.125rem;
width: 100%;
font-weight: bold;
height: 36px;
line-height: var(--pad-xl);
}
}
nav#default::before,
body::after {
z-index: -1;
content: "";
position: absolute;
mask-image: url("/assets/img/theme/sundae_sit-lines.png");
mask-repeat: no-repeat;
margin: 0;
width: inherit;
height: inherit;
pointer-events: none;
}
nav#default::before {
bottom: 0;
left: 0;
mask-size: 160%;
-webkit-mask-position-x: -25px;
-webkit-mask-position-y: 90%;
}
body::after {
content: none;
mask-size: 100%;
width: 100%;
height: 100vw;
-webkit-mask-position-x: 0;
-webkit-mask-position-y: bottom;
}
nav#floating {
width: var(--float);
height: fit-content;
border-bottom-style: solid;
border-right-style: solid;
border-bottom-width: 2px;
border-right-width: 2px;
border-bottom-right-radius: var(--pad-l);
& button {
width: fit-content;
font-size: 0;
}
& a {
display: none;
}
}
div#sidebar {
margin: 0;
padding: 0;
background: none;
border: 0;
}
nav#default {
border: 0;
border-right-style: solid;
border-right-width: 2px;
}