[Fix] menu and theme switch

This commit is contained in:
coja
2026-05-02 01:50:28 +02:00
parent 9fc58a992e
commit e18bf1899e
5 changed files with 105 additions and 93 deletions

View File

@@ -11,6 +11,12 @@
--bg: var(--light-bg);
}
body.dark {
--border: var(--dark-border);
--text: var(--dark-text);
--bg: var(--dark-bg);
}
@font-face {
font-family: "Iosevka";
src: url("/font/iosevka-regular.woff") format("woff");
@@ -153,7 +159,7 @@ a:visited {
}
}
#sections-button {
.hamburger {
display: none;
}
@@ -186,7 +192,7 @@ button {
}
@media screen and (max-width: 1160px) {
nav {
nav.menu {
flex-direction: column;
border: 2px solid var(--border);
border-bottom: 0;
@@ -198,9 +204,13 @@ button {
align-items: center;
padding: 2rem 3rem;
display: none;
&.open {
display: flex;
flex-direction: column;
}
}
#sections-button {
.hamburger {
display: block !important;
}
}