Merge branch 'test'

This commit is contained in:
2026-05-08 10:01:05 +02:00
5 changed files with 22 additions and 3 deletions
+9
View File
@@ -66,6 +66,15 @@ async function loadData() {
const sidebar_top = document.getElementById("sidebar-top-content");
const navbar_mobile = document.getElementById("navbar-mobile");
const button_mobile2 = document.getElementById("button-mobile");
document.addEventListener("click", (e) => {
if (!e.target.closest("#navbar-mobile") && !e.target.closest("#button-mobile") && !navbar_mobile.classList.contains("inactive")) {
navbar_mobile.classList.add("inactive");
button_mobile2.classList.remove("inactive");
}
});
const navbar_mobile_links = document.getElementById("navbar-mobile-links");
const button_navbar_mobile = document.createElement("button");
const button_mobile = document.getElementById("button-mobile");
+1 -1
View File
@@ -8,7 +8,7 @@
--serif: Georgia, serif;
--sans: system-ui, sans-serif;
--nav-w: 230px;
--nav-mobile-w: 100px;
--nav-mobile-w: 200px;
--font-size: 1rem;
}
+5 -1
View File
@@ -11,10 +11,14 @@
border-right: 1px solid var(--border);
gap: 10px;
background: var(--bg);
transition: left 0.3s;
-webkit-user-select: none;
-ms-user-select: none;
user-select: none;
}
#navbar-mobile.inactive {
display: none;
left: calc(var(--nav-mobile-w) * (-1))
}
@media (min-width: 1001px) {
+1 -1
View File
@@ -7,7 +7,7 @@
@media (max-width: 1000px) {
.main-content {
margin-left: 0;
--margin-main-content: 10px;
--margin-main-content: 20px;
--margin-top: 30px;
}
}
+6
View File
@@ -75,6 +75,9 @@
position: relative;
font-weight: normal;
margin: 5px 0px 5px 0px;
-webkit-user-select: none;
-ms-user-select: none;
user-select: none;
}
.nav-link {
@@ -200,6 +203,9 @@ input:checked+.slider:before {
align-items: center;
border: none;
background: none;
-webkit-user-select: none;
-ms-user-select: none;
user-select: none;
}
.lang-dropdown.show-border {