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

148 lines
2.2 KiB
CSS
Raw Normal View History

2025-10-14 19:40:29 +03:00
body > nav::before,
2025-06-16 16:31:53 +03:00
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-10-14 19:40:29 +03:00
body > nav::before {
2025-06-16 16:31:53 +03:00
bottom: 0;
left: 0;
2025-09-10 17:07:14 +03:00
mask-size: 160%;
-webkit-mask-position-x: -25px;
2025-06-16 16:31:53 +03:00
-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;
}
2025-09-10 10:19:57 +03:00
2025-10-14 19:40:29 +03:00
body > nav {
display: flex;
flex-direction: column;
2025-10-14 19:40:29 +03:00
overflow-x: hidden;
padding: var(--pad-l);
position: fixed;
width: var(--view);
height: 100%;
2025-10-14 19:40:29 +03:00
overflow-y: scroll;
scrollbar-width: none;
& * svg,
li img {
margin: 0 8px 0 8px;
width: 20px;
align-self: center;
}
2025-09-10 10:19:57 +03:00
& details {
display: flex;
}
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
& details {
font-size: 1.4rem;
}
2025-09-10 10:19:57 +03:00
& 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
body {
2025-10-14 19:40:29 +03:00
& > nav {
gap: var(--pad-m);
2025-06-25 13:08:50 +03:00
border-right-width: 1px;
border-right-style: solid;
2025-09-10 10:19:57 +03:00
& a,
button {
2025-06-25 13:08:50 +03:00
align-items: center;
border-style: solid;
border-width: 2px;
border-radius: var(--round);
}
2025-09-10 10:19:57 +03:00
2025-06-16 16:31:53 +03:00
& details {
border-radius: var(--round);
font-weight: bold;
}
2025-09-10 10:19:57 +03:00
2025-10-14 19:40:29 +03:00
& details > summary {
2025-06-16 16:31:53 +03:00
display: flex;
justify-content: center;
2025-10-14 19:40:29 +03:00
padding: 0;
height: var(--pad-xl);
2025-06-16 16:31:53 +03:00
}
2025-10-14 19:40:29 +03:00
& details[open], details:not([open]) {
2025-06-16 16:31:53 +03:00
border-style: solid;
border-width: 2px;
}
2025-10-14 19:40:29 +03:00
}
}
@media screen and (max-width: 920px) {
body > nav {
position: initial;
width: 100%;
overflow: initial;
flex-direction: row;
justify-content: start;
& a, button {
line-height: initial;
}
& details {
width: 100%;
height: max-content;
}
}
body > nav::before {
content: none;
}
}
@media screen and (max-width: 620px) {
body > nav {
flex-direction: column;
justify-content: start;
border: 0;
width: 100%;
2025-06-16 16:31:53 +03:00
2025-10-14 19:40:29 +03:00
& details {
height: fit-content;
2025-06-16 16:31:53 +03:00
}
}
2025-10-14 19:40:29 +03:00
body::after {
content: "";
}
2025-09-10 10:19:57 +03:00
}