Files
2026-09-21 21:40:11 +02:00

96 lines
1.8 KiB
CSS

#navbar-mobile {
position: fixed;
top: 0;
left: 0;
display: flex;
flex-direction: column;
width: var(--nav-mobile-w);
height: 100vh;
justify-content: flex-start;
align-items: center;
border-right: 1px solid var(--border);
gap: 10px;
transition: left 0.3s;
-webkit-user-select: none;
-ms-user-select: none;
user-select: none;
z-index: 10;
}
#navbar-mobile::before {
content: "";
position: absolute;
inset: 0;
background: var(--bg);
opacity: 0.992;
z-index: -1;
}
#navbar-mobile.inactive {
left: calc(var(--nav-mobile-w) * (-1))
}
/* Hidden together with the menu button (mobile_menu_button.css) on large screens */
@media (min-width: 1001px) and (min-height: 701px) {
#navbar-mobile {
display: none;
}
}
#navbar-mobile-links {
display: flex;
flex-direction: column;
justify-content: flex-start;
align-items: center;
width: 100%;
border-bottom: 1px solid var(--border);
height: fit-content;
}
.navbar-item-mobile {
width: 100%;
height: 8vh;
list-style: none;
display: flex;
align-items: center;
justify-content: center;
border-top: 1px solid var(--border);
}
@media (hover: hover) and (pointer: fine) {
.navbar-item-mobile:hover {
background: var(--surface);
}
}
.nav-link-mobile {
text-align: center;
font-size: calc(var(--font-size) - 0.2rem);
width: 100%;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
padding: 10px;
}
.mobile-config {
display: flex;
flex-direction: column;
align-items: flex-start;
margin-top: auto;
margin-bottom: 20px;
gap: 20px;
height: fit-content;
width: 100%;
}
.mobile-config .switch {
margin-left: 40px;
;
}
.mobile-config .lang-dropdown {
margin-left: 19.5px;
}