split up css style files

This commit is contained in:
2026-09-21 21:40:11 +02:00
parent e38f26e289
commit dfa253bf48
21 changed files with 608 additions and 565 deletions
+19
View File
@@ -0,0 +1,19 @@
.main-content {
margin-left: var(--nav-w);
--margin-main-content: 7vw;
--margin-top: 100px;
}
@media (max-width: 1500px) {
.main-content {
--margin-main-content: 4vw;
}
}
@media (max-width: 1000px) or (max-height: 700px) {
.main-content {
margin-left: 0;
--margin-main-content: 20px;
--margin-top: 50px;
}
}
+95
View File
@@ -0,0 +1,95 @@
#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;
}
+62
View File
@@ -0,0 +1,62 @@
/* Navbar */
#navbar {
list-style: none;
display: flex;
flex-direction: column;
padding: var(--padding);
}
.navbar-group {
margin-top: 25px;
margin-bottom: 5px;
font-size: calc(var(--font-size) + 0.1rem);
font-family: var(--serif);
}
.navbar-item {
-webkit-user-select: none;
-ms-user-select: none;
user-select: none;
position: relative;
font-weight: normal;
margin: 5px 0px 5px 0px;
user-select: none;
}
.nav-link {
font-size: 0.75rem;
}
@media (hover: hover) and (pointer: fine) {
.nav-link:hover {
color: var(--text);
}
}
.nav-link.active {
color: var(--text);
font-weight: bold;
}
.nav-link::before {
content: "";
position: absolute;
background: var(--text);
width: 2px;
height: 0px;
top: 50%;
transform: translateY(-50%);
left: calc(var(--padding) * (-1) + 1px);
border-radius: 20px;
transition: height 0.18s;
}
.nav-link.active::before {
height: 14px;
}
.idx {
font-weight: normal;
font-size: 0.75rem;
}
+89
View File
@@ -0,0 +1,89 @@
.sidebar {
position: fixed;
top: 0;
left: 0;
border-right: 1px solid var(--border);
width: var(--nav-w);
height: 100vh;
padding: 0;
margin: 0;
display: flex;
flex-direction: column;
background-color: var(--bg);
--padding: 30px;
}
@media (max-width: 1000px) or (max-height: 700px) {
.sidebar {
display: none;
}
}
/* Sidebar Top */
#sidebar-top {
border-bottom: 1px solid var(--border);
padding: var(--padding);
padding-top: calc(var(--padding) * 2);
display: flex;
flex-direction: column;
gap: 20px;
}
#sidebar-top-head {
padding: 0;
margin: 0;
}
#sidebar-top-content {
padding: 0;
margin: 0;
display: flex;
flex-direction: column;
gap: 0px;
}
#sidebar-top-content p {
font-size: calc(var(--font-size) - 0.15rem);
margin: 0;
padding: 0;
height: fit-content;
width: fit-content;
}
/* Sidebar Bottom */
.sidebar-bottom-margin {
margin-top: auto;
}
/* Language and Color */
.website-config {
height: fit-content;
display: flex;
align-items: center;
justify-content: center;
border-bottom: 1px solid var(--border);
padding-bottom: 20px;
gap: 20px;
-webkit-user-select: none;
-ms-user-select: none;
user-select: none;
}
/* Contact */
#sidebar-bottom {
height: 100px;
padding: calc(var(--padding) / 2);
display: flex;
flex-direction: column;
justify-content: space-evenly;
align-items: flex-start;
}
#sidebar-bottom a {
font-size: calc(var(--font-size) - 0.15rem);
}