Richte Karten im Abschnitt an der größten Karte aus und setze Kartenlinks an den unteren Rand
CI Feature / test (push) Successful in 8m2s
Deploy Test / test (push) Successful in 8m1s
Deploy Test / deploy (push) Successful in 51s

Zwei Gestaltungswerte am Abschnitt (Höhe der Karten, Link in der Karte), gespeichert nur bei Abweichung
von der Vorgabe. Karten nebeneinander füllen die Zeilenhöhe (CSS); ein kleines Skript gleicht Zeilen
untereinander an. Links im Fließtext bleiben unberührt (ADR-66).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
LarsandClaude Sonnet 5.5 committed 2026-11-29 17:33:27 +01:00
1 parent 33310463fd
commit 62f3a33541
16 files changed
+475 -2

No files matched your search

+95
View File
@@ -34,6 +34,101 @@ .widget-height-fill > .cta {
align-items: flex-start;
}
/*
* Karten im Abschnitt (ADR-66). Zwei Einstellungen des Abschnitts, beide nur bei Abweichung von der Vorgabe als Klasse:
* - .section-cards-equal: alle Karten so hoch wie die größte. Hier: Karten nebeneinander (in einer Kartenliste und auf
* verschiedenen Plätzen) füllen die Höhe der Zeile. Die Zeilen untereinander gleicht resources/js/card-heights.js an.
* - .section-cards-links-bottom: der Link einer Karte („Mehr erfahren“, Schaltfläche) steht am unteren Rand der Karte. Das
* braucht gleich hohe Karten in der Zeile und schließt sie deshalb ein. Links im Fließtext (inText) sind nicht betroffen.
* Kartenwidgets: Karten, Programm-/Modulkarten (Katalog), Themen-, Medien-, Programmkarte (Premium-Karte).
*/
:is(.section-cards-equal, .section-cards-links-bottom) .section-slot:has(> :is(.widget-cards, .widget-catalog-cards, .widget-premium-card, .widget-media-card, .widget-program-card, .widget-topic-card)) {
align-self: stretch;
display: flex;
flex-direction: column;
}
:is(.section-cards-equal, .section-cards-links-bottom) .section-slot > :is(.widget-cards, .widget-catalog-cards, .widget-premium-card, .widget-media-card, .widget-program-card, .widget-topic-card) {
flex: 1 1 auto;
display: flex;
flex-direction: column;
}
:is(.section-cards-equal, .section-cards-links-bottom) .widget-cards > .cards,
:is(.section-cards-equal, .section-cards-links-bottom) .widget-catalog-cards > .catalog-cards {
flex: 1 1 auto;
}
:is(.section-cards-equal, .section-cards-links-bottom) .widget-catalog-cards > .catalog-cards {
display: flex;
flex-direction: column;
}
:is(.section-cards-equal, .section-cards-links-bottom) .catalog-cards > .catalog-list {
flex: 1 1 auto;
}
:is(.section-cards-equal, .section-cards-links-bottom) :is(.widget-premium-card, .widget-media-card, .widget-program-card, .widget-topic-card) > .lf-pc {
flex: 1 1 auto;
}
/* Nur gleich hoch, Link nicht unten: Die Aktion der Premium-Karte folgt dem Text statt dem unteren Rand. */
.section-cards-equal:not(.section-cards-links-bottom) .lf-pc__footer {
margin-block-start: 0;
}
/*
* Link unten, redaktionelle Karten: Der Kartentext wird zur Spalte, deren letzter Eintrag, der Link, nach unten rückt. Das
* Symbol (sonst über justify-self im Raster ausgerichtet) behält seine Lage über align-self. Die kompakte Liste hat Zeilen
* statt Karten und bleibt, wie sie ist.
*/
.section-cards-links-bottom .cards:not(.cards-compact) .card-body {
flex: 1 1 auto;
display: flex;
flex-direction: column;
gap: var(--space-2);
}
.section-cards-links-bottom .cards:not(.cards-compact) .lf-card__symbol {
align-self: flex-start;
}
.section-cards-links-bottom .cards--center:not(.cards-compact) .lf-card__symbol {
align-self: center;
}
.section-cards-links-bottom .cards--right:not(.cards-compact) .lf-card__symbol {
align-self: flex-end;
}
.section-cards-links-bottom .cards:not(.cards-compact) .card-row {
flex: 1 1 auto;
align-items: stretch;
}
.section-cards-links-bottom .cards:not(.cards-compact) .card-row > .lf-card__symbol {
align-self: flex-start;
}
.section-cards-links-bottom .cards--symbol-v-center:not(.cards-compact) .card-row > .lf-card__symbol {
align-self: center;
}
.section-cards-links-bottom .cards--symbol-v-bottom:not(.cards-compact) .card-row > .lf-card__symbol {
align-self: flex-end;
}
.section-cards-links-bottom .cards:not(.cards-compact) .card-main {
display: flex;
flex-direction: column;
gap: var(--space-2);
}
.section-cards-links-bottom .cards:not(.cards-compact) :is(.card-body, .card-main) > .card-more {
margin-block-start: auto;
padding-block-start: var(--space-1);
}
.widget > :last-child,
.widget .prose > :last-child {
margin-bottom: 0;