From 5506151e8a999040bd95667b9f5601e00a0e14a4 Mon Sep 17 00:00:00 2001 From: Mika Date: Thu, 26 Feb 2026 12:52:54 +0000 Subject: [PATCH] Add metrics_visualization/css/base.css --- metrics_visualization/css/base.css | 136 +++++++++++++++++++++++++++++ 1 file changed, 136 insertions(+) create mode 100644 metrics_visualization/css/base.css diff --git a/metrics_visualization/css/base.css b/metrics_visualization/css/base.css new file mode 100644 index 0000000..1894eb1 --- /dev/null +++ b/metrics_visualization/css/base.css @@ -0,0 +1,136 @@ +/* ============================== + Variables + ============================== */ +:root { + --color-bg: #f9f9fb; + --color-surface: #ffffff; + --color-text: #1a1a1a; + --color-text-muted: #6e6e6e; + --color-accent: #0074d9; + --color-warning: #f39c12; + --color-error: #e74c3c; + + --font-base: 'Segoe UI', system-ui, sans-serif; + --font-size-base: 1rem; + --font-size-lg: 1.25rem; + --font-size-sm: 0.875rem; + + --spacing-xs: 0.25rem; + --spacing-sm: 0.5rem; + --spacing-md: 1rem; + --spacing-lg: 2rem; + --spacing-xl: 4rem; + + --radius-sm: 4px; + --radius-md: 8px; + --radius-lg: 12px; + + --max-content-width: 1200px; +} + +/* ============================== + Root & Body Setup + ============================== */ +html { + box-sizing: border-box; + font-size: 16px; + -webkit-text-size-adjust: 100%; + scroll-behavior: smooth; +} + +*, *::before, *::after { + box-sizing: inherit; + margin: 0; + padding: 0; +} + +body { + min-height: 100vh; + font-family: var(--font-base); + font-size: var(--font-size-base); + color: var(--color-text); + background-color: var(--color-bg); + line-height: 1.5; + display: flex; + flex-direction: column; +} + +body > main { + flex: 1; + display: flex; + flex-direction: column; + align-items: center; + justify-content: flex-start; + padding: var(--spacing-md); +} + +/* ============================== + Typography + ============================== */ + +h1, h2 { + font-weight: 600; + line-height: 1.2; + color: var(--color-text); + margin-bottom: var(--spacing-md); +} + +h1 { + font-size: 1.75rem; +} + +h2 { + font-size: 1.25rem; +} + +p { + margin-bottom: var(--spacing-md); + color: var(--color-text); +} + +.text-muted { + color: var(--color-text-muted); +} + +/* ============================== + Utility Layout Elements + ============================== */ + +.container { + width: 100%; + max-width: var(--max-content-width); + margin: 0 auto; + padding: 0 var(--spacing-md); +} + +footer { + text-align: center; + font-size: var(--font-size-sm); + color: var(--color-text-muted); + padding: var(--spacing-md); +} + +footer::after { + content: '© 2026 Donau2Space.de'; + display: block; + margin-top: var(--spacing-sm); +} + +/* ============================== + Responsive Adjustments + ============================== */ + +@media (min-width: 640px) { + h1 { + font-size: 2rem; + } + h2 { + font-size: 1.5rem; + } +} + +@media (min-width: 1024px) { + body > main { + padding: var(--spacing-lg); + } +} \ No newline at end of file