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,28 +1,28 @@
|
||||
/* Card Base Styles */
|
||||
.card-base {
|
||||
background: var(--bg-card);
|
||||
padding: var(--spacing-xl);
|
||||
border-radius: var(--border-radius);
|
||||
padding: var(--space-xl);
|
||||
border-radius: var(--radius-md);
|
||||
border: 1px solid var(--border-color);
|
||||
transition: transform var(--transition-speed) ease,
|
||||
border-color var(--transition-speed) ease;
|
||||
transition: transform var(--transition-speed) var(--transition-timing),
|
||||
border-color var(--transition-speed) var(--transition-timing);
|
||||
}
|
||||
|
||||
/* Mission Vision Cards */
|
||||
.mission-vision {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
|
||||
gap: var(--spacing-lg);
|
||||
margin: var(--spacing-xl) 0;
|
||||
gap: var(--space-lg);
|
||||
margin: var(--space-xl) 0;
|
||||
}
|
||||
|
||||
.tooltip-container {
|
||||
background: var(--bg-card);
|
||||
padding: var(--spacing-xl);
|
||||
border-radius: var(--border-radius);
|
||||
padding: var(--space-xl);
|
||||
border-radius: var(--radius-md);
|
||||
border: 1px solid var(--border-color);
|
||||
cursor: pointer;
|
||||
transition: border-color 0.3s ease;
|
||||
transition: border-color var(--transition-speed) var(--transition-timing);
|
||||
}
|
||||
|
||||
.tooltip-container:hover {
|
||||
@@ -31,12 +31,14 @@
|
||||
|
||||
.tooltip-container h3 {
|
||||
color: var(--primary);
|
||||
margin-bottom: var(--spacing-md);
|
||||
margin-bottom: var(--space-md);
|
||||
font-size: var(--font-size-lg);
|
||||
font-weight: var(--font-weight-medium);
|
||||
}
|
||||
|
||||
.tooltip-header {
|
||||
position: relative;
|
||||
padding-right: 30px;
|
||||
padding-right: var(--space-xl);
|
||||
}
|
||||
|
||||
.tooltip-header::after {
|
||||
@@ -45,7 +47,7 @@
|
||||
right: 0;
|
||||
top: 0;
|
||||
color: var(--primary);
|
||||
transition: transform 0.3s ease;
|
||||
transition: transform var(--transition-speed) var(--transition-timing);
|
||||
}
|
||||
|
||||
.tooltip-container.active .tooltip-header::after {
|
||||
@@ -56,26 +58,30 @@
|
||||
max-height: 0;
|
||||
overflow: hidden;
|
||||
opacity: 0;
|
||||
transition: max-height 0.3s ease-out, opacity 0.3s ease-out, margin 0.3s ease-out;
|
||||
transition: max-height var(--transition-speed) var(--transition-timing),
|
||||
opacity var(--transition-speed) var(--transition-timing),
|
||||
margin var(--transition-speed) var(--transition-timing);
|
||||
margin-top: 0;
|
||||
font-size: var(--font-size-md);
|
||||
line-height: var(--line-height-base);
|
||||
}
|
||||
|
||||
.tooltip-container.active .tooltip-content {
|
||||
max-height: 500px;
|
||||
opacity: 1;
|
||||
margin-top: var(--spacing-lg);
|
||||
padding-top: var(--spacing-lg);
|
||||
margin-top: var(--space-lg);
|
||||
padding-top: var(--space-lg);
|
||||
border-top: 1px solid var(--border-color);
|
||||
}
|
||||
|
||||
/* Service Cards */
|
||||
.service-card {
|
||||
background: var(--bg-card);
|
||||
padding: var(--spacing-xl);
|
||||
border-radius: var(--border-radius);
|
||||
padding: var(--space-xl);
|
||||
border-radius: var(--radius-md);
|
||||
border: 1px solid var(--border-color);
|
||||
margin: var(--spacing-lg) 0;
|
||||
transition: border-color 0.3s ease;
|
||||
margin: var(--space-lg) 0;
|
||||
transition: border-color var(--transition-speed) var(--transition-timing);
|
||||
}
|
||||
|
||||
.service-card:hover {
|
||||
@@ -84,14 +90,18 @@
|
||||
|
||||
.service-card h3 {
|
||||
color: var(--primary);
|
||||
margin-bottom: var(--spacing-md);
|
||||
margin-bottom: var(--space-md);
|
||||
font-size: var(--font-size-lg);
|
||||
font-weight: var(--font-weight-medium);
|
||||
}
|
||||
|
||||
.service-card li {
|
||||
list-style: none;
|
||||
margin-bottom: var(--spacing-sm);
|
||||
margin-bottom: var(--space-sm);
|
||||
position: relative;
|
||||
padding-left: 1.5em;
|
||||
padding-left: var(--space-lg);
|
||||
font-size: var(--font-size-md);
|
||||
line-height: var(--line-height-base);
|
||||
}
|
||||
|
||||
.service-card li::before {
|
||||
@@ -104,12 +114,12 @@
|
||||
/* Contact Info Card */
|
||||
.contact-info {
|
||||
background: var(--bg-card);
|
||||
padding: var(--spacing-xl);
|
||||
border-radius: var(--border-radius);
|
||||
padding: var(--space-xl);
|
||||
border-radius: var(--radius-md);
|
||||
border: 1px solid var(--border-color);
|
||||
margin: var(--spacing-xl) 0;
|
||||
margin: var(--space-xl) 0;
|
||||
text-align: center;
|
||||
transition: border-color 0.3s ease;
|
||||
transition: border-color var(--transition-speed) var(--transition-timing);
|
||||
}
|
||||
|
||||
.contact-info:hover {
|
||||
@@ -117,15 +127,17 @@
|
||||
}
|
||||
|
||||
.contact-info p {
|
||||
margin-bottom: var(--spacing-lg);
|
||||
margin-bottom: var(--space-lg);
|
||||
color: var(--text);
|
||||
font-size: var(--font-size-md);
|
||||
line-height: var(--line-height-base);
|
||||
}
|
||||
|
||||
.contact-links {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: var(--spacing-md);
|
||||
gap: var(--space-md);
|
||||
}
|
||||
|
||||
.contact-link {
|
||||
@@ -133,11 +145,12 @@
|
||||
text-decoration: none;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--spacing-sm);
|
||||
padding: var(--spacing-sm) var(--spacing-md);
|
||||
border-radius: var(--border-radius);
|
||||
transition: all 0.3s ease;
|
||||
gap: var(--space-sm);
|
||||
padding: var(--space-sm) var(--space-md);
|
||||
border-radius: var(--radius-md);
|
||||
transition: all var(--transition-speed) var(--transition-timing);
|
||||
border: 1px solid transparent;
|
||||
font-size: var(--font-size-md);
|
||||
}
|
||||
|
||||
.contact-link:hover {
|
||||
@@ -146,47 +159,48 @@
|
||||
}
|
||||
|
||||
.contact-link i {
|
||||
font-size: 1.2em;
|
||||
font-size: var(--font-size-lg);
|
||||
color: var(--primary);
|
||||
}
|
||||
|
||||
/* Signal Icon Styles */
|
||||
.signal-icon {
|
||||
color: var(--primary);
|
||||
width: 1.2em;
|
||||
height: 1.2em;
|
||||
width: var(--font-size-lg);
|
||||
height: var(--font-size-lg);
|
||||
}
|
||||
|
||||
/* Quote Styles */
|
||||
.welcome-quote {
|
||||
font-size: 1.1rem;
|
||||
font-size: var(--font-size-lg);
|
||||
text-align: center;
|
||||
padding: var(--spacing-xl);
|
||||
padding: var(--space-xl);
|
||||
line-height: var(--line-height-relaxed);
|
||||
}
|
||||
|
||||
.logo-sub {
|
||||
display: block;
|
||||
text-align: center;
|
||||
font-size: 0.9rem;
|
||||
font-size: var(--font-size-sm);
|
||||
color: var(--text-muted);
|
||||
margin: var(--spacing-xl) auto;
|
||||
max-width: 800px;
|
||||
line-height: 1.4;
|
||||
margin: var(--space-xl) auto;
|
||||
max-width: var(--content-width-md);
|
||||
line-height: var(--line-height-relaxed);
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
/* Mobile Optimizations */
|
||||
@media (max-width: 768px) {
|
||||
.tooltip-container {
|
||||
padding: var(--spacing-lg);
|
||||
padding: var(--space-lg);
|
||||
}
|
||||
|
||||
.tooltip-content {
|
||||
font-size: 1rem;
|
||||
line-height: 1.6;
|
||||
font-size: var(--font-size-md);
|
||||
line-height: var(--line-height-base);
|
||||
}
|
||||
|
||||
.service-card {
|
||||
padding: var(--spacing-lg);
|
||||
padding: var(--space-lg);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user