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

128 lines
2.2 KiB
CSS
Raw Normal View History

2026-04-02 19:45:57 +03:00
.navbar {
display: flex;
flex-direction: column;
gap: var(--pad-m);
height: 100%;
margin: 0;
overflow-x: hidden;
2025-10-14 19:40:29 +03:00
overflow-y: scroll;
padding: var(--pad-l);
position: fixed;
2025-10-14 19:40:29 +03:00
scrollbar-width: none;
width: var(--view);
2026-04-02 19:45:57 +03:00
& li *:is(a, button) {
align-items: center;
border-radius: var(--round);
2026-04-02 19:45:57 +03:00
border-style: solid;
border-width: 2px;
}
& section {
border-radius: var(--round);
border-style: solid;
border-width: 2px;
font-weight: bold;
2026-04-02 19:45:57 +03:00
& h3 {
display: flex;
font-size: 1.4rem;
height: var(--pad-xl);
margin: var(--pad-s) auto 0 auto;
padding: 0;
2026-04-02 19:45:57 +03:00
}
}
& * svg,
li img {
align-self: center;
margin: 0 8px 0 8px;
width: 20px;
}
& ul {
margin-top: 0;
margin: var(--pad-s);
padding: 0;
2025-09-10 10:19:57 +03:00
& li,
button {
align-items: center;
margin-bottom: inherit;
padding: 0;
& img {
border-radius: 100%;
}
}
}
2026-04-02 19:45:57 +03:00
& li *:is(a, button) {
display: flex;
font-size: 1.125rem;
font-weight: bold;
2025-10-14 19:40:29 +03:00
height: 36px;
line-height: var(--pad-xl);
width: 100%;
}
}
#default::before,
2026-04-02 19:45:57 +03:00
body::after {
content: "";
height: inherit;
margin: 0;
2026-04-02 19:45:57 +03:00
mask-image: url("/assets/img/theme/sundae_sit-lines.png");
mask-repeat: no-repeat;
pointer-events: none;
position: absolute;
width: inherit;
z-index: -1;
2026-04-02 19:45:57 +03:00
}
#default::before {
-webkit-mask-position-x: -25px;
-webkit-mask-position-y: 90%;
2026-04-02 19:45:57 +03:00
bottom: 0;
left: 0;
mask-size: 160%;
}
body::after {
-webkit-mask-position-x: 0;
-webkit-mask-position-y: bottom;
2026-04-02 19:45:57 +03:00
content: none;
height: 100vw;
2026-04-02 19:45:57 +03:00
mask-size: 100%;
width: 100%;
2025-10-14 19:40:29 +03:00
}
#floating {
border-bottom-right-radius: var(--pad-l);
2026-04-02 19:45:57 +03:00
border-bottom-style: solid;
border-bottom-width: 2px;
border-right-style: solid;
2026-04-02 19:45:57 +03:00
border-right-width: 2px;
height: fit-content;
top: 0;
width: var(--float);
& button {
font-size: 0;
width: fit-content;
}
& a {
display: none;
}
2026-04-02 19:45:57 +03:00
}
#sidebar {
2026-04-02 19:45:57 +03:00
background: none;
border: 0;
margin: 0;
padding: 0;
2026-04-02 19:45:57 +03:00
}
#default {
border: 0;
2026-04-02 19:45:57 +03:00
border-right-style: solid;
border-right-width: 2px;
}
/* hack to make the header look seamless with the nav when using citrus theme */
body {
position: relative;
z-index: -3;
& main {
position: inherit;
z-index: -2;
}
& #sidebar {
position: inherit;
z-index: -1;
}
}