Führe eine konfigurierbare Größenskala für Website und Vorschau ein
Zehn Basiswerte (Fließtext, Überschriften, Abstände, Kopfzeile, Inhaltsbreite, Bildhöhe) leiten in tokens.css alle Größen ab. Einstieg, Bild und Text, Premium-Karten, Karten, Kopf, Fuß und Schaltflächen verwenden nur noch diese Tokens. Die Werte sind unter Website, Design, Größen einstellbar und wirken ohne Deployment über ein Inline-Stylesheet in Website, Mitgliederbereich-Layout und CMS-Vorschau. Lesen fällt bei fehlender Tabelle oder beschädigten Daten auf die Standardwerte zurück. Die Migration ist rein ergänzend. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
e0a3fdbb70
commit
67614158e4
23 files changed
+1110
-111
No files matched your search
@@ -10,6 +10,8 @@
|
||||
* - Schriften und Farben ausschließlich über vorhandene Tokens (tokens.css); keine neuen Schriften.
|
||||
* - Die Karte hat ihre eigene helle Fläche und setzt dafür die hellen Bedeutungswerte, auch in dunklen Abschnitten.
|
||||
* - Kein line-clamp, keine feste Höhe: lange Titel und Texte brechen um.
|
||||
* - Größen aus der gemeinsamen Skala (ADR-44, tokens.css): Titel bis --text-h3 (breit --text-h2), Text --text-body,
|
||||
* Schaltfläche --text-button, Innenabstand --pad-card, Tafelhöhe aus dem Basisabstand.
|
||||
*/
|
||||
.lf-pc,
|
||||
.lf-pc * {
|
||||
@@ -40,7 +42,7 @@ .lf-pc {
|
||||
border: 1px solid var(--color-border);
|
||||
border-radius: var(--radius-panel);
|
||||
box-shadow: var(--shadow-raised);
|
||||
font: 400 1rem/1.55 var(--font-reading);
|
||||
font: 400 var(--text-body)/1.55 var(--font-reading);
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
|
||||
@@ -104,7 +106,7 @@ .lf-pc__body {
|
||||
flex-direction: column;
|
||||
align-items: start;
|
||||
min-inline-size: 0;
|
||||
padding: clamp(20px, 4.5cqi, 32px);
|
||||
padding: clamp(var(--pad-card), 3.4cqi, calc(var(--pad-card) * 1.4));
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
@@ -120,7 +122,7 @@ .lf-pc__kind {
|
||||
.lf-pc .lf-pc__title {
|
||||
margin: 0;
|
||||
color: var(--color-heading);
|
||||
font: 800 clamp(1.35rem, 4.6cqi, 1.75rem) / 1.18 var(--font-display);
|
||||
font: 800 clamp(1.2rem, 4cqi, var(--text-h3)) / 1.18 var(--font-display);
|
||||
letter-spacing: -0.025em;
|
||||
text-wrap: balance;
|
||||
}
|
||||
@@ -175,7 +177,7 @@ .lf-pc__cta {
|
||||
background: var(--pc-action);
|
||||
color: var(--pc-action-text);
|
||||
font-weight: 600;
|
||||
font-size: 0.9375rem;
|
||||
font-size: var(--text-button);
|
||||
line-height: 1.4;
|
||||
text-decoration: none;
|
||||
text-align: center;
|
||||
@@ -216,16 +218,16 @@ .lf-pc__panel {
|
||||
flex-direction: column;
|
||||
justify-content: space-between;
|
||||
gap: 20px;
|
||||
min-block-size: 140px;
|
||||
min-block-size: calc(var(--ds-space) * 14 / 16 * 1rem);
|
||||
margin: 10px 10px 0;
|
||||
padding: 24px;
|
||||
padding: calc(var(--pad-card) * 1.2);
|
||||
border-radius: var(--radius-card);
|
||||
background: var(--lf-navy);
|
||||
color: var(--lf-white);
|
||||
}
|
||||
|
||||
.lf-pc__panel-label {
|
||||
font: 800 1.6rem / 1.15 var(--font-display);
|
||||
font: 800 calc(var(--text-h3) * 1.1) / 1.15 var(--font-display);
|
||||
}
|
||||
|
||||
.lf-pc__panel-accent {
|
||||
@@ -329,7 +331,7 @@ @container slot (min-width: 520px) {
|
||||
/* Neben dem Text wie ein Bild mittig, auch wenn die Karte auf Zeilenhöhe gestreckt ist. */
|
||||
.lf-pc:not(.lf-pc--stacked) .lf-pc__panel {
|
||||
margin: 10px 0 10px 10px;
|
||||
min-block-size: 220px;
|
||||
min-block-size: calc(var(--ds-space) * 20 / 16 * 1rem);
|
||||
align-self: center;
|
||||
}
|
||||
|
||||
@@ -339,8 +341,8 @@ @container slot (min-width: 520px) {
|
||||
border-radius: var(--radius-card);
|
||||
}
|
||||
|
||||
.lf-pc__body { padding: clamp(22px, 4cqi, 36px); }
|
||||
.lf-pc .lf-pc__title { font-size: clamp(1.45rem, 3.4cqi, 2rem); }
|
||||
.lf-pc__body { padding: clamp(var(--pad-card), 3cqi, calc(var(--pad-card) * 1.4)); }
|
||||
.lf-pc .lf-pc__title { font-size: clamp(1.2rem, 3cqi, var(--text-h2)); }
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
|
||||
Reference in new issue
Block a user