Hinzufügen des Styles, verschieben und löschen der alten CSS Dateien. Umschalten auf Modulares Design

This commit is contained in:
Nirodan
2025-07-07 10:23:29 +02:00
parent c6f4522d2c
commit 537df29737
8 changed files with 80 additions and 42 deletions
+28
View File
@@ -0,0 +1,28 @@
/* base.css */
:root {
--bg-color: #121212;
--fg-color: #ffffff;
--accent-color: #4ea9ff;
--font-family: 'Segoe UI', sans-serif;
--button-bg: #3f51b5;
--button-hover: #5c6bc0;
}
body {
background-color: var(--bg-color);
color: var(--fg-color);
font-family: var(--font-family);
margin: 0;
padding: 0;
}
a {
color: var(--accent-color);
text-decoration: none;
}
.container {
max-width: 1200px;
margin: auto;
padding: 2rem;
}
+14
View File
@@ -0,0 +1,14 @@
/* buttons.css */
button {
background-color: var(--button-bg);
color: white;
border: none;
padding: 0.8rem 1.2rem;
border-radius: 6px;
cursor: pointer;
transition: background-color 0.3s ease;
}
button:hover {
background-color: var(--button-hover);
}
+9
View File
@@ -0,0 +1,9 @@
.dark {
--bg-color: #121212;
--text-color: #e0e0e0;
}
body.dark {
background-color: var(--bg-color);
color: var(--text-color);
}
+68
View File
@@ -0,0 +1,68 @@
:root {
font-family: system-ui, Avenir, Helvetica, Arial, sans-serif;
line-height: 1.5;
font-weight: 400;
color-scheme: light dark;
color: rgba(255, 255, 255, 0.87);
background-color: #242424;
font-synthesis: none;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
a {
font-weight: 500;
color: #646cff;
text-decoration: inherit;
}
a:hover {
color: #535bf2;
}
body {
margin: 0;
display: flex;
place-items: center;
min-width: 320px;
min-height: 100vh;
}
h1 {
font-size: 3.2em;
line-height: 1.1;
}
button {
border-radius: 8px;
border: 1px solid transparent;
padding: 0.6em 1.2em;
font-size: 1em;
font-weight: 500;
font-family: inherit;
background-color: #1a1a1a;
cursor: pointer;
transition: border-color 0.25s;
}
button:hover {
border-color: #646cff;
}
button:focus,
button:focus-visible {
outline: 4px auto -webkit-focus-ring-color;
}
@media (prefers-color-scheme: light) {
:root {
color: #213547;
background-color: #ffffff;
}
a:hover {
color: #747bff;
}
button {
background-color: #f9f9f9;
}
}
+9
View File
@@ -0,0 +1,9 @@
.light {
--bg-color: #ffffff;
--text-color: #222222;
}
body.light {
background-color: var(--bg-color);
color: var(--text-color);
}
+16
View File
@@ -0,0 +1,16 @@
/* menu.css */
.navbar {
background-color: #1e1e2f;
color: white;
padding: 1rem 2rem;
display: flex;
justify-content: space-between;
align-items: center;
box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}
.navbar a {
color: white;
margin-left: 1rem;
font-weight: bold;
}