Restyle UI with modern glassy theme

This commit is contained in:
Nirodan
2026-01-22 12:12:47 +01:00
parent 3d1bb93dfd
commit a944f7dd5d
9 changed files with 200 additions and 155 deletions
+42 -7
View File
@@ -1,13 +1,48 @@
.main-content { .main-content {
padding-top: 60px; /* Entspricht der Höhe deiner NavBar */ max-width: 980px;
margin: 90px auto 60px;
padding: 28px 32px;
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius);
box-shadow: var(--shadow);
backdrop-filter: var(--nav-blur);
transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
} }
:root { h1, h2, h3 {
font-family: 'Arial', sans-serif; margin: 0 0 12px;
transition: background 0.3s, color 0.3s; color: var(--text);
letter-spacing: -0.02em;
} }
body { h2 {
margin: 0; font-size: 1.6rem;
padding: 0; font-weight: 700;
}
p {
margin: 0 0 12px;
color: var(--muted);
}
input, textarea {
width: 100%;
background: var(--input-bg);
color: var(--text);
border: 1px solid var(--input-border);
border-radius: 12px;
padding: 12px 14px;
font-size: 1rem;
transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
input:focus, textarea:focus {
outline: none;
border-color: var(--accent);
box-shadow: 0 0 0 4px var(--focus-ring);
}
input::placeholder, textarea::placeholder {
color: var(--muted);
} }
+25 -18
View File
@@ -1,24 +1,31 @@
button { button {
padding: 10px 20px; padding: 12px 18px;
border: none; border-radius: 14px;
border-radius: 5px; border: 1px solid transparent;
margin: 5px; margin: 6px 4px;
cursor: pointer; cursor: pointer;
font-weight: bold; font-weight: 600;
} font-size: 1rem;
letter-spacing: 0.01em;
body:not(.dark-mode) button { background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
background-color: #f0f0f0; color: #0b1224;
color: #333; box-shadow: 0 12px 30px rgba(14, 165, 233, 0.32);
border: 1px solid #ccc; transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
body.dark-mode button {
background-color: #444;
color: #fff;
border: 1px solid #888;
} }
button:hover { button:hover {
background-color: #ccc; transform: translateY(-1px);
box-shadow: 0 16px 32px rgba(14, 165, 233, 0.38);
filter: brightness(1.03);
}
button:active {
transform: translateY(0);
box-shadow: 0 10px 20px rgba(14, 165, 233, 0.28);
}
button:disabled {
opacity: 0.55;
cursor: not-allowed;
box-shadow: none;
} }
+19 -7
View File
@@ -1,9 +1,21 @@
.dark {
--bg-color: #121212;
--text-color: #e0e0e0;
}
body.dark { body.dark {
background-color: var(--bg-color); --bg: #0b1224;
color: var(--text-color); --bg-alt: #0f172a;
--surface: #111b30;
--surface-2: #0f1629;
--text: #e8edf7;
--muted: #9fb3d8;
--border: #1d2a44;
--accent: #22d3ee;
--accent-strong: #0ea5e9;
--accent-warm: #f59e0b;
--input-bg: #0f1b33;
--input-border: #1f2c44;
--focus-ring: rgba(34, 211, 238, 0.22);
--gradient: radial-gradient(circle at 20% 20%, rgba(34, 211, 238, 0.12), transparent 26%),
radial-gradient(circle at 80% 0%, rgba(245, 158, 11, 0.10), transparent 28%),
linear-gradient(135deg, #0b1224 0%, #0c152a 50%, #0a1020 100%);
background: var(--gradient);
color: var(--text);
} }
+10 -8
View File
@@ -1,14 +1,16 @@
.home-button { .home-button {
background-color: transparent; background: transparent;
color: inherit; color: var(--text);
border: none; border: 1px solid var(--border);
font-size: 16px; font-size: 15px;
padding: 5px 10px; padding: 8px 12px;
cursor: pointer; cursor: pointer;
transition: background-color 0.2s ease; border-radius: 10px;
transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
} }
.home-button:hover { .home-button:hover {
background-color: rgba(255, 255, 255, 0.1); background: rgba(34, 211, 238, 0.12);
border-radius: 5px; border-color: var(--accent);
color: var(--accent);
} }
+37 -49
View File
@@ -1,68 +1,56 @@
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap');
:root { :root {
font-family: system-ui, Avenir, Helvetica, Arial, sans-serif; --bg: #0b1224;
line-height: 1.5; --bg-alt: #0f172a;
--surface: #111b30;
--surface-2: #0f1629;
--text: #e8edf7;
--muted: #9fb3d8;
--border: #1d2a44;
--accent: #22d3ee;
--accent-strong: #0ea5e9;
--accent-warm: #f59e0b;
--shadow: 0 25px 80px rgba(5, 10, 30, 0.45);
--radius: 18px;
--gradient: radial-gradient(circle at 20% 20%, rgba(34, 211, 238, 0.12), transparent 26%),
radial-gradient(circle at 80% 0%, rgba(245, 158, 11, 0.10), transparent 28%),
linear-gradient(135deg, #0b1224 0%, #0c152a 50%, #0a1020 100%);
--input-bg: #0f1b33;
--input-border: #1f2c44;
--focus-ring: rgba(34, 211, 238, 0.22);
--nav-blur: blur(10px);
font-family: 'Space Grotesk', 'Segoe UI', system-ui, -apple-system, sans-serif;
line-height: 1.6;
font-weight: 400; font-weight: 400;
color-scheme: light dark;
color: rgba(255, 255, 255, 0.87);
background-color: #242424;
font-synthesis: none;
text-rendering: optimizeLegibility; text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale; -moz-osx-font-smoothing: grayscale;
} }
a { * {
font-weight: 500; box-sizing: border-box;
color: #646cff;
text-decoration: inherit;
}
a:hover {
color: #535bf2;
} }
body { body {
margin: 0; margin: 0;
display: flex;
place-items: center;
min-width: 320px;
min-height: 100vh; min-height: 100vh;
background: var(--gradient);
color: var(--text);
} }
h1 { a {
font-size: 3.2em; color: var(--accent);
line-height: 1.1; text-decoration: none;
font-weight: 600;
} }
button { a:hover {
border-radius: 8px; color: var(--accent-strong);
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) { ::selection {
:root { background: rgba(34, 211, 238, 0.28);
color: #213547; color: #0b1224;
background-color: #ffffff;
}
a:hover {
color: #747bff;
}
button {
background-color: #f9f9f9;
}
} }
+19 -7
View File
@@ -1,9 +1,21 @@
.light {
--bg-color: #ffffff;
--text-color: #222222;
}
body.light { body.light {
background-color: var(--bg-color); --bg: #f6f7fb;
color: var(--text-color); --bg-alt: #eef2fb;
--surface: #ffffff;
--surface-2: #f4f7ff;
--text: #0f172a;
--muted: #5b6475;
--border: #dfe4f2;
--accent: #0ea5e9;
--accent-strong: #0284c7;
--accent-warm: #f59e0b;
--input-bg: #f7f9fe;
--input-border: #d9deeb;
--focus-ring: rgba(14, 165, 233, 0.22);
--gradient: radial-gradient(circle at 18% 20%, rgba(14, 165, 233, 0.14), transparent 28%),
radial-gradient(circle at 82% 0%, rgba(245, 158, 11, 0.12), transparent 32%),
linear-gradient(135deg, #f6f7fb 0%, #eef2fb 45%, #e8ecf9 100%);
background: var(--gradient);
color: var(--text);
} }
+10 -8
View File
@@ -1,14 +1,16 @@
.toggle-button { .toggle-button {
background-color: transparent; background: rgba(255, 255, 255, 0.02);
color: inherit; color: var(--text);
border: none; border: 1px solid var(--border);
font-size: 16px; font-size: 14px;
padding: 5px 10px; padding: 9px 12px;
cursor: pointer; cursor: pointer;
transition: background-color 0.2s ease; border-radius: 999px;
transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
} }
.toggle-button:hover { .toggle-button:hover {
background-color: rgba(255, 255, 255, 0.1); border-color: var(--accent);
border-radius: 5px; color: var(--accent);
background: rgba(34, 211, 238, 0.08);
} }
+1 -31
View File
@@ -1,31 +1 @@
.navbar { /* Reserved for future menu styling; kept empty to avoid conflicting with the navbar theme. */
display: flex;
justify-content: space-between;
align-items: center;
background-color: var(--background-color);
padding: 0.5rem 1rem;
border-bottom: 1px solid var(--accent-color);
}
.navbar-left,
.navbar-right {
display: flex;
align-items: center;
}
.navbar-btn {
background: none;
border: none;
color: var(--text-color);
font-size: 1rem;
cursor: pointer;
margin: 0 0.3rem;
}
.navbar-btn:hover {
text-decoration: underline;
}
.navbar-spacer {
width: 1rem;
}
+36 -19
View File
@@ -1,40 +1,57 @@
.navbar { .navbar {
display: flex;
justify-content: space-between;
align-items: center;
padding: 10px 20px;
background-color: var(--background-color);
color: var(--text-color);
position: fixed; position: fixed;
top: 0; top: 0;
left: 0; left: 0;
right: 0; right: 0;
height: 60px; height: 68px;
display: flex;
justify-content: space-between;
align-items: center;
padding: 0 22px;
background: rgba(12, 21, 42, 0.7);
border-bottom: 1px solid var(--border);
backdrop-filter: blur(12px);
color: var(--text);
z-index: 999; z-index: 999;
} }
/* Wenn du Elemente gruppieren willst */
.nav-left, .nav-left,
.nav-right { .nav-right {
display: flex; display: flex;
align-items: center; align-items: center;
gap: 10px; gap: 12px;
}
.nav-button {
display: inline-flex;
align-items: center;
gap: 8px;
padding: 10px 14px;
border-radius: 12px;
border: 1px solid transparent;
color: var(--text);
font-weight: 700;
letter-spacing: 0.01em;
transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.nav-button:hover {
background: rgba(34, 211, 238, 0.12);
border-color: rgba(34, 211, 238, 0.25);
color: var(--accent);
} }
.navbar a,
.navbar button { .navbar button {
background: none; background: none;
border: none; border: 1px solid var(--border);
color: var(--text); color: var(--text);
font-size: 16px; padding: 10px 14px;
cursor: pointer; border-radius: 12px;
text-decoration: none; transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
padding: 6px 12px;
transition: background-color 0.3s;
} }
.navbar a:hover,
.navbar button:hover { .navbar button:hover {
background-color: var(--accent-hover); border-color: var(--accent);
border-radius: 4px; color: var(--accent);
background: rgba(34, 211, 238, 0.08);
} }