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

150 lines
2.2 KiB
CSS
Raw Normal View History

2025-09-10 10:19:57 +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-09-10 10:19:57 +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%;
}
2025-09-10 17:07:14 +03:00
body>nav::after {
top: 0;
left: 0;
width: var(--view);
content: "";
position: absolute;
height: 100%;
z-index: -2;
pointer-events: none;
mask-image: var(--paw-tiled);
animation: navbg 10s linear infinite;
mask-size: 128px;
}
2025-06-16 16:31:53 +03:00
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
body>nav {
display: flex;
flex-direction: column;
overflow: hidden;
padding: 1rem;
position: fixed;
width: var(--view);
height: 100%;
2025-09-10 10:19:57 +03:00
& * 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
& svg {
fill: currentColor;
stroke: currentColor;
stroke-width: 0;
}
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;
height: var(--pad-xl);
line-height: var(--pad-xl);
}
}
2025-06-16 16:31:53 +03:00
body {
font-family: "Rubik", sans-serif;
2025-09-10 10:19:57 +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
& details>summary {
2025-06-16 16:31:53 +03:00
display: flex;
justify-content: center;
padding: 0 var(--pad-lm) 0 0;
height: var(--pad-xl);
2025-06-16 16:31:53 +03:00
2025-09-10 10:19:57 +03:00
&>svg {
2025-06-16 16:31:53 +03:00
transform: rotate(0deg);
transition: transform var(--trans);
}
}
2025-09-10 10:19:57 +03:00
& details:not([open])>summary {
border-radius: var(--round);
2025-06-16 16:31:53 +03:00
border-style: solid;
border-width: 2px;
}
& details[open] {
2025-06-16 16:31:53 +03:00
border-style: solid;
border-width: 2px;
2025-09-10 10:19:57 +03:00
&>summary svg {
transform: rotate(45deg);
}
2025-06-16 16:31:53 +03:00
}
}
2025-09-10 10:19:57 +03:00
}