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
@@ -24,7 +24,7 @@ .lf-hero {
|
||||
display: grid;
|
||||
align-items: center;
|
||||
min-inline-size: 0;
|
||||
min-block-size: 32rem;
|
||||
min-block-size: calc(var(--ds-media) * 1.2 * var(--dens) / 16 * 1rem);
|
||||
max-inline-size: 100%;
|
||||
border-radius: clamp(1rem, 1.9cqi, 1.75rem);
|
||||
background: var(--lf-hero-cream);
|
||||
@@ -32,9 +32,10 @@ .lf-hero {
|
||||
font-family: var(--lf-font-display);
|
||||
}
|
||||
|
||||
.lf-hero--height-compact { min-block-size: 25rem; }
|
||||
.lf-hero--height-normal { min-block-size: 32rem; }
|
||||
.lf-hero--height-large { min-block-size: 40rem; }
|
||||
/* Mindesthöhen kommen aus der Mediengröße und der Dichtestufe (--dens, tokens.css): kompakt 0,9 ×, normal 1,2 ×, groß 1,56 × --ds-media. */
|
||||
.lf-hero--height-compact,
|
||||
.lf-hero--height-normal,
|
||||
.lf-hero--height-large { min-block-size: calc(var(--ds-media) * 1.2 * var(--dens) / 16 * 1rem); }
|
||||
|
||||
.lf-hero__photo {
|
||||
position: absolute;
|
||||
@@ -128,8 +129,8 @@ .lf-hero__inner {
|
||||
max-inline-size: 1440px;
|
||||
min-inline-size: 0;
|
||||
margin-inline: auto;
|
||||
padding: clamp(1.8rem, 4.3cqi, 5rem);
|
||||
padding-block: clamp(2.1rem, 5cqi, 5rem);
|
||||
padding: clamp(var(--pad-card), 3.4cqi, var(--pad-surface));
|
||||
padding-block: clamp(var(--pad-card), 3.4cqi, var(--pad-surface));
|
||||
}
|
||||
|
||||
.lf-hero__copy { position: relative; max-inline-size: min(660px, 58%); min-inline-size: 0; }
|
||||
@@ -151,7 +152,7 @@ .lf-hero__title {
|
||||
margin: 0.25em 0;
|
||||
color: inherit;
|
||||
font-family: inherit;
|
||||
font-size: clamp(2.1rem, 5.4cqi, 4.9rem);
|
||||
font-size: clamp(1.75rem, 4cqi, var(--text-display));
|
||||
line-height: 1.06;
|
||||
letter-spacing: -0.035em;
|
||||
font-weight: 900;
|
||||
@@ -184,7 +185,7 @@ .lf-hero__description {
|
||||
max-inline-size: 56ch;
|
||||
margin: 0 0 clamp(1.25rem, 2.1cqi, 2rem);
|
||||
font-family: var(--lf-font-ui);
|
||||
font-size: clamp(1.05rem, 1.7cqi, 1.3rem);
|
||||
font-size: clamp(1rem, 1.5cqi, var(--text-lede));
|
||||
line-height: 1.5;
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
@@ -197,11 +198,11 @@ .lf-hero__button {
|
||||
justify-content: center;
|
||||
min-inline-size: 0;
|
||||
max-inline-size: 100%;
|
||||
min-block-size: 3rem;
|
||||
padding: 0.77rem 1.2rem;
|
||||
min-block-size: var(--touch-target);
|
||||
padding: 0.6rem 1.1rem;
|
||||
border: 2px solid transparent;
|
||||
border-radius: 999px;
|
||||
font: 800 0.96rem/1.28 var(--lf-font-ui);
|
||||
font: 800 var(--text-button)/1.28 var(--lf-font-ui);
|
||||
text-decoration: none;
|
||||
text-align: center;
|
||||
white-space: normal;
|
||||
@@ -237,10 +238,10 @@ @container lf-hero (max-width: 859.99px) {
|
||||
.lf-hero__photo { position: relative; display: block; block-size: auto; aspect-ratio: 16 / 9; }
|
||||
.lf-hero__video { inset: 0 0 auto 0; block-size: auto; aspect-ratio: 16 / 9; border-radius: inherit; }
|
||||
.lf-hero--photo-split::before { display: none; }
|
||||
.lf-hero__inner { padding: clamp(1.2rem, 3.5cqi, 2rem); padding-block-end: 2.4rem; }
|
||||
.lf-hero__inner { padding: clamp(var(--pad-card), 3.5cqi, calc(var(--pad-card) * 1.6)); padding-block-end: calc(var(--pad-card) * 1.6); }
|
||||
.lf-hero__copy { max-inline-size: 100%; }
|
||||
.lf-hero__title { font-size: clamp(2rem, 5.5cqi, 3.1rem); }
|
||||
.lf-hero__description { font-size: 1.07rem; }
|
||||
.lf-hero__title { font-size: clamp(1.75rem, 5.5cqi, var(--text-display)); }
|
||||
.lf-hero__description { font-size: var(--text-lede); }
|
||||
.lf-hero--editorial-solid .lf-hero__copy { max-inline-size: 100%; }
|
||||
.lf-hero__rays { inset-block-start: -1.6rem; inset-inline-start: auto; inset-inline-end: 0; transform: rotate(10deg); }
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user