Führe einen gemeinsamen Layoutvertrag ein und integriere die Premium-Widgets.
Layoutvertrag (ADR-38) in der bestehenden Registry: Jede Widget-Art erklärt zulässige Rasterbreiten (supportedUnits), Höhen aus einem gemeinsamen Vokabular (heights, gespeichert als settings.height), Darstellungsmodi und Verhalten bei wenig Platz. Unzulässige Breiten werden beim Speichern verständlich abgewiesen; Höhe „fill“ streckt den Handlungsaufruf auf die Abschnittszeile. Premium-Widgets nach Brand-UI-Kit v1.6: - hero Version 2: photo_split/editorial_solid, Höhen compact/normal/ large, Label, Überschriftenebene, Akzent, Bildfokus in Prozent, zwei Schaltflächen; nur 3 oder 4 Einheiten. Upgrade aus Version 1. - image_text Version 3: Fläche cream/clear/navy, Höhen compact/normal/ spacious, Label, zwei Schaltflächen, Bildfokus; 1 bis 4 Einheiten. Upgrade aus Version 2 (format entfällt, Fokus in Prozent). - Kit-CSS ersetzt das bisherige Hero- und Bild-und-Text-CSS; der Randlos-Mechanismus der Designiteration 1 entfällt. Editor: Reiter Inhalt/Medien/Darstellung aus der Registry, Auswahl- knöpfe mit Symbolen, Schieberegler für den Bildfokus und eine Live- Vorschau im Dialog mit demselben Renderer in wählbarer Platzbreite. Tests bewusst angepasst: Einstieg braucht jetzt 3 oder 4 Einheiten (vorher Mindestbreite 2), image_text ist Version 3, Klassen der neuen Ansichten; die Hero-/Bild-Tests der Designiteration 1 sind durch CmsPremiumWidgetsTest ersetzt. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
3cdb36e7a3
commit
0bfb53463a
38 files changed
+1755
-856
No files matched your search
+27
-396
@@ -1,11 +1,37 @@
|
||||
/*
|
||||
* Widget-Ansichten (Designiteration 1). Jede Regel verwendet Bedeutungswerte und richtet sich nach der Slotbreite
|
||||
* Widget-Ansichten der Bestandswidgets. Jede Regel verwendet Bedeutungswerte und richtet sich nach der Slotbreite
|
||||
* (Container „slot“), nicht nach dem Fenster. Markenakzente (Unterstreichung, Strahlen) stammen aus
|
||||
* resources/views/components/brand und sind dekorativ.
|
||||
*/
|
||||
|
||||
.widget {
|
||||
min-width: 0;
|
||||
color: var(--color-text);
|
||||
overflow-wrap: break-word;
|
||||
}
|
||||
|
||||
/*
|
||||
* Gemeinsamer Layoutvertrag (ADR-38): Höhe „fill“ streckt das Widget auf die Höhe der Abschnittszeile, wenn Plätze
|
||||
* nebeneinander stehen. Gestapelt (schmaler Abschnitt) entspricht das der Inhaltshöhe. Inhalte werden nie begrenzt.
|
||||
*/
|
||||
.section-slot:has(> .widget-height-fill) {
|
||||
align-self: stretch;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.section-slot > .widget-height-fill {
|
||||
flex: 1 1 auto;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.widget-height-fill > .cta {
|
||||
flex: 1 1 auto;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: flex-start;
|
||||
}
|
||||
|
||||
.widget > :last-child,
|
||||
@@ -19,406 +45,11 @@ .widget-heading h2 {
|
||||
max-width: 22ch;
|
||||
}
|
||||
|
||||
/* ------------------------------------------------------------------------------------------------
|
||||
* Einstieg (Hero)
|
||||
* Varianten: standard (Text | Bild), highlight (Markenfläche), stage (Markenbühne), editorial (textbetont).
|
||||
* ---------------------------------------------------------------------------------------------- */
|
||||
.hero {
|
||||
--hero-focus: 50% 50%;
|
||||
position: relative;
|
||||
display: grid;
|
||||
gap: var(--space-6);
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.hero-copy > :is(h1, h2) {
|
||||
font-size: clamp(2.125rem, 1.2rem + 4.4cqi, 4rem);
|
||||
line-height: 1.05;
|
||||
letter-spacing: -0.025em;
|
||||
max-width: 15ch;
|
||||
margin: 0;
|
||||
text-wrap: balance;
|
||||
}
|
||||
|
||||
/* Markenstrich unter der Überschrift: kurze gelbe Unterstreichung, kein Hervorheben einzelner Wörter. */
|
||||
.hero-mark {
|
||||
width: clamp(5.5rem, 4rem + 6cqi, 9rem);
|
||||
height: 0.9rem;
|
||||
margin: var(--space-3) 0 var(--space-5);
|
||||
}
|
||||
|
||||
.hero .lede {
|
||||
max-width: 48ch;
|
||||
margin: 0;
|
||||
font-size: clamp(1.125rem, 1rem + 0.6cqi, 1.3125rem);
|
||||
}
|
||||
|
||||
.hero-actions {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: var(--space-3);
|
||||
margin-top: var(--space-6);
|
||||
}
|
||||
|
||||
.hero-copy {
|
||||
position: relative;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.hero-figure {
|
||||
position: relative;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.hero-image {
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
object-position: var(--hero-focus);
|
||||
}
|
||||
|
||||
.hero-figure .hero-image {
|
||||
aspect-ratio: 4 / 3;
|
||||
border-radius: var(--radius-panel);
|
||||
}
|
||||
|
||||
.hero-rays {
|
||||
position: absolute;
|
||||
width: clamp(2.75rem, 2rem + 3cqi, 4.5rem);
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
/* Standard: Bild mit grüner Fläche als Versatz und Signalstrahlen an der Ecke. */
|
||||
.hero-standard .hero-figure::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
inset: 1.25rem -1.25rem -1.25rem 1.25rem;
|
||||
z-index: -1;
|
||||
border-radius: var(--radius-panel);
|
||||
background: var(--lf-green-tint);
|
||||
}
|
||||
|
||||
.hero-standard .hero-rays {
|
||||
top: -2.25rem;
|
||||
left: -1.75rem;
|
||||
transform: rotate(-18deg);
|
||||
}
|
||||
|
||||
@container slot (min-width: 48rem) {
|
||||
.hero-standard.hero-with-image {
|
||||
grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
|
||||
gap: clamp(2.5rem, 6cqi, 5rem);
|
||||
}
|
||||
}
|
||||
|
||||
/* Hervorgehoben: dunkle Markenfläche mit gelben Akzenten. */
|
||||
.hero-highlight {
|
||||
padding: clamp(1.75rem, 6cqi, 4rem);
|
||||
border-radius: var(--radius-panel);
|
||||
background: var(--lf-navy);
|
||||
--color-text: #f4f6f8;
|
||||
--color-heading: var(--lf-white);
|
||||
--color-link: var(--lf-white);
|
||||
--color-link-hover: var(--lf-yellow);
|
||||
--color-focus: var(--lf-yellow);
|
||||
--color-border-strong: rgb(255 255 255 / 60%);
|
||||
--color-action-secondary-text: var(--lf-white);
|
||||
color: var(--color-text);
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.hero-highlight .hero-rays {
|
||||
top: clamp(1rem, 3cqi, 2rem);
|
||||
right: clamp(1rem, 4cqi, 2.5rem);
|
||||
}
|
||||
|
||||
.hero-highlight .hero-figure .hero-image {
|
||||
aspect-ratio: 16 / 10;
|
||||
}
|
||||
|
||||
@container slot (min-width: 48rem) {
|
||||
.hero-highlight.hero-with-image {
|
||||
grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
|
||||
gap: clamp(2rem, 5cqi, 4rem);
|
||||
}
|
||||
}
|
||||
|
||||
/* Editorial: großer Text, Beschreibung und Schaltflächen nebeneinander, Bild als breites Band darunter. */
|
||||
.hero-editorial {
|
||||
gap: var(--space-7);
|
||||
}
|
||||
|
||||
.hero-editorial .hero-copy > :is(h1, h2) {
|
||||
font-size: clamp(2.375rem, 1.2rem + 5.6cqi, 5rem);
|
||||
max-width: 18ch;
|
||||
}
|
||||
|
||||
.hero-editorial .hero-figure .hero-image {
|
||||
aspect-ratio: 16 / 9;
|
||||
}
|
||||
|
||||
/* Abgesetzter Markenstrich: liest sich als Abschluss der Überschrift, nicht als Hervorhebung eines Wortes. */
|
||||
.hero-editorial .hero-mark {
|
||||
width: clamp(9rem, 32cqi, 20rem);
|
||||
margin-top: var(--space-5);
|
||||
}
|
||||
|
||||
@container slot (min-width: 56rem) {
|
||||
.hero-editorial .hero-copy {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
|
||||
column-gap: clamp(2rem, 6cqi, 5rem);
|
||||
align-items: end;
|
||||
}
|
||||
|
||||
.hero-editorial .hero-copy > :is(h1, h2),
|
||||
.hero-editorial .hero-mark {
|
||||
grid-column: 1 / -1;
|
||||
}
|
||||
|
||||
.hero-editorial .hero-actions {
|
||||
margin-top: 0;
|
||||
justify-content: flex-end;
|
||||
}
|
||||
|
||||
.hero-editorial .hero-figure .hero-image {
|
||||
aspect-ratio: 21 / 9;
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Markenbühne: Bild über die volle Breite, Text auf einer hellen Tafel (Kontrast unabhängig vom Motiv).
|
||||
* Schmal: Bild oben im festen Format, Tafel überlappt den unteren Bildrand. Breit (ab 56rem): Bild füllt die Bühne,
|
||||
* die Tafel steht im Grundraster links oder rechts. Feste Formate verhindern Layoutverschiebungen beim Laden.
|
||||
*/
|
||||
.hero-stage {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.hero-stage .hero-media {
|
||||
position: relative;
|
||||
aspect-ratio: 4 / 3;
|
||||
overflow: hidden;
|
||||
background: var(--lf-green-tint);
|
||||
}
|
||||
|
||||
.hero-stage .hero-frame {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
padding-inline: var(--gutter);
|
||||
}
|
||||
|
||||
.hero-stage.hero-with-image .hero-frame {
|
||||
margin-top: -3.5rem;
|
||||
}
|
||||
|
||||
.hero-stage .hero-copy {
|
||||
--color-text: var(--lf-ink);
|
||||
--color-heading: var(--lf-navy);
|
||||
--color-link: var(--lf-navy);
|
||||
--color-focus: var(--lf-focus);
|
||||
--color-border-strong: var(--lf-navy);
|
||||
--color-action-secondary-text: var(--lf-navy);
|
||||
color: var(--color-text);
|
||||
background: var(--lf-cream);
|
||||
border-radius: var(--radius-panel);
|
||||
padding: clamp(1.5rem, 1rem + 3cqi, 3rem);
|
||||
box-shadow: 0 18px 40px rgb(3 37 81 / 12%);
|
||||
}
|
||||
|
||||
.hero-stage .hero-rays {
|
||||
top: -1.6rem;
|
||||
right: 1.5rem;
|
||||
}
|
||||
|
||||
/* Ohne Bild: Markenbühne als ruhige Fläche. */
|
||||
.hero-stage:not(.hero-with-image) .hero-copy {
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
@container slot (min-width: 56rem) {
|
||||
.hero-stage.hero-with-image {
|
||||
display: grid;
|
||||
min-height: clamp(30rem, 72svh, 46rem);
|
||||
}
|
||||
|
||||
.hero-stage .hero-media {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
aspect-ratio: auto;
|
||||
}
|
||||
|
||||
.hero-stage.hero-with-image .hero-frame {
|
||||
display: grid;
|
||||
align-items: center;
|
||||
justify-items: end;
|
||||
margin-top: 0;
|
||||
padding-block: clamp(3rem, 6cqi, 5.5rem);
|
||||
padding-inline: var(--frame-inset);
|
||||
}
|
||||
|
||||
.hero-stage.hero-text-left .hero-frame {
|
||||
justify-items: start;
|
||||
}
|
||||
|
||||
.hero-stage .hero-copy {
|
||||
width: min(36rem, 46%);
|
||||
}
|
||||
|
||||
.hero-stage .hero-rays {
|
||||
top: -2.25rem;
|
||||
right: auto;
|
||||
left: -2rem;
|
||||
transform: rotate(-18deg);
|
||||
}
|
||||
}
|
||||
|
||||
/* Randlos (SectionRenderer: section-bleed): keine Begrenzung, Abstand nach unten bleibt für die Tafel. */
|
||||
.section-bleed {
|
||||
padding-block: 0;
|
||||
}
|
||||
|
||||
.section-bleed .page-section-inner {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
/* Schmal: Abstand unter der Tafel bis zum nächsten Abschnitt. */
|
||||
@container slot (max-width: 55.99rem) {
|
||||
.section-bleed .hero-stage .hero-frame {
|
||||
padding-bottom: clamp(2rem, 8cqi, 3.5rem);
|
||||
}
|
||||
}
|
||||
|
||||
/* Nicht randlos (Markenbühne in schmaleren Abschnitten oder Rastern): Bild mit runden Ecken. */
|
||||
.page-section:not(.section-bleed) .hero-stage .hero-media {
|
||||
border-radius: var(--radius-panel);
|
||||
}
|
||||
|
||||
.page-section:not(.section-bleed) .hero-stage .hero-frame {
|
||||
padding-inline: clamp(0.75rem, 4cqi, 2.5rem);
|
||||
}
|
||||
|
||||
/* Fließtext */
|
||||
.widget-prose .prose p {
|
||||
margin: 0 0 var(--space-4);
|
||||
}
|
||||
|
||||
/* ------------------------------------------------------------------------------------------------
|
||||
* Bild und Text. Varianten: image_left, image_right. Stufen: schmal (gestapelt), ab 36rem nebeneinander,
|
||||
* ab 56rem Bild betont. Formate über Einstellung: Quer-, Hochformat, Quadrat, Original.
|
||||
* ---------------------------------------------------------------------------------------------- */
|
||||
.image-text {
|
||||
--image-focus: 50% 50%;
|
||||
--image-ratio: 4 / 3;
|
||||
display: grid;
|
||||
gap: var(--space-6);
|
||||
}
|
||||
|
||||
.image-format-portrait {
|
||||
--image-ratio: 4 / 5;
|
||||
}
|
||||
|
||||
.image-format-square {
|
||||
--image-ratio: 1 / 1;
|
||||
}
|
||||
|
||||
.image-text-figure {
|
||||
position: relative;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* Versetzte Markenfläche hinter dem Bild, auf der Außenseite des Textes. */
|
||||
.image-text-figure::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
inset: 0.6rem -0.6rem -0.6rem 0.6rem;
|
||||
z-index: -1;
|
||||
border-radius: var(--radius-panel);
|
||||
background: var(--lf-yellow-tint);
|
||||
}
|
||||
|
||||
@container slot (min-width: 36rem) {
|
||||
.image-text-figure::before {
|
||||
inset: 1rem 1rem -1rem -1rem;
|
||||
}
|
||||
|
||||
.image-text-right .image-text-figure::before {
|
||||
inset: 1rem -1rem -1rem 1rem;
|
||||
}
|
||||
}
|
||||
|
||||
.scope-dark .image-text-figure::before,
|
||||
.scope-accent .image-text-figure::before {
|
||||
background: rgb(255 255 255 / 12%);
|
||||
}
|
||||
|
||||
.image-text-figure img {
|
||||
display: block;
|
||||
width: 100%;
|
||||
aspect-ratio: var(--image-ratio);
|
||||
object-fit: cover;
|
||||
object-position: var(--image-focus);
|
||||
border-radius: var(--radius-panel);
|
||||
}
|
||||
|
||||
.image-format-original .image-text-figure img {
|
||||
aspect-ratio: auto;
|
||||
}
|
||||
|
||||
.image-text-copy > :first-child {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.image-text-copy h1,
|
||||
.image-text-copy h2 {
|
||||
font-size: clamp(1.75rem, 1.2rem + 2.4cqi, 2.75rem);
|
||||
line-height: 1.1;
|
||||
max-width: 20ch;
|
||||
margin: 0;
|
||||
text-wrap: balance;
|
||||
}
|
||||
|
||||
.image-text-mark {
|
||||
width: 5rem;
|
||||
height: 0.75rem;
|
||||
margin: var(--space-3) 0 var(--space-5);
|
||||
}
|
||||
|
||||
.image-text-copy .prose {
|
||||
font-size: clamp(1.0625rem, 1rem + 0.25cqi, 1.1875rem);
|
||||
}
|
||||
|
||||
@container slot (min-width: 36rem) {
|
||||
.image-text {
|
||||
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
|
||||
align-items: center;
|
||||
gap: clamp(2rem, 5cqi, 4rem);
|
||||
}
|
||||
|
||||
.image-text-right > .image-text-figure {
|
||||
order: 2;
|
||||
}
|
||||
|
||||
.image-text-no-image {
|
||||
grid-template-columns: minmax(0, 1fr);
|
||||
}
|
||||
}
|
||||
|
||||
@container slot (min-width: 56rem) {
|
||||
.image-text-left {
|
||||
grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
|
||||
}
|
||||
|
||||
.image-text-right {
|
||||
grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
|
||||
}
|
||||
|
||||
.image-text-no-image {
|
||||
grid-template-columns: minmax(0, 1fr);
|
||||
}
|
||||
}
|
||||
|
||||
/* ------------------------------------------------------------------------------------------------
|
||||
* Redaktionelle Karten. Varianten: Raster (cards-grid), kompakte Liste (cards-compact),
|
||||
* erste Karte hervorgehoben (cards-featured). Die ganze Karte ist über den Titellink klickbar.
|
||||
|
||||
Reference in new issue
Block a user