Elastische Bildkarten — section.elastic-cards
Reihe hoher Bildkarten (Enterprise-Stil): die aktive Karte (Hover/Fokus, sonst die erste) dehnt sich und zeigt Text und Link; mobil waagerecht wischbar — für Lösungsbereiche, Zielgruppen, Produktfamilien. Reines CSS, kein JS
Beispiele
Keine Demo-Fälle hinterlegt (demo.php ergänzen).
Eigenschaften
| Prop | Typ | Default |
|---|---|---|
eyebrow | string | "" |
title | string | "" |
intro | string | "" |
items * | array | — |
height | string: medium | tall | "tall" |
tone | string: light | gray | dark | "light" |
spacing | string: none | sm | md | lg | xl | "lg" |
anchor | string | "" |
Stellschrauben (Komponenten-Tokens)
| Token | Default |
|---|---|
--band-surface | transparent |
--band-text | var(--color-text-default) |
--band-muted | var(--color-text-muted) |
--elastic-h | calc(var(--size-24) * 6) |
--section-spacing | var(--size-8) |
Genutzte Design-Tokens
color.action.primary color.band.dark color.band.dark-muted color.band.dark-text color.band.gray color.band.gray-muted color.band.gray-text color.text.default color.text.muted duration.base easing.standard focus.ring-color focus.ring-offset focus.ring-width font.family.default font.family.display font.leading.display leading.loose leading.tight radius.surface size.1 size.12 size.2 size.24 size.3 size.4 size.6 size.8 text.md text.reading text.sm text.xl text.xs tracking.wide weight.bold weight.semibold