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

122 lines
1.9 KiB
CSS
Raw Normal View History

2026-04-02 19:45:57 +03:00
.navbar {
position: fixed;
display: flex;
2026-04-02 19:45:57 +03:00
z-index: 2;
flex-direction: column;
2025-10-14 19:40:29 +03:00
overflow-x: hidden;
padding: var(--pad-l);
width: var(--view);
height: 100%;
2025-10-14 19:40:29 +03:00
overflow-y: scroll;
scrollbar-width: none;
2026-04-02 19:45:57 +03:00
gap: var(--pad-m);
& 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;
}
2025-09-10 10:19:57 +03:00
& ul {
margin: var(--pad-sm);
padding: 0;
2025-09-10 10:19:57 +03:00
& li,
button {
padding: 0;
align-items: center;
margin-bottom: inherit;
2025-09-10 10:19:57 +03:00
& img {
border-radius: 100%;
}
}
}
2025-09-10 10:19:57 +03:00
2026-04-02 19:45:57 +03:00
& li *:is(a, button) {
display: flex;
font-size: 1.125rem;
width: 100%;
font-weight: bold;
2025-10-14 19:40:29 +03:00
height: 36px;
line-height: var(--pad-xl);
}
}
2025-06-16 16:31:53 +03:00
2026-04-02 19:45:57 +03:00
#mobile > nav::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;
}
2025-09-10 10:19:57 +03:00
2026-04-02 19:45:57 +03:00
#mobile > nav::before {
bottom: 0;
left: 0;
mask-size: 160%;
-webkit-mask-position-x: -25px;
-webkit-mask-position-y: 90%;
}
2025-09-10 10:19:57 +03:00
2026-04-02 19:45:57 +03:00
body::after {
content: none;
mask-size: 100%;
width: 100%;
height: 100vw;
-webkit-mask-position-x: 0;
-webkit-mask-position-y: bottom;
2025-10-14 19:40:29 +03:00
}
2026-04-02 19:45:57 +03:00
button[popovertarget="mobile"] {
display: none;
2025-10-14 19:40:29 +03:00
}
2025-06-16 16:31:53 +03:00
2026-04-02 19:45:57 +03:00
#floating {
width: fit-content;
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);
}
2025-10-14 19:40:29 +03:00
2026-04-02 19:45:57 +03:00
#mobile {
margin: 0;
padding: 0;
background: none;
border: 0;
}
#mobile > nav {
border-right-style: solid;
border-right-width: 2px;
2025-09-10 10:19:57 +03:00
}