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
+73
View File
@@ -0,0 +1,73 @@
/* Language Dropdown*/
.lang-dropdown {
user-select: none;
display: flex;
gap: 3px;
width: 91px;
height: 40px;
display: flex;
justify-content: center;
align-items: center;
border: none;
background: none;
-webkit-user-select: none;
-ms-user-select: none;
user-select: none;
}
.lang-dropdown.show-border {
border: 1px solid var(--border);
border-radius: 8px;
background: var(--bg2);
}
.lang-menu {
display: flex;
align-items: center;
gap: 3px;
}
.lang-item {
cursor: pointer;
background-color: var(--surface);
width: 40px;
height: 24px;
display: flex;
align-items: center;
justify-content: center;
border: 1px solid var(--border);
border-radius: 8px;
color: var(--muted);
}
@media (hover: hover) and (pointer: fine) {
.lang-item:hover {
border-color: var(--text);
color: var(--text);
}
}
.lang-button {
width: 40px;
height: 30px;
appearance: none;
-webkit-appearance: none;
-moz-appearance: none;
cursor: pointer;
background-color: var(--surface);
color: var(--muted);
border-radius: 8px;
border: 1px solid var(--border);
padding: 3px 6px;
font-size: 14px;
}
@media (hover: hover) and (pointer: fine) {
.lang-button:hover {
border-color: var(--text);
color: var(--text);
}
}
+72
View File
@@ -0,0 +1,72 @@
.button-mobile.no-navbar {
display: inline-block;
}
/* Hidden together with the mobile bar (mobile_bar.css) on large screens */
@media (min-width: 1001px) and (min-height: 701px) {
.button-mobile.no-navbar {
display: none;
}
}
.button-mobile {
position: relative;
width: 40px;
height: 40px;
background: var(--surface);
border: none;
margin-top: 20px;
cursor: pointer;
border: 1px solid var(--border);
}
.button-mobile.navbar {
margin-bottom: 20px;
}
.button-mobile::before {
content: "";
position: absolute;
left: 50%;
top: 30%;
background: var(--muted);
height: 2px;
width: 60%;
transform: translateX(-50%);
}
.button-mobile::after {
content: "";
position: absolute;
left: 50%;
top: 65%;
background: var(--muted);
height: 2px;
width: 60%;
transform: translateX(-50%);
}
.button-mobile:hover::after {
background: var(--text);
}
.button-mobile:hover::before {
background: var(--text);
}
.button-mobile:hover {
width: 40px;
height: 40px;
background: var(--bg2);
}
.button-mobile.no-navbar {
position: fixed;
top: 5px;
left: 5px;
margin-top: 0;
}
.button-mobile.no-navbar.inactive {
display: none;
}
+18
View File
@@ -0,0 +1,18 @@
.tags {
margin-top: 30px;
display: flex;
gap: 6px;
flex-wrap: wrap;
}
.tag {
color: var(--muted);
background: var(--surface);
border: 1px solid var(--border);
padding: 3px 10px;
border-radius: 3px;
font-size: 15px;
display: flex;
align-items: center;
justify-content: center;
}
+33
View File
@@ -0,0 +1,33 @@
.text-link:hover {
border-color: var(--text);
}
.text-link {
display: inline-block;
width: fit-content;
font-size: var(--text-size);
font-weight: bolder;
text-decoration: none;
transition: border-color 0.15s;
white-space: nowrap;
position: relative;
}
.text-link:hover {
color: var(--text);
}
.text-link::before {
content: "";
width: 100%;
height: 1.2px;
background: var(--muted);
left: 0;
bottom: 2px;
position: absolute;
border-radius: 16px;
}
.text-link:hover::before {
background: var(--text);
}
+57
View File
@@ -0,0 +1,57 @@
/* Color Switch */
.switch {
user-select: none;
position: relative;
display: inline-block;
width: 52px;
height: 28px;
}
.switch input {
opacity: 0;
width: 0;
height: 0;
}
.slider {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: var(--surface);
border-radius: 26px;
border: 1px solid var(--border);
}
@media (hover: hover) and (pointer: fine) {
.slider:hover {
border: 1px solid var(--text);
}
}
.slider:before {
position: absolute;
content: "";
height: 20px;
width: 20px;
left: 3px;
bottom: 3px;
background-color: var(--muted);
transition: 0.4s;
border-radius: 50%;
}
input:checked+.slider:before {
background-color: var(--bg);
}
input:checked+.slider {
background-color: var(--surface);
}
input:checked+.slider:before {
transform: translateX(24px);
}