Das CSS-Variables-System wurde erfolgreich überarbeitet und implementiert. Die wichtigsten Verbesserungen sind:
Konsistentes Spacing-System: Mathematische Skala basierend auf --space-unit (0.25rem) Logische Abstufungen von xxs bis xxxl Responsive Anpassungen über Container-Padding und Section-Spacing Erweiterte Typografie-Kontrolle: Skalierbare Schriftgrößen basierend auf --font-size-base Definierte Schriftgewichte und Zeilenhöhen Responsive Anpassungen der Basis-Schriftgröße Verbesserte Responsive-Struktur: Breakpoint-Referenzen in Variablen Automatische Anpassungen durch CSS-Variablen Safe-Area-Insets für moderne Geräte Layout-System: Definierte Content-Breiten Z-Index-Skala Einheitliche Border-Radius-Werte Performance-Optimierungen: Hardware-beschleunigte Transitionen Optimierte Animation-Timings Konsistente Transition-Eigenschaften Die Migration wurde schrittweise durchgeführt: variables.css: Neue Basis-Variablen definiert base.css: Grundlegende Typografie und Layout angepasst header.css & header-line.css: Navigation und Header-Elemente optimiert components.css: Alle Komponenten auf neue Variablen umgestellt responsive.css: Breakpoint-spezifische Anpassungen implementiert animations.css: Animationen vereinheitlicht footer.css: Footer-Styles optimiert Das neue System bietet: Bessere Wartbarkeit durch zentrale Steuerung Konsistente Skalierung über alle Breakpoints Flexibilität für zukünftige Anpassungen Volle Kompatibilität mit dem Theme-System
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
/* Tablet Devices */
|
||||
@media (max-width: 768px) {
|
||||
.container {
|
||||
padding: 0 1.5rem;
|
||||
padding: 0 var(--container-padding);
|
||||
}
|
||||
|
||||
header {
|
||||
@@ -9,47 +9,47 @@
|
||||
}
|
||||
|
||||
.logo-text {
|
||||
font-size: 1.8rem;
|
||||
font-size: var(--font-size-lg);
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 2rem;
|
||||
font-size: var(--font-size-xl);
|
||||
}
|
||||
|
||||
h2 {
|
||||
font-size: 1.5rem;
|
||||
font-size: var(--font-size-lg);
|
||||
}
|
||||
|
||||
.h1-hero {
|
||||
font-size: 2rem !important;
|
||||
margin: 1rem !important;
|
||||
padding: 1rem !important;
|
||||
font-size: var(--font-size-xxl) !important;
|
||||
margin: var(--space-md) !important;
|
||||
padding: var(--space-md) !important;
|
||||
}
|
||||
|
||||
.mission-vision {
|
||||
grid-template-columns: 1fr;
|
||||
gap: 1rem;
|
||||
gap: var(--space-md);
|
||||
}
|
||||
|
||||
.service-card {
|
||||
padding: 1.5rem;
|
||||
padding: var(--space-lg);
|
||||
}
|
||||
|
||||
.welcome-quote {
|
||||
font-size: 1rem;
|
||||
padding: 1rem;
|
||||
font-size: var(--font-size-md);
|
||||
padding: var(--space-md);
|
||||
}
|
||||
|
||||
.logo-sub {
|
||||
font-size: 0.85rem;
|
||||
padding: 1.5rem;
|
||||
font-size: var(--font-size-sm);
|
||||
padding: var(--space-lg);
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.mobile-menu-toggle {
|
||||
display: block;
|
||||
padding: 0.5rem;
|
||||
transition: opacity 0.3s ease;
|
||||
padding: var(--space-xs);
|
||||
transition: opacity var(--transition-speed) var(--transition-timing);
|
||||
}
|
||||
|
||||
.mobile-menu-toggle:active {
|
||||
@@ -67,43 +67,59 @@
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
border-bottom: 1px solid var(--border-color);
|
||||
padding: 2rem 1rem;
|
||||
gap: 1.5rem;
|
||||
padding: var(--space-xl) var(--space-md);
|
||||
gap: var(--space-lg);
|
||||
overflow-y: auto;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
z-index: var(--z-header);
|
||||
}
|
||||
|
||||
.nav-menu.active {
|
||||
display: flex;
|
||||
animation: fadeIn 0.3s ease-in-out;
|
||||
animation: fadeIn var(--transition-speed) var(--transition-timing);
|
||||
}
|
||||
|
||||
.nav-menu a {
|
||||
padding: 0.75rem 1.5rem;
|
||||
padding: var(--space-sm) var(--space-lg);
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
border-radius: 0.25rem;
|
||||
transition: background-color 0.3s ease;
|
||||
border-radius: var(--radius-sm);
|
||||
transition: background-color var(--transition-speed) var(--transition-timing);
|
||||
}
|
||||
|
||||
.nav-menu a:hover {
|
||||
background-color: var(--hover-color);
|
||||
background-color: var(--bg-hover-rgb);
|
||||
}
|
||||
|
||||
.contact-block {
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
footer {
|
||||
padding: var(--space-lg) var(--container-padding);
|
||||
gap: var(--space-md);
|
||||
}
|
||||
|
||||
.contact-block {
|
||||
flex-direction: column;
|
||||
gap: var(--space-md);
|
||||
}
|
||||
|
||||
.social-links {
|
||||
gap: var(--space-md);
|
||||
}
|
||||
|
||||
.legal-links a {
|
||||
display: block;
|
||||
margin: var(--space-xs) 0;
|
||||
}
|
||||
}
|
||||
|
||||
/* Mobile Devices */
|
||||
@media (max-width: 480px) {
|
||||
:root {
|
||||
--header-height: 80px;
|
||||
}
|
||||
|
||||
.container {
|
||||
padding: 0 1rem;
|
||||
padding: 0 var(--container-padding);
|
||||
}
|
||||
|
||||
header {
|
||||
@@ -111,90 +127,86 @@
|
||||
}
|
||||
|
||||
.logo-text {
|
||||
font-size: 1.6rem;
|
||||
font-size: var(--font-size-lg);
|
||||
}
|
||||
|
||||
main {
|
||||
margin-top: 1rem;
|
||||
padding: 1rem 0;
|
||||
margin-top: var(--space-md);
|
||||
padding: var(--space-md) 0;
|
||||
}
|
||||
|
||||
section {
|
||||
margin: 2rem 0;
|
||||
margin: var(--space-xl) 0;
|
||||
}
|
||||
|
||||
h1.h1-hero {
|
||||
font-size: 1.75rem !important;
|
||||
margin: 0.5rem !important;
|
||||
padding: 0.5rem !important;
|
||||
font-size: var(--font-size-xl) !important;
|
||||
margin: var(--space-xs) !important;
|
||||
padding: var(--space-xs) !important;
|
||||
}
|
||||
|
||||
.welcome-quote {
|
||||
font-size: 0.95rem;
|
||||
padding: 0.5rem;
|
||||
line-height: 1.5;
|
||||
font-size: var(--font-size-sm);
|
||||
padding: var(--space-xs);
|
||||
line-height: var(--line-height-base);
|
||||
}
|
||||
|
||||
.service-card {
|
||||
padding: 1.25rem;
|
||||
margin: 1rem 0;
|
||||
padding: var(--space-md);
|
||||
margin: var(--space-md) 0;
|
||||
}
|
||||
|
||||
.service-card h3 {
|
||||
font-size: 1.2rem;
|
||||
font-size: var(--font-size-lg);
|
||||
}
|
||||
|
||||
.contact-info {
|
||||
padding: 1.5rem;
|
||||
margin: 1rem 0;
|
||||
padding: var(--space-lg);
|
||||
margin: var(--space-md) 0;
|
||||
}
|
||||
|
||||
.contact-info a {
|
||||
padding: 0.5rem 0;
|
||||
font-size: 0.95rem;
|
||||
padding: var(--space-xs) 0;
|
||||
font-size: var(--font-size-sm);
|
||||
}
|
||||
|
||||
.logo-sub {
|
||||
font-size: 0.8rem;
|
||||
line-height: 1.4;
|
||||
padding: 1.5rem;
|
||||
font-size: var(--font-size-xs);
|
||||
line-height: var(--line-height-base);
|
||||
padding: var(--space-lg);
|
||||
margin: 0;
|
||||
}
|
||||
}
|
||||
|
||||
/* Small Mobile Devices */
|
||||
@media (max-width: 320px) {
|
||||
:root {
|
||||
--header-height: 60px;
|
||||
}
|
||||
|
||||
header {
|
||||
height: var(--header-height);
|
||||
}
|
||||
|
||||
.logo-text {
|
||||
font-size: 1.4rem;
|
||||
font-size: var(--font-size-md);
|
||||
}
|
||||
|
||||
h1.h1-hero {
|
||||
font-size: 1.5rem !important;
|
||||
font-size: var(--font-size-lg) !important;
|
||||
}
|
||||
|
||||
.service-card {
|
||||
padding: 1rem;
|
||||
padding: var(--space-md);
|
||||
}
|
||||
|
||||
.contact-info {
|
||||
padding: 1rem;
|
||||
padding: var(--space-md);
|
||||
}
|
||||
|
||||
.welcome-quote {
|
||||
font-size: 0.9rem;
|
||||
font-size: var(--font-size-xs);
|
||||
}
|
||||
|
||||
.logo-sub {
|
||||
font-size: 0.75rem;
|
||||
padding: 0.75rem;
|
||||
font-size: var(--font-size-xs);
|
||||
padding: var(--space-sm);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -202,7 +214,7 @@
|
||||
@media (hover: none) {
|
||||
.contact-info a,
|
||||
.nav-menu a {
|
||||
padding: 0.75rem;
|
||||
padding: var(--space-sm);
|
||||
min-height: 44px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
@@ -225,14 +237,14 @@
|
||||
/* Fix for notched phones */
|
||||
@supports (padding: max(0px)) {
|
||||
header {
|
||||
padding-left: max(1rem, env(safe-area-inset-left));
|
||||
padding-right: max(1rem, env(safe-area-inset-right));
|
||||
padding-left: var(--safe-area-inset-left);
|
||||
padding-right: var(--safe-area-inset-right);
|
||||
}
|
||||
|
||||
.nav-menu {
|
||||
padding-left: max(1rem, env(safe-area-inset-left));
|
||||
padding-right: max(1rem, env(safe-area-inset-right));
|
||||
padding-bottom: max(1rem, env(safe-area-inset-bottom));
|
||||
padding-left: var(--safe-area-inset-left);
|
||||
padding-right: var(--safe-area-inset-right);
|
||||
padding-bottom: var(--safe-area-inset-bottom);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user