Revamp CSS variables and styles for improved design

This commit is contained in:
Dome
2026-04-07 17:42:25 +02:00
committed by GitHub
parent 45681069cd
commit dbae95dca4
+38 -31
View File
@@ -21,16 +21,16 @@ limitations under the License.
@import url('open.css'); @import url('open.css');
:root { :root {
--app-background: #f4f4f4; --app-background: #1e1f29; /* Hintergrund der Seite */
--background: #ffffff; --background: #282a36; /* Hintergrund der Card/Kachel */
--foreground: #000000; --foreground: #f7f7fa; /* Haupt-Textfarbe */
--font: #333333; --font: #f7f7fa;
--grey: #666666; --sub-text: #bdc3c7; /* Für Beschreibungen */
--accent: #0098d4; --accent: #0dbd8b; /* Matrix Green */
--error: #d6001c; --link: #f7f7fa; /* Links weiß wie im Entwurf */
--link: #0098d4; --borders: #2f313d;
--borders: #f4f4f4; --lightgrey: #383a59;
--lightgrey: #E6E6E6; --error: #ff5555;
--spinner-stroke-size: 2px; --spinner-stroke-size: 2px;
} }
@@ -41,17 +41,17 @@ html {
body { body {
background-color: var(--app-background); background-color: var(--app-background);
background-image: url('../images/background.svg'); /* Das Standard-Hintergrundbild entfernen für den cleanen Look */
background-attachment: fixed; background-image: none;
background-repeat: no-repeat; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
background-size: auto;
background-position: center -50px;
height: 100%;
width: 100%;
font-size: 14px;
color: var(--font); color: var(--font);
padding: 120px 0 0 0; display: flex;
flex-direction: column;
align-items: center;
padding: 60px 20px;
margin: 0; margin: 0;
height: auto;
min-height: 100vh;
} }
noscript { noscript {
@@ -95,8 +95,12 @@ input[type="checkbox"], input[type="radio"] {
.card { .card {
background-color: var(--background); background-color: var(--background);
border-radius: 16px; border-radius: 4px; /* Eckig wie in deinem Entwurf */
box-shadow: 0px 18px 24px rgba(0, 0, 0, 0.06); border-left: 4px solid #bd93f9; /* Der lila Akzent-Strich vom Hover-Effekt */
box-shadow: 0 10px 30px rgba(0,0,0,0.3);
padding: 2rem;
max-width: 480px;
width: 100%;
} }
.card, .footer { .card, .footer {
@@ -158,19 +162,22 @@ button.text:hover {
cursor: pointer; cursor: pointer;
} }
.primary, .secondary { .primary {
text-decoration: none; background-color: var(--font) !important; /* Weißer Hintergrund */
font-weight: bold; color: var(--app-background) !important; /* Dunkler Text */
text-align: center; border-radius: 4px !important;
padding: 12px 8px; text-transform: uppercase;
margin: 8px 0; letter-spacing: 1px;
font-weight: 600;
} }
.secondary { .secondary {
background: var(--background); background: transparent !important;
color: var(--link); border: 1px solid var(--font) !important;
border: 1px solid var(--link); color: var(--font) !important;
border-radius: 32px; border-radius: 4px !important;
text-transform: uppercase;
letter-spacing: 1px;
} }
.primary { .primary {