Redaktionskarten Widget #19
No files matched your search
@@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
namespace App\Domain\Cms\Widgets\Types;
|
namespace App\Domain\Cms\Widgets\Types;
|
||||||
|
|
||||||
|
use App\Domain\Catalog\FormattedText;
|
||||||
use App\Domain\Cms\Widgets\RenderContext;
|
use App\Domain\Cms\Widgets\RenderContext;
|
||||||
use App\Domain\Cms\Widgets\Support\HeadingAccent;
|
use App\Domain\Cms\Widgets\Support\HeadingAccent;
|
||||||
use App\Domain\Cms\Widgets\Support\ImageRefFields;
|
use App\Domain\Cms\Widgets\Support\ImageRefFields;
|
||||||
@@ -11,20 +12,69 @@
|
|||||||
use App\Domain\Cms\Widgets\Support\WebsiteImage;
|
use App\Domain\Cms\Widgets\Support\WebsiteImage;
|
||||||
use App\Domain\Cms\Widgets\WidgetErrors;
|
use App\Domain\Cms\Widgets\WidgetErrors;
|
||||||
use App\Domain\Cms\Widgets\WidgetType;
|
use App\Domain\Cms\Widgets\WidgetType;
|
||||||
|
use App\Filament\Support\RichField;
|
||||||
use App\Filament\Support\SymbolField;
|
use App\Filament\Support\SymbolField;
|
||||||
use Filament\Forms\Components\Repeater;
|
use Filament\Forms\Components\Repeater;
|
||||||
use Filament\Forms\Components\Textarea;
|
|
||||||
use Filament\Forms\Components\TextInput;
|
use Filament\Forms\Components\TextInput;
|
||||||
use Illuminate\Validation\Rule;
|
use Illuminate\Validation\Rule;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Redaktionelle Karten. Die Einträge sind freie redaktionelle Verweise, keine Produkte oder Lizenzartikel.
|
* Redaktionelle Karten. Die Einträge sind freie redaktionelle Verweise, keine Produkte oder Lizenzartikel.
|
||||||
*
|
*
|
||||||
* Version 1 umfasst den Bestand (Titel, Text, Adresse). Das optionale Bild je Karte ist eine
|
* Version 1 (Bestand): Titel, Klartext, Adresse; Bild und Symbol je Karte sind abwärtskompatible Ergänzungen derselben
|
||||||
* abwärtskompatible Ergänzung derselben Version: ältere Karten haben schlicht kein Bild.
|
* Version. Version 2: Die Beschreibung ist formatierter Text (HTML, Webprofil von FormattedText wie im Fließtext). Neu je
|
||||||
|
* Karte ist die optionale Dachzeile über dem Titel (sie wird nur gespeichert, wenn sie ausgefüllt ist).
|
||||||
*/
|
*/
|
||||||
class CardsWidget extends WidgetType
|
class CardsWidget extends WidgetType
|
||||||
{
|
{
|
||||||
|
/** Größtes zulässiges Maß des gespeicherten HTML einer Beschreibung. */
|
||||||
|
public const TEXT_MAX_LENGTH = 5000;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Verteilung der Karten auf die Breite: die Karten wachsen und füllen jede Zeile (Vorgabe) oder behalten ihre Breite,
|
||||||
|
* und die Abstände wachsen. In beiden Fällen sind alle Spalten gleich breit.
|
||||||
|
*
|
||||||
|
* @var array<string, string>
|
||||||
|
*/
|
||||||
|
public const DISTRIBUTION = ['grow' => 'Karten vergrößern sich', 'space' => 'Abstände gleichen aus'];
|
||||||
|
|
||||||
|
/** @var array<string, string> */
|
||||||
|
public const DIVIDER = ['line' => 'Feiner Strich zwischen den Karten'];
|
||||||
|
|
||||||
|
private const DEFAULT_LINK_LABEL = 'Mehr erfahren';
|
||||||
|
|
||||||
|
/** @var array<string, string> */
|
||||||
|
public const HOVER = ['lift' => 'Karte unter der Maus hervorheben'];
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gültige Layout-Einstellungen mit Vorgaben; alles andere fällt auf die Vorgabe zurück (Karten wachsen, Symbol über
|
||||||
|
* dem Text, oben, ohne Strich, ohne Pinselstrich, ohne Hervorhebung).
|
||||||
|
*
|
||||||
|
* @param array<string, mixed> $settings
|
||||||
|
* @return array{align: string, size: string, position: string, valign: string, distribution: string, divider: bool, brush: bool, hover: bool, link: ?string}
|
||||||
|
*/
|
||||||
|
public static function layout(array $settings): array
|
||||||
|
{
|
||||||
|
$position = $settings['symbol_position'] ?? null;
|
||||||
|
$distribution = $settings['distribution'] ?? null;
|
||||||
|
|
||||||
|
return HeadingAccent::block($settings) + [
|
||||||
|
'position' => is_string($position) && array_key_exists($position, FeaturesWidget::SYMBOL_POSITION) ? $position : 'top',
|
||||||
|
'valign' => HeadingAccent::align($settings),
|
||||||
|
'distribution' => is_string($distribution) && array_key_exists($distribution, self::DISTRIBUTION) ? $distribution : 'grow',
|
||||||
|
'divider' => ($settings['divider'] ?? null) === 'line',
|
||||||
|
'brush' => HeadingAccent::hasBrush($settings),
|
||||||
|
'hover' => ($settings['hover'] ?? null) === 'lift',
|
||||||
|
// Sichtbarer Link unter dem Text (Textlink oder Pille); ohne Einstellung ist der Titel der Link der Karte.
|
||||||
|
'link' => in_array($settings['link_style'] ?? null, array_keys(HeadingAccent::LINK_STYLE), true) ? $settings['link_style'] : null,
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
||||||
|
public function version(): int
|
||||||
|
{
|
||||||
|
return 2;
|
||||||
|
}
|
||||||
|
|
||||||
public function key(): string
|
public function key(): string
|
||||||
{
|
{
|
||||||
return 'cards';
|
return 'cards';
|
||||||
@@ -37,7 +87,7 @@ public function label(): string
|
|||||||
|
|
||||||
public function description(): string
|
public function description(): string
|
||||||
{
|
{
|
||||||
return 'Mehrere Karten mit Titel, Text, Linkziel und optionalem Bild. Als Raster, kompakte Liste oder mit hervorgehobener erster Karte.';
|
return 'Mehrere Karten mit Dachzeile, Titel, formatiertem Text, Symbol, Linkziel und optionalem Bild. Als Raster, kompakte Liste oder mit hervorgehobener erster Karte.';
|
||||||
}
|
}
|
||||||
|
|
||||||
public function supportedUnits(): array
|
public function supportedUnits(): array
|
||||||
@@ -47,7 +97,7 @@ public function supportedUnits(): array
|
|||||||
|
|
||||||
public function narrowBehavior(): string
|
public function narrowBehavior(): string
|
||||||
{
|
{
|
||||||
return 'Karten stehen untereinander, sobald keine zwei 15 rem breiten Karten nebeneinander passen; die hervorgehobene Karte stapelt Bild und Text.';
|
return 'Die Karten sind mindestens 15 rem breit (mit Symbol neben dem Text 18 rem) und verteilen sich ausgewogen auf Zeilen (zehn Karten als 4, 3 und 3); passen keine zwei Karten nebeneinander, stehen sie untereinander. Bei „Abstände gleichen aus“ behalten sie ihre Breite (höchstens 20 rem). Die hervorgehobene Karte stapelt Bild und Text.';
|
||||||
}
|
}
|
||||||
|
|
||||||
public function preferredUnits(): int
|
public function preferredUnits(): int
|
||||||
@@ -59,7 +109,7 @@ public function stages(): array
|
|||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
'narrow' => 'eine Karte je Zeile',
|
'narrow' => 'eine Karte je Zeile',
|
||||||
'wide' => 'so viele Karten nebeneinander, wie bei mindestens 15rem Kartenbreite passen; hervorgehobene Karte ab 44rem mit Bild neben dem Text',
|
'wide' => 'so viele Karten nebeneinander, wie bei mindestens 15rem Kartenbreite passen, ausgewogen auf die Zeilen verteilt; hervorgehobene Karte ab 44rem mit Bild neben dem Text',
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -86,9 +136,11 @@ public function dataRules(): array
|
|||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
'items' => ['required', 'array', 'min:1', 'max:12'],
|
'items' => ['required', 'array', 'min:1', 'max:12'],
|
||||||
|
'items.*.eyebrow' => ['nullable', 'string', 'max:80'],
|
||||||
'items.*.title' => ['required', 'string', 'max:120'],
|
'items.*.title' => ['required', 'string', 'max:120'],
|
||||||
'items.*.text' => ['nullable', 'string', 'max:500'],
|
'items.*.text' => ['nullable', 'string', 'max:'.self::TEXT_MAX_LENGTH],
|
||||||
'items.*.url' => ['nullable', 'string', 'max:500'],
|
'items.*.url' => ['nullable', 'string', 'max:500'],
|
||||||
|
'items.*.link_label' => ['nullable', 'string', 'max:60'],
|
||||||
'items.*.symbol' => ['nullable', 'string', Rule::in(array_keys(HeadingAccent::symbols()))],
|
'items.*.symbol' => ['nullable', 'string', Rule::in(array_keys(HeadingAccent::symbols()))],
|
||||||
'items.*.image' => ['nullable'],
|
'items.*.image' => ['nullable'],
|
||||||
'items.*._upload' => ['nullable'],
|
'items.*._upload' => ['nullable'],
|
||||||
@@ -98,21 +150,40 @@ public function dataRules(): array
|
|||||||
public function settings(): array
|
public function settings(): array
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
'symbol_size' => HeadingAccent::STEPS,
|
'distribution' => self::DISTRIBUTION,
|
||||||
'align' => HeadingAccent::TEXT_ALIGN,
|
'align' => HeadingAccent::TEXT_ALIGN,
|
||||||
|
'symbol_size' => HeadingAccent::STEPS,
|
||||||
|
'symbol_position' => FeaturesWidget::SYMBOL_POSITION,
|
||||||
|
'symbol_align' => HeadingAccent::ALIGN,
|
||||||
|
'accent' => HeadingAccent::BRUSH,
|
||||||
|
'divider' => self::DIVIDER,
|
||||||
|
'hover' => self::HOVER,
|
||||||
|
'link_style' => HeadingAccent::LINK_STYLE,
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
public function settingGroups(): array
|
public function settingGroups(): array
|
||||||
{
|
{
|
||||||
return ['Aussehen' => ['symbol_size', 'align']];
|
return [
|
||||||
|
'Verteilung' => ['distribution', 'align'],
|
||||||
|
'Symbol' => ['symbol_size', 'symbol_position', 'symbol_align'],
|
||||||
|
'Gestaltung' => ['accent', 'divider', 'hover'],
|
||||||
|
'Link' => ['link_style'],
|
||||||
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
public function settingLabels(): array
|
public function settingLabels(): array
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
|
'distribution' => ['Verteilung der Karten', 'Wie die Karten den verfügbaren Platz füllen. Die Zeilen sind in beiden Fällen ausgewogen (fünf Karten stehen als drei und zwei, zehn als vier, drei und drei) und jede Karte ist mindestens 15 rem breit (mit Symbol neben dem Text 18 rem); wird das unterschritten, wandert eine Karte in die nächste Zeile. „Karten vergrößern sich“ (Vorgabe): Jede Zeile wird ganz ausgefüllt. „Abstände gleichen aus“: Die Karten behalten eine feste Breite (höchstens 20 rem), und der übrige Platz verteilt sich gleichmäßig zwischen und neben den Karten. Möglich sind eine bis zwölf Karten.'],
|
||||||
|
'align' => ['Ausrichtung', 'Richtet Symbol, Dachzeile, Titel, Pinselstrich und Text jeder Karte aus. Vorgabe: linksbündig.'],
|
||||||
'symbol_size' => ['Größe der Symbole', 'Kantenlänge der Symbole auf den Karten, die eins haben: Klein 2,5 rem, Mittel 3,5 rem, Groß 5 rem, Sehr groß 7 rem. Vorgabe: Mittel.'],
|
'symbol_size' => ['Größe der Symbole', 'Kantenlänge der Symbole auf den Karten, die eins haben: Klein 2,5 rem, Mittel 3,5 rem, Groß 5 rem, Sehr groß 7 rem. Vorgabe: Mittel.'],
|
||||||
'align' => ['Ausrichtung', 'Richtet Symbol, Titel und Text jeder Karte aus. Vorgabe: linksbündig.'],
|
'symbol_position' => ['Lage des Symbols', 'Über dem Text (Vorgabe) oder links bzw. rechts neben Dachzeile, Titel und Text jeder Karte. Neben dem Text braucht jede Karte mindestens 18 rem Breite, sonst stehen die Karten untereinander. Vorgabe: über dem Text.'],
|
||||||
|
'symbol_align' => ['Senkrechte Lage des Symbols', 'Wo das Symbol neben dem Text sitzt: oben (Vorgabe), mittig oder unten. Wirkt nur, wenn das Symbol links oder rechts neben dem Text steht.'],
|
||||||
|
'accent' => ['Pinselstrich', 'Gelbe Unterstreichung unter dem Titel jeder Karte (freigegebenes Motiv aus dem Brand-Kit). Vorgabe: ohne.'],
|
||||||
|
'divider' => ['Trennstrich', 'Ein feiner Strich zwischen den Karten: senkrecht zwischen Spalten, waagerecht zwischen Zeilen. Die Karten verlieren dabei ihre Fläche und stehen flach auf dem Abschnitt, wie in der Merkmalszeile. In der kompakten Liste wirkt die Einstellung nicht, sie hat schon Linien. Vorgabe: ohne.'],
|
||||||
|
'link_style' => ['Link unter dem Text', 'Zeigt unter dem Text jeder Karte mit Linkziel einen sichtbaren Link: als kleiner Textlink oder als Pille (Schaltfläche). Die ganze Karte bleibt anklickbar, der Titel ist dann kein eigener Link. Der Linktext steht je Karte (leer: „'.self::DEFAULT_LINK_LABEL.'“). Vorgabe: kein sichtbarer Link, die Karte öffnet sich über den Titel.'],
|
||||||
|
'hover' => ['Hervorhebung unter der Maus', 'Die Karte, über der die Maus steht (oder die per Tastatur erreicht wird), hebt sich leicht ab. Ohne Bewegung, wenn das Betriebssystem reduzierte Bewegung wünscht. Vorgabe: ohne.'],
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -124,12 +195,22 @@ public function dataFields(): array
|
|||||||
Repeater::make('items')
|
Repeater::make('items')
|
||||||
->label('Karten')
|
->label('Karten')
|
||||||
->schema([
|
->schema([
|
||||||
|
TextInput::make('eyebrow')
|
||||||
|
->label('Dachzeile (optional)')
|
||||||
|
->maxLength(80)
|
||||||
|
->helperText('Kurzer Hinweis über dem Titel, zum Beispiel ein Themenbereich. Kein Pflichtfeld.'),
|
||||||
TextInput::make('title')->label('Titel')->required()->maxLength(120),
|
TextInput::make('title')->label('Titel')->required()->maxLength(120),
|
||||||
SymbolField::make('symbol', 'Symbol (optional)')
|
SymbolField::make('symbol', 'Symbol (optional)')
|
||||||
->helperText('Kleine Grafik aus dem Brand-Kit über dem Titel. Größe und Ausrichtung im Reiter „Darstellung“.'),
|
->helperText('Kleine Grafik aus dem Brand-Kit. Größe, Lage und senkrechte Ausrichtung im Reiter „Darstellung“.'),
|
||||||
Textarea::make('text')->label('Beschreibung')->rows(2)->maxLength(500),
|
RichField::make('text', 'Beschreibung', website: true)
|
||||||
|
->helperText('Wie beim Fließtext: Absätze und Zeilenumbrüche (Umschalt + Eingabe), fett, kursiv, Links, Listen, Schriftgröße, Schriftfarbe und Ausrichtung. Die Karten bleiben auch auf dunklen und grünen Abschnitten hell; die Farben entsprechen dort denen auf hellen Flächen.'),
|
||||||
LinkField::make('url')
|
LinkField::make('url')
|
||||||
->helperText('Seitenpfad wie /praevention, Sprungmarke wie #kurse oder eine http(s)-Adresse; oder über das Linksymbol wählen. Leer lassen für eine Karte ohne Link.'),
|
->helperText('Seitenpfad wie /praevention, Sprungmarke wie #kurse oder eine http(s)-Adresse; oder über das Linksymbol wählen. Leer lassen für eine Karte ohne Link.'),
|
||||||
|
TextInput::make('link_label')
|
||||||
|
->label('Linktext (optional)')
|
||||||
|
->maxLength(60)
|
||||||
|
->placeholder(self::DEFAULT_LINK_LABEL)
|
||||||
|
->helperText('Nur sichtbar, wenn im Reiter „Darstellung“ ein Link unter dem Text gewählt ist, und nur mit Linkziel. Leer: „'.self::DEFAULT_LINK_LABEL.'“.'),
|
||||||
$image,
|
$image,
|
||||||
$upload,
|
$upload,
|
||||||
$status,
|
$status,
|
||||||
@@ -144,6 +225,36 @@ public function dataFields(): array
|
|||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function upgrade(array $widget, int $from): array
|
||||||
|
{
|
||||||
|
if ($from === 1) {
|
||||||
|
foreach ($widget['data']['items'] ?? [] as $index => $item) {
|
||||||
|
if (is_array($item) && filled($item['text'] ?? null)) {
|
||||||
|
$widget['data']['items'][$index]['text'] = self::plainToHtml((string) $item['text']);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return $widget;
|
||||||
|
}
|
||||||
|
|
||||||
|
return parent::upgrade($widget, $from);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Klartext der Version 1 als formatierter Text: Leerzeilen trennen Absätze, ein einfacher Zeilenumbruch bleibt ein
|
||||||
|
* Zeilenumbruch (so wie in der Überschrift mit Einleitung).
|
||||||
|
*/
|
||||||
|
public static function plainToHtml(string $text): string
|
||||||
|
{
|
||||||
|
$paragraphs = preg_split('/\R\s*\R/u', trim($text)) ?: [];
|
||||||
|
$html = implode('', array_map(
|
||||||
|
fn (string $paragraph): string => trim($paragraph) === '' ? '' : '<p>'.preg_replace('/\R/u', '<br>', e(trim($paragraph))).'</p>',
|
||||||
|
$paragraphs,
|
||||||
|
));
|
||||||
|
|
||||||
|
return FormattedText::canonicalHtml($html, true);
|
||||||
|
}
|
||||||
|
|
||||||
public function clean(array $data, array $refs, WidgetErrors $errors): array
|
public function clean(array $data, array $refs, WidgetErrors $errors): array
|
||||||
{
|
{
|
||||||
foreach ($data['items'] as $index => $item) {
|
foreach ($data['items'] as $index => $item) {
|
||||||
@@ -153,11 +264,17 @@ public function clean(array $data, array $refs, WidgetErrors $errors): array
|
|||||||
|
|
||||||
$itemRefs = ImageRefFields::clean(['image' => $item['image'] ?? null, '_upload' => $item['_upload'] ?? null], $errors, errorKey: "data.items.$index.image");
|
$itemRefs = ImageRefFields::clean(['image' => $item['image'] ?? null, '_upload' => $item['_upload'] ?? null], $errors, errorKey: "data.items.$index.image");
|
||||||
|
|
||||||
// Der Schlüssel symbol wird nur gespeichert, wenn ein Symbol gewählt ist: Karten ohne Symbol bleiben byteweise wie zuvor.
|
$text = FormattedText::canonical(is_string($item['text'] ?? null) ? $item['text'] : '', true);
|
||||||
|
|
||||||
|
// Die Schlüssel eyebrow und symbol werden nur gespeichert, wenn sie ausgefüllt sind: Karten ohne sie bleiben
|
||||||
|
// byteweise wie zuvor.
|
||||||
$data['items'][$index] = [
|
$data['items'][$index] = [
|
||||||
|
...(filled($item['eyebrow'] ?? null) ? ['eyebrow' => trim((string) $item['eyebrow'])] : []),
|
||||||
'title' => $item['title'],
|
'title' => $item['title'],
|
||||||
'text' => filled($item['text'] ?? null) ? $item['text'] : null,
|
'text' => $text !== '' ? $text : null,
|
||||||
'url' => filled($item['url'] ?? null) ? $item['url'] : null,
|
'url' => filled($item['url'] ?? null) ? $item['url'] : null,
|
||||||
|
// Ein Linktext ohne Linkziel wird verworfen; ohne Linktext bleibt der Schlüssel weg (Karten bleiben wie zuvor).
|
||||||
|
...(filled($item['url'] ?? null) && filled($item['link_label'] ?? null) ? ['link_label' => trim((string) $item['link_label'])] : []),
|
||||||
...(filled($item['symbol'] ?? null) ? ['symbol' => $item['symbol']] : []),
|
...(filled($item['symbol'] ?? null) ? ['symbol' => $item['symbol']] : []),
|
||||||
'image' => $itemRefs['image'],
|
'image' => $itemRefs['image'],
|
||||||
];
|
];
|
||||||
@@ -178,9 +295,11 @@ public function resolve(array $widget, RenderContext $context): array
|
|||||||
}
|
}
|
||||||
|
|
||||||
$items[] = [
|
$items[] = [
|
||||||
|
'eyebrow' => filled($item['eyebrow'] ?? null) ? $item['eyebrow'] : null,
|
||||||
'title' => $item['title'],
|
'title' => $item['title'],
|
||||||
'text' => $item['text'] ?? null,
|
'textHtml' => filled($item['text'] ?? null) ? ProseWidget::render($item['text']) : '',
|
||||||
'url' => SafeUrl::isSafe($item['url'] ?? null) ? $item['url'] : null,
|
'url' => SafeUrl::isSafe($item['url'] ?? null) ? $item['url'] : null,
|
||||||
|
'linkLabel' => filled($item['link_label'] ?? null) ? $item['link_label'] : self::DEFAULT_LINK_LABEL,
|
||||||
'symbol' => HeadingAccent::symbol(['symbol' => $item['symbol'] ?? null]),
|
'symbol' => HeadingAccent::symbol(['symbol' => $item['symbol'] ?? null]),
|
||||||
'imageUrl' => $images->url($item['image'] ?? null, $context->preview),
|
'imageUrl' => $images->url($item['image'] ?? null, $context->preview),
|
||||||
];
|
];
|
||||||
@@ -192,7 +311,7 @@ public function resolve(array $widget, RenderContext $context): array
|
|||||||
|
|
||||||
return [
|
return [
|
||||||
'items' => $items,
|
'items' => $items,
|
||||||
'layout' => HeadingAccent::block($widget['settings'] ?? []),
|
'layout' => self::layout($widget['settings'] ?? []),
|
||||||
'imageNotice' => $notices === [] ? null : implode(' ', $notices),
|
'imageNotice' => $notices === [] ? null : implode(' ', $notices),
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -856,3 +856,16 @@ ## ADR-57 – Shopliste für viele Produkte: Auswahl, Reihenfolge, Listenansicht
|
|||||||
**Grenzen.** Die Kacheln werden bei jedem Aufruf aus den Fachdaten gebildet (kein Zwischenspeicher). Für die erwartete Zahl von Produkten (Dutzende bis wenige Hundert) genügt das; bei deutlich mehr wird ein Zwischenspeicher nötig. Pakete haben keine Materialart und kein Thema und erscheinen daher bei diesen Auswahlen nicht.
|
**Grenzen.** Die Kacheln werden bei jedem Aufruf aus den Fachdaten gebildet (kein Zwischenspeicher). Für die erwartete Zahl von Produkten (Dutzende bis wenige Hundert) genügt das; bei deutlich mehr wird ein Zwischenspeicher nötig. Pakete haben keine Materialart und kein Thema und erscheinen daher bei diesen Auswahlen nicht.
|
||||||
**Folgen.** Kein Schema, keine Migration. Die bisherige Suche der Shopseite bleibt (Feld „Shop durchsuchen“).
|
**Folgen.** Kein Schema, keine Migration. Die bisherige Suche der Shopseite bleibt (Feld „Shop durchsuchen“).
|
||||||
**Quelle.** Anfrage von Lars vom 26.11.2026; ADR-54, ADR-55.
|
**Quelle.** Anfrage von Lars vom 26.11.2026; ADR-54, ADR-55.
|
||||||
|
|
||||||
|
## ADR-58 – Redaktionelle Karten: formatierter Text, Dachzeile, Verteilung, Symbollage und Gestaltung
|
||||||
|
|
||||||
|
**Status am 27.11.2026:** Umgesetzt auf `feature/redaktionelle-karten`; Abnahme siehe `docs/ux/verwaltung/abnahme/redaktionelle-karten.md`.
|
||||||
|
**Kontext.** Das Widget „Redaktionelle Karten“ hatte Klartext, nur ein Symbol über dem Titel und ließ im Raster Platz ungenutzt (`auto-fill`: bei drei Karten in vier möglichen Spalten blieb rechts eine leere Spalte).
|
||||||
|
**Entscheidung (Auftrag von Lars, 27.11.2026).**
|
||||||
|
- **Version 2:** Die Beschreibung ist formatierter Text wie im Fließtext (ADR-50, Webprofil). Version 1 wird beim Lesen angehoben (Absätze an Leerzeilen, Zeilenumbrüche als `<br>`, alles maskiert).
|
||||||
|
- **Neu je Karte:** Dachzeile über dem Titel (nur gespeichert, wenn ausgefüllt).
|
||||||
|
- **Neue Einstellungen** (Aufzählungswerte, ADR-30): Verteilung (Karten vergrößern sich | Abstände gleichen aus), Lage des Symbols (über, links, rechts; wie in der Merkmalszeile) mit senkrechter Lage (oben, Mitte, unten), Pinselstrich unter dem Titel, Trennstrich, Hervorhebung unter der Maus und ein sichtbarer Link unter dem Text (Textlink oder Pille, Linktext je Karte). Zusammengefasst in „Verteilung“, „Symbol“, „Gestaltung“ und „Link“ im Reiter „Darstellung“.
|
||||||
|
- **Ausgewogene Zeilen (Nachtrag, 27.11.2026).** Raster und hervorgehobene Variante umbrechen wie Text (Flex); jede Karte hat eine Mindestbreite (15 rem, mit Symbol neben dem Text 18 rem), darunter wandert sie in die nächste Zeile. Die Zahl der Karten je Zeile ergibt sich aus der Zahl der Karten und der Breite des Platzes (Zeilen = aufrunden(n / m), die Zeilen unterscheiden sich um höchstens eine Karte; fünf Karten als 3 + 2, zehn als 4 + 3 + 3). Weil CSS dafür keine Rechnung mit Längen kennt, steht eine erzeugte Tabelle in `lf-karten-verteilung.css` (Generator `scripts/cards-balance-css.py`, ein Test prüft sie). Eine Zeile mit nur einer Karte ist möglich, wenn der Platz nur zwei Spalten erlaubt (drei Karten: 2 + 1). „Abstände gleichen aus“ lässt die Karten ihre Breite behalten (höchstens 20 rem) und verteilt den Rest mit `space-evenly`; mit Trennstrich bleiben die Karten gleich breite Spalten und nur ihr Inhalt wird begrenzt, damit die Striche in der Mitte der Lücke liegen.
|
||||||
|
- **Vorgabe geändert:** Bestehende Seiten verteilen ihre Karten jetzt so (vorher `auto-fill`: bei weniger Karten als Spalten blieb Platz leer, fünf Karten standen als vier und eine). Gewollt, Teil des Auftrags.
|
||||||
|
**Folgen.** Keine Migration. **Rückfall:** Setzt man nach dem ersten Speichern einer Karte mit Version 2 nur den Code zurück, zeigt der alte Stand die Tags der Beschreibung als Text (Version 2 ist ihm unbekannt), und die neuen Einstellungen und die Dachzeile fehlen; die Daten bleiben erhalten. Ein Fehler im Symbolfeld (Karte duplizieren warf einen Skriptfehler, weil die Vorlage noch nicht bereitstand) ist mitbehoben.
|
||||||
|
**Quelle.** Anfrage von Lars vom 27.11.2026; ADR-30, ADR-50, ADR-52.
|
||||||
@@ -75,7 +75,7 @@ ## 4. Registrierte Widget-Arten
|
|||||||
| `heading` | Überschrift und Einleitung | 2 | `standard` | 1–4 | – | – |
|
| `heading` | Überschrift und Einleitung | 2 | `standard` | 1–4 | – | – |
|
||||||
| `prose` | Fließtext (formatierter Text, Editor der Dokumente) | 2 | `standard` | 1–4 | – | – |
|
| `prose` | Fließtext (formatierter Text, Editor der Dokumente) | 2 | `standard` | 1–4 | – | – |
|
||||||
| `image_text` | Bild und Text, Premium nach Kit v1.6 | 3 | `image_left`, `image_right` (Bildseite) | 1–4 | `compact` (Kompakt), `normal` (Standard, Vorgabe), `spacious` (Großzügig) | `refs.image`, optional `refs.video` |
|
| `image_text` | Bild und Text, Premium nach Kit v1.6 | 3 | `image_left`, `image_right` (Bildseite) | 1–4 | `compact` (Kompakt), `normal` (Standard, Vorgabe), `spacious` (Großzügig) | `refs.image`, optional `refs.video` |
|
||||||
| `cards` | Redaktionelle Karten | 1 | `standard` (Raster), `compact` (Liste), `featured` (erste Karte hervorgehoben) | 1–4 | – | Bild je Karte in `data.items[].image` |
|
| `cards` | Redaktionelle Karten | 2 | `standard` (Raster), `compact` (Liste), `featured` (erste Karte hervorgehoben) | 1–4 | – | Bild je Karte in `data.items[].image` |
|
||||||
| `features` | Merkmalszeile (1–12 Merkmale mit Symbol, Kurztitel, Satz, optionalem Link) | 1 | `standard` | 1–4 | – | – |
|
| `features` | Merkmalszeile (1–12 Merkmale mit Symbol, Kurztitel, Satz, optionalem Link) | 1 | `standard` | 1–4 | – | – |
|
||||||
| `catalog_cards` | Programm- und Modulkarten | 1 | `standard`, `compact` | 1–4 | – | `refs.items[] = {type: composition, id}` |
|
| `catalog_cards` | Programm- und Modulkarten | 1 | `standard`, `compact` | 1–4 | – | `refs.items[] = {type: composition, id}` |
|
||||||
| `topic_card` | Themenkarte, Premium-Karte nach Kit v1.7 | 1 | `adaptive`, `stacked` | 1–4 | `auto` (Vorgabe), `fill` | `refs.pillar`, `refs.image` |
|
| `topic_card` | Themenkarte, Premium-Karte nach Kit v1.7 | 1 | `adaptive`, `stacked` | 1–4 | `auto` (Vorgabe), `fill` | `refs.pillar`, `refs.image` |
|
||||||
@@ -108,6 +108,8 @@ ## 4. Registrierte Widget-Arten
|
|||||||
|
|
||||||
**Redaktionelle Karten.** `data.items[].symbol` (optional, nur Schlüssel aus `HeadingAccent::symbols()`; der Schlüssel wird nur gespeichert, wenn ein Symbol gewählt ist, Karten ohne Symbol bleiben unverändert). Einstellungen `settings.symbol_size` (dieselben vier Stufen, Vorgabe Mittel) und `settings.align` (`left` Vorgabe, `center`, `right`). Das Symbol steht über dem Titel in der Kartentextfläche; Klassen `cards--<ausrichtung>` und `cards--size-<stufe>` erscheinen nur bei Abweichung von der Vorgabe. Nicht vorgesehen: Themenkarte, Medienkarte, Programmkarte und Programm- und Modulkarten (Inhalt und Bild kommen aus Katalogobjekten, Medienkarten tragen den Material-Tag).
|
**Redaktionelle Karten.** `data.items[].symbol` (optional, nur Schlüssel aus `HeadingAccent::symbols()`; der Schlüssel wird nur gespeichert, wenn ein Symbol gewählt ist, Karten ohne Symbol bleiben unverändert). Einstellungen `settings.symbol_size` (dieselben vier Stufen, Vorgabe Mittel) und `settings.align` (`left` Vorgabe, `center`, `right`). Das Symbol steht über dem Titel in der Kartentextfläche; Klassen `cards--<ausrichtung>` und `cards--size-<stufe>` erscheinen nur bei Abweichung von der Vorgabe. Nicht vorgesehen: Themenkarte, Medienkarte, Programmkarte und Programm- und Modulkarten (Inhalt und Bild kommen aus Katalogobjekten, Medienkarten tragen den Material-Tag).
|
||||||
|
|
||||||
|
**Redaktionelle Karten, Version 2.** Je Karte `data.items[].eyebrow` (Dachzeile über dem Titel, höchstens 80 Zeichen, nur gespeichert, wenn ausgefüllt) und `data.items[].text` als formatierter Text (HTML, Webprofil von `FormattedText`, derselbe Editor wie im Fließtext: Absätze, Zeilenumbrüche, Auszeichnungen, Listen, Schriftgröße, -farbe, Ausrichtung; höchstens 5000 Zeichen). Version 1 (Klartext) wird beim Lesen angehoben (`CardsWidget::plainToHtml`: Leerzeile = Absatz, Zeilenumbruch = `<br>`). Neue Einstellungen (alle nur als Klasse an der Liste, wenn sie von der Vorgabe abweichen): `distribution` (`grow` Vorgabe: Karten vergrößern sich und füllen die Zeile; `space`: Karten behalten ihre Breite, höchstens 20 rem, der Platz verteilt sich als Abstand), `symbol_position` (`top` Vorgabe, `left`, `right`; neben dem Text mindestens 18 rem je Karte), `symbol_align` (`top` Vorgabe, `center`, `bottom`; wirkt nur neben dem Text), `accent` (`brush`: gelber Pinselstrich unter dem Titel jeder Karte), `divider` (`line`: feine Striche zwischen den Karten, die Karten stehen dann flach ohne Fläche; nicht in der kompakten Liste), `link_style` (`text` oder `pill`: sichtbarer Link unter dem Text; je Karte `data.items[].link_label`, höchstens 60 Zeichen, nur mit Linkziel gespeichert, leer: „Mehr erfahren“; der Titel ist dann kein eigener Link, der Link unter dem Text trägt den gestreckten Link über die Karte; ohne Einstellung bleibt der Titel der Link), `hover` (`lift`: Karte unter der Maus oder mit Fokus hebt sich leicht ab, ohne Bewegung bei reduzierter Bewegung). Raster und hervorgehobene Variante umbrechen wie Text (Flex) und verteilen die Karten ausgewogen: Zeilen = aufrunden(n / m) mit m = Zahl der Karten, die mit Mindestbreite (15 rem, mit Symbol neben dem Text 18 rem) nebeneinander passen; die Zeilen unterscheiden sich um höchstens eine Karte (fünf Karten: 3 + 2, zehn: 4 + 3 + 3). Die Zahl je Zeile steht als `--cards-c` je Karte in `resources/css/components/lf-karten-verteilung.css` (erzeugt mit `scripts/cards-balance-css.py`; die Zahl der Karten liest das Stylesheet per `:has(> .card:nth-child(n))` aus der Liste, bei der hervorgehobenen Variante ohne die erste Karte; ein Test prüft die Tabelle für 2 bis 12 Karten und alle Breiten). Möglich sind 1 bis 12 Karten. Die Karte ist auf dunklen und grünen Abschnitten weiterhin eine helle Fläche; Textfarben in der Beschreibung gelten dort wie auf hellen Flächen. Links in der Beschreibung liegen über dem gestreckten Titellink und bleiben anklickbar.
|
||||||
|
|
||||||
**Merkmalszeile.** `data.items[]` mit `symbol` (Auswahl wie oben), `title` (höchstens 60 Zeichen) und optional `text` (höchstens 200 Zeichen), `url` (über `SafeUrl`) und `link_label` (höchstens 60 Zeichen, Vorgabe „Mehr erfahren“, wird ohne `url` verworfen); ein bis zwölf Einträge, in jeder Platzbreite (1–4 Einheiten). Die Spaltenzahl ergibt sich aus der Anzahl der Einträge und der tatsächlichen Breite (Raster ab 12 rem je Merkmal), nicht aus einer eigenen Einstellung. `settings.link_style` bestimmt für alle Links des Widgets die Darstellung: `text` (kleiner Textlink, Vorgabe) oder `pill` (Pille). Weitere Einstellungen: `settings.align` (`left` Vorgabe, `center`, `right`; richtet Symbol, Titel, Satz und Link aus), `settings.symbol_size` (`small` 2,5 rem, `medium` 3,5 rem Vorgabe, `large` 5 rem, `xlarge` 7 rem) `settings.symbol_position` (`top` über dem Text, Vorgabe; `left` oder `right` neben Titel, Satz und Link; die Klasse `lf-features--symbol-<lage>` erscheint nur bei Abweichung, Titel, Satz und Link stehen dann in `lf-features__body`, das Symbol sitzt oben bündig mit dem Titel, Mindestbreite je Merkmal 18 rem statt 12 rem, darunter stehen die Merkmale untereinander) und `settings.divider` = `line` (feiner Strich in der Mitte der Lücke: senkrecht zwischen Spalten, waagerecht zwischen Zeilen und bei untereinander stehenden Merkmalen; die Liste schneidet die Striche am Rand ab). Ungültige gespeicherte Werte fallen auf die Vorgaben zurück (`FeaturesWidget::layout`). Der zugängliche Name des Links nennt das Merkmal („Mehr erfahren: Kurze Filme“).
|
**Merkmalszeile.** `data.items[]` mit `symbol` (Auswahl wie oben), `title` (höchstens 60 Zeichen) und optional `text` (höchstens 200 Zeichen), `url` (über `SafeUrl`) und `link_label` (höchstens 60 Zeichen, Vorgabe „Mehr erfahren“, wird ohne `url` verworfen); ein bis zwölf Einträge, in jeder Platzbreite (1–4 Einheiten). Die Spaltenzahl ergibt sich aus der Anzahl der Einträge und der tatsächlichen Breite (Raster ab 12 rem je Merkmal), nicht aus einer eigenen Einstellung. `settings.link_style` bestimmt für alle Links des Widgets die Darstellung: `text` (kleiner Textlink, Vorgabe) oder `pill` (Pille). Weitere Einstellungen: `settings.align` (`left` Vorgabe, `center`, `right`; richtet Symbol, Titel, Satz und Link aus), `settings.symbol_size` (`small` 2,5 rem, `medium` 3,5 rem Vorgabe, `large` 5 rem, `xlarge` 7 rem) `settings.symbol_position` (`top` über dem Text, Vorgabe; `left` oder `right` neben Titel, Satz und Link; die Klasse `lf-features--symbol-<lage>` erscheint nur bei Abweichung, Titel, Satz und Link stehen dann in `lf-features__body`, das Symbol sitzt oben bündig mit dem Titel, Mindestbreite je Merkmal 18 rem statt 12 rem, darunter stehen die Merkmale untereinander) und `settings.divider` = `line` (feiner Strich in der Mitte der Lücke: senkrecht zwischen Spalten, waagerecht zwischen Zeilen und bei untereinander stehenden Merkmalen; die Liste schneidet die Striche am Rand ab). Ungültige gespeicherte Werte fallen auf die Vorgaben zurück (`FeaturesWidget::layout`). Der zugängliche Name des Links nennt das Merkmal („Mehr erfahren: Kurze Filme“).
|
||||||
|
|
||||||
**Abweichungen vom Kit (bewusst):**
|
**Abweichungen vom Kit (bewusst):**
|
||||||
|
|||||||
@@ -0,0 +1,59 @@
|
|||||||
|
# Abnahme: Redaktionelle Karten, Version 2 (2026-11-27)
|
||||||
|
|
||||||
|
**Geprüft wurde lokal, nicht auf luf-test:** In einem Arbeitsverzeichnis mit eigenem Entwicklungsserver (Port 8811) und einer Kopie der lokalen Datenbank, mit Playwright im Widget-Dialog („Redaktionelle Karten konfigurieren“) und auf drei Probeseiten (helle, dunkle und grüne Fläche) mit zehn Karten-Widgets in allen Varianten und Einstellungen. Die Prüfung auf luf-test steht nach dem Deploy auf Test aus.
|
||||||
|
|
||||||
|
Geprüft:
|
||||||
|
- **Verteilung (ausgewogen).** Gemessen für 1 bis 12 Karten bei Platzbreiten von 390 bis 1400 px in den vier Anordnungen (Raster, Symbol neben dem Text, hervorgehoben, Abstände gleichen aus): in keinem Fall eine Abweichung von der Sollverteilung (die Zeilen unterscheiden sich um höchstens eine Karte; fünf Karten 3 + 2, sieben 4 + 3, zehn 4 + 3 + 3, zwölf 4 + 4 + 4), keine Karte schmaler als die Mindestbreite (15 rem, mit Symbol neben dem Text 18 rem), kein Seitenüberlauf durch die Karten (Bilder „verteilung-fuenf-karten“, „anzahl-zehn“, „schmal-anzahl-zehn“). „Karten vergrößern sich“ (Vorgabe): jede Zeile ist gefüllt (Bild „verteilung-karten-wachsen“). „Abstände gleichen aus“: die Karten behalten ihre Breite (höchstens 20 rem), der Rest verteilt sich, auch in der letzten Zeile (Bilder „verteilung-abstaende“, „anzahl-abstaende-sieben“). Die hervorgehobene Variante teilt die Zeile unter der ersten Karte ebenfalls ausgewogen auf (Bild „hervorgehoben“). Unter 31,75 rem Platzbreite steht eine Karte je Zeile; bei nur zwei möglichen Spalten kann die letzte Zeile eine Karte haben (drei Karten: 2 + 1). Bei 320 px Fensterbreite läuft die Seite waagerecht über; das liegt an der Kopfzeile der Website (auch auf Seiten ohne Karten), nicht an den Karten.
|
||||||
|
- **Symbol.** Lage über dem Text (Vorgabe), links und rechts; Größen Klein bis Sehr groß; senkrecht oben, Mitte, unten (Bilder „symbol-links-mitte-pinsel“, „symbol-rechts-unten“). Neben dem Text braucht eine Karte 18 rem; schmal steht das Symbol neben dem Text weiter, „Sehr groß“ eine Stufe kleiner (Bilder „schmal-symbol-links“, „schmal-symbol-rechts“).
|
||||||
|
- **Dachzeile** über dem Titel, nur bei Karten, die eine haben.
|
||||||
|
- **Beschreibung** im Editor des Fließtexts (25 Werkzeuge, darunter Schriftgröße, Farbe, Ausrichtung, Listen); Zeilenumbruch mit Umschalt + Eingabe wird auf der Seite dargestellt (Bild „editor-inhalt“). Gespeichert wird das bereinigte HTML (`<p>Zeile eins<br>Zeile zwei</p>`).
|
||||||
|
- **Pinselstrich** unter dem Titel jeder Karte, folgt der Ausrichtung (links, zentriert, rechts).
|
||||||
|
- **Trennstrich.** Feine Striche zwischen Spalten und Zeilen, die Karten stehen flach ohne Fläche (Bild „trennstrich-zentriert“). Auf dunkler Fläche (Bild „dunkel-trennstrich“) und grüner Fläche erhalten die Symbole die runde weiße Scheibe wie in der Merkmalszeile, die Textfarben folgen dem Abschnitt. In der kompakten Liste wirkt die Einstellung nicht.
|
||||||
|
- **Link unter dem Text** (Einstellung „Link unter dem Text“, Textlink oder Pille; Linktext je Karte, leer: „Mehr erfahren“). Der Titel ist dann kein eigener Link; der Link unter dem Text trägt den gestreckten Link über die ganze Karte (gemessen: ein Klick in den leeren Kartenbereich trifft den Link), mit zugänglichem Namen „Linktext: Titel“. Karten ohne Linkziel zeigen keinen Link, ein Linktext ohne Linkziel wird verworfen. Auf dunkler Fläche hat die Pille die gelbe Aktionsfarbe (Bilder „link-text“, „link-pille-links“, „link-pille-dunkel-linien“).
|
||||||
|
- **Hervorhebung unter der Maus.** Die Karte hebt sich um 4 px ab (gemessen: `translateY(-4px)`, Schatten; die gelbe Kante bleibt); mit Tastaturfokus in der Karte ebenso; bei reduzierter Bewegung bleibt die Karte stehen, der Schatten bleibt (Bild „hervorhebung-maus“).
|
||||||
|
- **Links in der Beschreibung** sind anklickbar (der Treffer am Link liefert den Link, nicht den gestreckten Titellink); ein leerer Bereich der Karte führt zum Titellink.
|
||||||
|
- **Textfarben** in der Beschreibung bleiben auf hellen Karten in dunklen und grünen Abschnitten die Farben der hellen Fläche (lesbar).
|
||||||
|
- **Dialog.** Hinzufügen, Duplizieren, Umsortieren, Ein- und Ausklappen von Karten mit je einem Editor je Karte, ohne Konsolenfehler. Dabei wurde ein Skriptfehler im Symbolfeld beim Duplizieren einer Karte mit Symbol gefunden und behoben. Alle neuen Einstellungen lassen sich wählen und werden gespeichert (Bild „editor-darstellung“): `distribution`, `symbol_position`, `symbol_align`, `accent`, `divider`, `hover`.
|
||||||
|
- **Bestand.** Ohne neue Einstellungen bleiben Klassen und Aufbau der Liste unverändert (Test); Karten ohne Dachzeile und ohne Symbol haben dasselbe Markup wie zuvor, nur die Beschreibung ist jetzt ein Block (`<div class="prose card-text">`) statt `<p>`. Version-1-Texte werden angehoben (Test).
|
||||||
|
|
||||||
|
Nicht geprüft: Screenreader, Touch, Browser außer Chromium, Karten mit Bild in den neuen Einstellungen (Bild links neben Text gibt es nicht; das Bild steht wie bisher oben), Seiten mit sehr vielen Karten (zwölf).
|
||||||
|
|
||||||
|
| Verteilung: Karten vergrößern sich | Verteilung: Abstände gleichen aus |
|
||||||
|
|---|---|
|
||||||
|
|  |  |
|
||||||
|
|
||||||
|
| Fünf Karten (3 + 2) | Fünf Karten bei 800 px | Zehn Karten (4 + 3 + 3) |
|
||||||
|
|---|---|---|
|
||||||
|
|  |  |  |
|
||||||
|
|
||||||
|
| Zehn Karten schmal | Sieben Karten, Abstände gleichen aus |
|
||||||
|
|---|---|
|
||||||
|
|  |  |
|
||||||
|
|
||||||
|
| Symbol links, Mitte, Pinselstrich | Symbol rechts, unten, rechtsbündig |
|
||||||
|
|---|---|
|
||||||
|
|  |  |
|
||||||
|
|
||||||
|
| Trennstrich, zentriert | Trennstrich auf dunkler Fläche |
|
||||||
|
|---|---|
|
||||||
|
|  |  |
|
||||||
|
|
||||||
|
| Erste Karte hervorgehoben | Hervorhebung unter der Maus |
|
||||||
|
|---|---|
|
||||||
|
|  |  |
|
||||||
|
|
||||||
|
| Schmal: Abstände | Schmal: Symbol links | Schmal: Symbol rechts | Schmal: Trennstrich |
|
||||||
|
|---|---|---|---|
|
||||||
|
|  |  |  |  |
|
||||||
|
|
||||||
|
| Link als Textlink | Link als Pille, Symbol links |
|
||||||
|
|---|---|
|
||||||
|
|  |  |
|
||||||
|
|
||||||
|
| Link als Pille, Trennstrich, dunkle Fläche |
|
||||||
|
|---|
|
||||||
|
|  |
|
||||||
|
|
||||||
|
| Dialog: Inhalt | Dialog: Darstellung |
|
||||||
|
|---|---|
|
||||||
|
|  |  |
|
||||||
|
After Width: | Height: | Size: 20 KiB |
|
After Width: | Height: | Size: 30 KiB |
|
After Width: | Height: | Size: 66 KiB |
|
After Width: | Height: | Size: 111 KiB |
|
After Width: | Height: | Size: 136 KiB |
|
After Width: | Height: | Size: 60 KiB |
|
After Width: | Height: | Size: 46 KiB |
|
After Width: | Height: | Size: 49 KiB |
|
After Width: | Height: | Size: 45 KiB |
|
After Width: | Height: | Size: 43 KiB |
|
After Width: | Height: | Size: 37 KiB |
|
After Width: | Height: | Size: 43 KiB |
|
After Width: | Height: | Size: 50 KiB |
|
After Width: | Height: | Size: 47 KiB |
|
After Width: | Height: | Size: 53 KiB |
|
After Width: | Height: | Size: 55 KiB |
|
After Width: | Height: | Size: 57 KiB |
|
After Width: | Height: | Size: 59 KiB |
|
After Width: | Height: | Size: 40 KiB |
|
After Width: | Height: | Size: 55 KiB |
|
After Width: | Height: | Size: 56 KiB |
|
After Width: | Height: | Size: 39 KiB |
@@ -12,6 +12,7 @@
|
|||||||
@import './site.css';
|
@import './site.css';
|
||||||
@import './sections.css';
|
@import './sections.css';
|
||||||
@import './widgets.css';
|
@import './widgets.css';
|
||||||
|
@import './components/lf-karten-verteilung.css';
|
||||||
/* Premium-Widgets nach Brand-UI-Kit v1.6; ersetzen das frühere Hero- und Bild-und-Text-CSS. */
|
/* Premium-Widgets nach Brand-UI-Kit v1.6; ersetzen das frühere Hero- und Bild-und-Text-CSS. */
|
||||||
@import './components/lf-hero.css';
|
@import './components/lf-hero.css';
|
||||||
@import './components/lf-bild-text.css';
|
@import './components/lf-bild-text.css';
|
||||||
|
|||||||
@@ -92,6 +92,8 @@ .lf-bt--navy .lf-heading-symbol,
|
|||||||
.lf-hero--editorial-solid .lf-heading-symbol,
|
.lf-hero--editorial-solid .lf-heading-symbol,
|
||||||
.scope-dark .lf-features__symbol,
|
.scope-dark .lf-features__symbol,
|
||||||
.scope-accent .lf-features__symbol,
|
.scope-accent .lf-features__symbol,
|
||||||
|
.scope-dark .cards:is(.cards--lines, .cards-compact) .lf-card__symbol,
|
||||||
|
.scope-accent .cards:is(.cards--lines, .cards-compact) .lf-card__symbol,
|
||||||
.scope-dark .lf-lead__symbol,
|
.scope-dark .lf-lead__symbol,
|
||||||
.scope-accent .lf-lead__symbol,
|
.scope-accent .lf-lead__symbol,
|
||||||
.lf-bt--navy .lf-lead__symbol,
|
.lf-bt--navy .lf-lead__symbol,
|
||||||
@@ -386,11 +388,52 @@ .cards--size-small .lf-card__symbol { --sym-s: var(--lf-symbol-small); }
|
|||||||
.cards--size-large .lf-card__symbol { --sym-s: var(--lf-symbol-large); }
|
.cards--size-large .lf-card__symbol { --sym-s: var(--lf-symbol-large); }
|
||||||
.cards--size-xlarge .lf-card__symbol { --sym-s: var(--lf-symbol-xlarge); }
|
.cards--size-xlarge .lf-card__symbol { --sym-s: var(--lf-symbol-xlarge); }
|
||||||
|
|
||||||
|
/* Karten ohne eigene Fläche (Trennstrich, kompakte Liste) auf dunklem Grund: runde weiße Scheibe wie in der Merkmalszeile. */
|
||||||
|
.scope-dark .cards:is(.cards--lines, .cards-compact) .lf-card__symbol,
|
||||||
|
.scope-accent .cards:is(.cards--lines, .cards-compact) .lf-card__symbol {
|
||||||
|
block-size: var(--sym-bh);
|
||||||
|
}
|
||||||
|
|
||||||
.cards--center .card-body { text-align: center; }
|
.cards--center .card-body { text-align: center; }
|
||||||
.cards--center .lf-card__symbol { justify-self: center; }
|
.cards--center .lf-card__symbol { justify-self: center; }
|
||||||
.cards--right .card-body { text-align: right; }
|
.cards--right .card-body { text-align: right; }
|
||||||
.cards--right .lf-card__symbol { justify-self: end; }
|
.cards--right .lf-card__symbol { justify-self: end; }
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Lage des Symbols (Einstellung „Lage des Symbols“): Vorgabe über dem Text. Links oder rechts steht das Symbol neben
|
||||||
|
* Dachzeile, Titel und Text (Klassen nur bei Abweichung; Karten ohne Symbol bleiben unverändert). Neben dem Text braucht
|
||||||
|
* eine Karte mehr Breite (18 rem Mindestbreite, siehe widgets.css und lf-karten-verteilung.css), sonst bliebe für große Symbole kaum Zeile übrig. Die senkrechte Lage (oben, mittig, unten)
|
||||||
|
* bezieht sich auf die Höhe des Texts.
|
||||||
|
*/
|
||||||
|
.card-row {
|
||||||
|
display: flex;
|
||||||
|
align-items: flex-start;
|
||||||
|
gap: var(--space-3);
|
||||||
|
}
|
||||||
|
|
||||||
|
.cards--symbol-right .card-row { flex-direction: row-reverse; }
|
||||||
|
|
||||||
|
.card-row > .lf-card__symbol {
|
||||||
|
flex: none;
|
||||||
|
align-self: flex-start;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card-main {
|
||||||
|
display: grid;
|
||||||
|
flex: 1 1 0;
|
||||||
|
gap: var(--space-2);
|
||||||
|
min-inline-size: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.cards--symbol-v-center .card-row > .lf-card__symbol { align-self: center; }
|
||||||
|
.cards--symbol-v-bottom .card-row > .lf-card__symbol { align-self: flex-end; }
|
||||||
|
|
||||||
|
/* Auf schmalen Plätzen steht „Sehr groß“ neben dem Text eine Stufe kleiner, damit für den Text genug Zeile bleibt. */
|
||||||
|
@container slot (max-width: 30rem) {
|
||||||
|
.cards--symbol-left.cards--size-xlarge .lf-card__symbol,
|
||||||
|
.cards--symbol-right.cards--size-xlarge .lf-card__symbol { --sym-s: var(--lf-symbol-large); }
|
||||||
|
}
|
||||||
|
|
||||||
@container slot (max-width: 24rem) {
|
@container slot (max-width: 24rem) {
|
||||||
.lf-lead,
|
.lf-lead,
|
||||||
.cta .lf-lead--bottom {
|
.cta .lf-lead--bottom {
|
||||||
|
|||||||
@@ -0,0 +1,683 @@
|
|||||||
|
/*
|
||||||
|
* Ausgewogene Verteilung der redaktionellen Karten (ERZEUGT mit scripts/cards-balance-css.py, nicht von Hand ändern).
|
||||||
|
* --cards-c ist je Karte die Zahl der Karten in ihrer Zeile, abhängig von der Zahl der Karten und der Breite des Platzes.
|
||||||
|
* Zeilen = aufrunden(n / m); die Zeilen unterscheiden sich um höchstens eine Karte (zehn Karten bei m = 4: 4 + 3 + 3).
|
||||||
|
* m = Karten, die mit Mindestbreite nebeneinander
|
||||||
|
* passen (15 rem, mit Symbol neben dem Text 18 rem). Bis zu zwölf Karten; bei der hervorgehobenen Variante zählt die
|
||||||
|
* erste Karte nicht mit.
|
||||||
|
*/
|
||||||
|
@container slot (min-width: 31.75rem) {
|
||||||
|
.cards:not(.cards-featured):has(> .card:nth-child(2)):not(:has(> .card:nth-child(3))) > .card:nth-child(n+1) { --cards-c: 2; }
|
||||||
|
.cards:not(.cards-featured):has(> .card:nth-child(2)):not(:has(> .card:nth-child(3))) > .card:nth-child(n+1) { --cards-c: 2; }
|
||||||
|
.cards:not(.cards-featured):has(> .card:nth-child(3)):not(:has(> .card:nth-child(4))) > .card:nth-child(n+1) { --cards-c: 2; }
|
||||||
|
.cards:not(.cards-featured):has(> .card:nth-child(3)):not(:has(> .card:nth-child(4))) > .card:nth-child(n+3) { --cards-c: 1; }
|
||||||
|
.cards:not(.cards-featured):has(> .card:nth-child(4)):not(:has(> .card:nth-child(5))) > .card:nth-child(n+1) { --cards-c: 2; }
|
||||||
|
.cards:not(.cards-featured):has(> .card:nth-child(4)):not(:has(> .card:nth-child(5))) > .card:nth-child(n+1) { --cards-c: 2; }
|
||||||
|
.cards:not(.cards-featured):has(> .card:nth-child(5)):not(:has(> .card:nth-child(6))) > .card:nth-child(n+1) { --cards-c: 2; }
|
||||||
|
.cards:not(.cards-featured):has(> .card:nth-child(5)):not(:has(> .card:nth-child(6))) > .card:nth-child(n+5) { --cards-c: 1; }
|
||||||
|
.cards:not(.cards-featured):has(> .card:nth-child(6)):not(:has(> .card:nth-child(7))) > .card:nth-child(n+1) { --cards-c: 2; }
|
||||||
|
.cards:not(.cards-featured):has(> .card:nth-child(6)):not(:has(> .card:nth-child(7))) > .card:nth-child(n+1) { --cards-c: 2; }
|
||||||
|
.cards:not(.cards-featured):has(> .card:nth-child(7)):not(:has(> .card:nth-child(8))) > .card:nth-child(n+1) { --cards-c: 2; }
|
||||||
|
.cards:not(.cards-featured):has(> .card:nth-child(7)):not(:has(> .card:nth-child(8))) > .card:nth-child(n+7) { --cards-c: 1; }
|
||||||
|
.cards:not(.cards-featured):has(> .card:nth-child(8)):not(:has(> .card:nth-child(9))) > .card:nth-child(n+1) { --cards-c: 2; }
|
||||||
|
.cards:not(.cards-featured):has(> .card:nth-child(8)):not(:has(> .card:nth-child(9))) > .card:nth-child(n+1) { --cards-c: 2; }
|
||||||
|
.cards:not(.cards-featured):has(> .card:nth-child(9)):not(:has(> .card:nth-child(10))) > .card:nth-child(n+1) { --cards-c: 2; }
|
||||||
|
.cards:not(.cards-featured):has(> .card:nth-child(9)):not(:has(> .card:nth-child(10))) > .card:nth-child(n+9) { --cards-c: 1; }
|
||||||
|
.cards:not(.cards-featured):has(> .card:nth-child(10)):not(:has(> .card:nth-child(11))) > .card:nth-child(n+1) { --cards-c: 2; }
|
||||||
|
.cards:not(.cards-featured):has(> .card:nth-child(10)):not(:has(> .card:nth-child(11))) > .card:nth-child(n+1) { --cards-c: 2; }
|
||||||
|
.cards:not(.cards-featured):has(> .card:nth-child(11)):not(:has(> .card:nth-child(12))) > .card:nth-child(n+1) { --cards-c: 2; }
|
||||||
|
.cards:not(.cards-featured):has(> .card:nth-child(11)):not(:has(> .card:nth-child(12))) > .card:nth-child(n+11) { --cards-c: 1; }
|
||||||
|
.cards:not(.cards-featured):has(> .card:nth-child(12)):not(:has(> .card:nth-child(13))) > .card:nth-child(n+1) { --cards-c: 2; }
|
||||||
|
.cards:not(.cards-featured):has(> .card:nth-child(12)):not(:has(> .card:nth-child(13))) > .card:nth-child(n+1) { --cards-c: 2; }
|
||||||
|
}
|
||||||
|
@container slot (min-width: 48.5rem) {
|
||||||
|
.cards:not(.cards-featured):has(> .card:nth-child(3)):not(:has(> .card:nth-child(4))) > .card:nth-child(n+1) { --cards-c: 3; }
|
||||||
|
.cards:not(.cards-featured):has(> .card:nth-child(3)):not(:has(> .card:nth-child(4))) > .card:nth-child(n+1) { --cards-c: 3; }
|
||||||
|
.cards:not(.cards-featured):has(> .card:nth-child(5)):not(:has(> .card:nth-child(6))) > .card:nth-child(n+1) { --cards-c: 3; }
|
||||||
|
.cards:not(.cards-featured):has(> .card:nth-child(5)):not(:has(> .card:nth-child(6))) > .card:nth-child(n+4) { --cards-c: 2; }
|
||||||
|
.cards:not(.cards-featured):has(> .card:nth-child(6)):not(:has(> .card:nth-child(7))) > .card:nth-child(n+1) { --cards-c: 3; }
|
||||||
|
.cards:not(.cards-featured):has(> .card:nth-child(6)):not(:has(> .card:nth-child(7))) > .card:nth-child(n+1) { --cards-c: 3; }
|
||||||
|
.cards:not(.cards-featured):has(> .card:nth-child(7)):not(:has(> .card:nth-child(8))) > .card:nth-child(n+1) { --cards-c: 3; }
|
||||||
|
.cards:not(.cards-featured):has(> .card:nth-child(7)):not(:has(> .card:nth-child(8))) > .card:nth-child(n+4) { --cards-c: 2; }
|
||||||
|
.cards:not(.cards-featured):has(> .card:nth-child(8)):not(:has(> .card:nth-child(9))) > .card:nth-child(n+1) { --cards-c: 3; }
|
||||||
|
.cards:not(.cards-featured):has(> .card:nth-child(8)):not(:has(> .card:nth-child(9))) > .card:nth-child(n+7) { --cards-c: 2; }
|
||||||
|
.cards:not(.cards-featured):has(> .card:nth-child(9)):not(:has(> .card:nth-child(10))) > .card:nth-child(n+1) { --cards-c: 3; }
|
||||||
|
.cards:not(.cards-featured):has(> .card:nth-child(9)):not(:has(> .card:nth-child(10))) > .card:nth-child(n+1) { --cards-c: 3; }
|
||||||
|
.cards:not(.cards-featured):has(> .card:nth-child(10)):not(:has(> .card:nth-child(11))) > .card:nth-child(n+1) { --cards-c: 3; }
|
||||||
|
.cards:not(.cards-featured):has(> .card:nth-child(10)):not(:has(> .card:nth-child(11))) > .card:nth-child(n+7) { --cards-c: 2; }
|
||||||
|
.cards:not(.cards-featured):has(> .card:nth-child(11)):not(:has(> .card:nth-child(12))) > .card:nth-child(n+1) { --cards-c: 3; }
|
||||||
|
.cards:not(.cards-featured):has(> .card:nth-child(11)):not(:has(> .card:nth-child(12))) > .card:nth-child(n+10) { --cards-c: 2; }
|
||||||
|
.cards:not(.cards-featured):has(> .card:nth-child(12)):not(:has(> .card:nth-child(13))) > .card:nth-child(n+1) { --cards-c: 3; }
|
||||||
|
.cards:not(.cards-featured):has(> .card:nth-child(12)):not(:has(> .card:nth-child(13))) > .card:nth-child(n+1) { --cards-c: 3; }
|
||||||
|
}
|
||||||
|
@container slot (min-width: 65.25rem) {
|
||||||
|
.cards:not(.cards-featured):has(> .card:nth-child(4)):not(:has(> .card:nth-child(5))) > .card:nth-child(n+1) { --cards-c: 4; }
|
||||||
|
.cards:not(.cards-featured):has(> .card:nth-child(4)):not(:has(> .card:nth-child(5))) > .card:nth-child(n+1) { --cards-c: 4; }
|
||||||
|
.cards:not(.cards-featured):has(> .card:nth-child(7)):not(:has(> .card:nth-child(8))) > .card:nth-child(n+1) { --cards-c: 4; }
|
||||||
|
.cards:not(.cards-featured):has(> .card:nth-child(7)):not(:has(> .card:nth-child(8))) > .card:nth-child(n+5) { --cards-c: 3; }
|
||||||
|
.cards:not(.cards-featured):has(> .card:nth-child(8)):not(:has(> .card:nth-child(9))) > .card:nth-child(n+1) { --cards-c: 4; }
|
||||||
|
.cards:not(.cards-featured):has(> .card:nth-child(8)):not(:has(> .card:nth-child(9))) > .card:nth-child(n+1) { --cards-c: 4; }
|
||||||
|
.cards:not(.cards-featured):has(> .card:nth-child(10)):not(:has(> .card:nth-child(11))) > .card:nth-child(n+1) { --cards-c: 4; }
|
||||||
|
.cards:not(.cards-featured):has(> .card:nth-child(10)):not(:has(> .card:nth-child(11))) > .card:nth-child(n+5) { --cards-c: 3; }
|
||||||
|
.cards:not(.cards-featured):has(> .card:nth-child(11)):not(:has(> .card:nth-child(12))) > .card:nth-child(n+1) { --cards-c: 4; }
|
||||||
|
.cards:not(.cards-featured):has(> .card:nth-child(11)):not(:has(> .card:nth-child(12))) > .card:nth-child(n+9) { --cards-c: 3; }
|
||||||
|
.cards:not(.cards-featured):has(> .card:nth-child(12)):not(:has(> .card:nth-child(13))) > .card:nth-child(n+1) { --cards-c: 4; }
|
||||||
|
.cards:not(.cards-featured):has(> .card:nth-child(12)):not(:has(> .card:nth-child(13))) > .card:nth-child(n+1) { --cards-c: 4; }
|
||||||
|
}
|
||||||
|
@container slot (min-width: 82rem) {
|
||||||
|
.cards:not(.cards-featured):has(> .card:nth-child(5)):not(:has(> .card:nth-child(6))) > .card:nth-child(n+1) { --cards-c: 5; }
|
||||||
|
.cards:not(.cards-featured):has(> .card:nth-child(5)):not(:has(> .card:nth-child(6))) > .card:nth-child(n+1) { --cards-c: 5; }
|
||||||
|
.cards:not(.cards-featured):has(> .card:nth-child(9)):not(:has(> .card:nth-child(10))) > .card:nth-child(n+1) { --cards-c: 5; }
|
||||||
|
.cards:not(.cards-featured):has(> .card:nth-child(9)):not(:has(> .card:nth-child(10))) > .card:nth-child(n+6) { --cards-c: 4; }
|
||||||
|
.cards:not(.cards-featured):has(> .card:nth-child(10)):not(:has(> .card:nth-child(11))) > .card:nth-child(n+1) { --cards-c: 5; }
|
||||||
|
.cards:not(.cards-featured):has(> .card:nth-child(10)):not(:has(> .card:nth-child(11))) > .card:nth-child(n+1) { --cards-c: 5; }
|
||||||
|
}
|
||||||
|
@container slot (min-width: 98.75rem) {
|
||||||
|
.cards:not(.cards-featured):has(> .card:nth-child(6)):not(:has(> .card:nth-child(7))) > .card:nth-child(n+1) { --cards-c: 6; }
|
||||||
|
.cards:not(.cards-featured):has(> .card:nth-child(6)):not(:has(> .card:nth-child(7))) > .card:nth-child(n+1) { --cards-c: 6; }
|
||||||
|
.cards:not(.cards-featured):has(> .card:nth-child(11)):not(:has(> .card:nth-child(12))) > .card:nth-child(n+1) { --cards-c: 6; }
|
||||||
|
.cards:not(.cards-featured):has(> .card:nth-child(11)):not(:has(> .card:nth-child(12))) > .card:nth-child(n+7) { --cards-c: 5; }
|
||||||
|
.cards:not(.cards-featured):has(> .card:nth-child(12)):not(:has(> .card:nth-child(13))) > .card:nth-child(n+1) { --cards-c: 6; }
|
||||||
|
.cards:not(.cards-featured):has(> .card:nth-child(12)):not(:has(> .card:nth-child(13))) > .card:nth-child(n+1) { --cards-c: 6; }
|
||||||
|
}
|
||||||
|
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(2)):not(:has(> .card:nth-child(3))) > .card:nth-child(n+1) { --cards-c: 1; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(2)):not(:has(> .card:nth-child(3))) > .card:nth-child(n+1) { --cards-c: 1; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(3)):not(:has(> .card:nth-child(4))) > .card:nth-child(n+1) { --cards-c: 1; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(3)):not(:has(> .card:nth-child(4))) > .card:nth-child(n+1) { --cards-c: 1; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(4)):not(:has(> .card:nth-child(5))) > .card:nth-child(n+1) { --cards-c: 1; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(4)):not(:has(> .card:nth-child(5))) > .card:nth-child(n+1) { --cards-c: 1; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(5)):not(:has(> .card:nth-child(6))) > .card:nth-child(n+1) { --cards-c: 1; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(5)):not(:has(> .card:nth-child(6))) > .card:nth-child(n+1) { --cards-c: 1; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(6)):not(:has(> .card:nth-child(7))) > .card:nth-child(n+1) { --cards-c: 1; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(6)):not(:has(> .card:nth-child(7))) > .card:nth-child(n+1) { --cards-c: 1; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(7)):not(:has(> .card:nth-child(8))) > .card:nth-child(n+1) { --cards-c: 1; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(7)):not(:has(> .card:nth-child(8))) > .card:nth-child(n+1) { --cards-c: 1; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(8)):not(:has(> .card:nth-child(9))) > .card:nth-child(n+1) { --cards-c: 1; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(8)):not(:has(> .card:nth-child(9))) > .card:nth-child(n+1) { --cards-c: 1; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(9)):not(:has(> .card:nth-child(10))) > .card:nth-child(n+1) { --cards-c: 1; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(9)):not(:has(> .card:nth-child(10))) > .card:nth-child(n+1) { --cards-c: 1; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(10)):not(:has(> .card:nth-child(11))) > .card:nth-child(n+1) { --cards-c: 1; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(10)):not(:has(> .card:nth-child(11))) > .card:nth-child(n+1) { --cards-c: 1; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(11)):not(:has(> .card:nth-child(12))) > .card:nth-child(n+1) { --cards-c: 1; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(11)):not(:has(> .card:nth-child(12))) > .card:nth-child(n+1) { --cards-c: 1; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(12)):not(:has(> .card:nth-child(13))) > .card:nth-child(n+1) { --cards-c: 1; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(12)):not(:has(> .card:nth-child(13))) > .card:nth-child(n+1) { --cards-c: 1; }
|
||||||
|
@container slot (min-width: 31.75rem) {
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(2)):not(:has(> .card:nth-child(3))) > .card:nth-child(n+1) { --cards-c: 1; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(2)):not(:has(> .card:nth-child(3))) > .card:nth-child(n+1) { --cards-c: 1; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(3)):not(:has(> .card:nth-child(4))) > .card:nth-child(n+1) { --cards-c: 1; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(3)):not(:has(> .card:nth-child(4))) > .card:nth-child(n+1) { --cards-c: 1; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(4)):not(:has(> .card:nth-child(5))) > .card:nth-child(n+1) { --cards-c: 1; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(4)):not(:has(> .card:nth-child(5))) > .card:nth-child(n+1) { --cards-c: 1; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(5)):not(:has(> .card:nth-child(6))) > .card:nth-child(n+1) { --cards-c: 1; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(5)):not(:has(> .card:nth-child(6))) > .card:nth-child(n+1) { --cards-c: 1; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(6)):not(:has(> .card:nth-child(7))) > .card:nth-child(n+1) { --cards-c: 1; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(6)):not(:has(> .card:nth-child(7))) > .card:nth-child(n+1) { --cards-c: 1; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(7)):not(:has(> .card:nth-child(8))) > .card:nth-child(n+1) { --cards-c: 1; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(7)):not(:has(> .card:nth-child(8))) > .card:nth-child(n+1) { --cards-c: 1; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(8)):not(:has(> .card:nth-child(9))) > .card:nth-child(n+1) { --cards-c: 1; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(8)):not(:has(> .card:nth-child(9))) > .card:nth-child(n+1) { --cards-c: 1; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(9)):not(:has(> .card:nth-child(10))) > .card:nth-child(n+1) { --cards-c: 1; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(9)):not(:has(> .card:nth-child(10))) > .card:nth-child(n+1) { --cards-c: 1; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(10)):not(:has(> .card:nth-child(11))) > .card:nth-child(n+1) { --cards-c: 1; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(10)):not(:has(> .card:nth-child(11))) > .card:nth-child(n+1) { --cards-c: 1; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(11)):not(:has(> .card:nth-child(12))) > .card:nth-child(n+1) { --cards-c: 1; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(11)):not(:has(> .card:nth-child(12))) > .card:nth-child(n+1) { --cards-c: 1; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(12)):not(:has(> .card:nth-child(13))) > .card:nth-child(n+1) { --cards-c: 1; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(12)):not(:has(> .card:nth-child(13))) > .card:nth-child(n+1) { --cards-c: 1; }
|
||||||
|
}
|
||||||
|
@container slot (min-width: 37.75rem) {
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(2)):not(:has(> .card:nth-child(3))) > .card:nth-child(n+1) { --cards-c: 2; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(2)):not(:has(> .card:nth-child(3))) > .card:nth-child(n+1) { --cards-c: 2; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(3)):not(:has(> .card:nth-child(4))) > .card:nth-child(n+1) { --cards-c: 2; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(3)):not(:has(> .card:nth-child(4))) > .card:nth-child(n+3) { --cards-c: 1; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(4)):not(:has(> .card:nth-child(5))) > .card:nth-child(n+1) { --cards-c: 2; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(4)):not(:has(> .card:nth-child(5))) > .card:nth-child(n+1) { --cards-c: 2; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(5)):not(:has(> .card:nth-child(6))) > .card:nth-child(n+1) { --cards-c: 2; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(5)):not(:has(> .card:nth-child(6))) > .card:nth-child(n+5) { --cards-c: 1; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(6)):not(:has(> .card:nth-child(7))) > .card:nth-child(n+1) { --cards-c: 2; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(6)):not(:has(> .card:nth-child(7))) > .card:nth-child(n+1) { --cards-c: 2; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(7)):not(:has(> .card:nth-child(8))) > .card:nth-child(n+1) { --cards-c: 2; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(7)):not(:has(> .card:nth-child(8))) > .card:nth-child(n+7) { --cards-c: 1; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(8)):not(:has(> .card:nth-child(9))) > .card:nth-child(n+1) { --cards-c: 2; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(8)):not(:has(> .card:nth-child(9))) > .card:nth-child(n+1) { --cards-c: 2; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(9)):not(:has(> .card:nth-child(10))) > .card:nth-child(n+1) { --cards-c: 2; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(9)):not(:has(> .card:nth-child(10))) > .card:nth-child(n+9) { --cards-c: 1; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(10)):not(:has(> .card:nth-child(11))) > .card:nth-child(n+1) { --cards-c: 2; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(10)):not(:has(> .card:nth-child(11))) > .card:nth-child(n+1) { --cards-c: 2; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(11)):not(:has(> .card:nth-child(12))) > .card:nth-child(n+1) { --cards-c: 2; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(11)):not(:has(> .card:nth-child(12))) > .card:nth-child(n+11) { --cards-c: 1; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(12)):not(:has(> .card:nth-child(13))) > .card:nth-child(n+1) { --cards-c: 2; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(12)):not(:has(> .card:nth-child(13))) > .card:nth-child(n+1) { --cards-c: 2; }
|
||||||
|
}
|
||||||
|
@container slot (min-width: 48.5rem) {
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(2)):not(:has(> .card:nth-child(3))) > .card:nth-child(n+1) { --cards-c: 2; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(2)):not(:has(> .card:nth-child(3))) > .card:nth-child(n+1) { --cards-c: 2; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(3)):not(:has(> .card:nth-child(4))) > .card:nth-child(n+1) { --cards-c: 2; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(3)):not(:has(> .card:nth-child(4))) > .card:nth-child(n+3) { --cards-c: 1; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(4)):not(:has(> .card:nth-child(5))) > .card:nth-child(n+1) { --cards-c: 2; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(4)):not(:has(> .card:nth-child(5))) > .card:nth-child(n+1) { --cards-c: 2; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(5)):not(:has(> .card:nth-child(6))) > .card:nth-child(n+1) { --cards-c: 2; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(5)):not(:has(> .card:nth-child(6))) > .card:nth-child(n+5) { --cards-c: 1; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(6)):not(:has(> .card:nth-child(7))) > .card:nth-child(n+1) { --cards-c: 2; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(6)):not(:has(> .card:nth-child(7))) > .card:nth-child(n+1) { --cards-c: 2; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(7)):not(:has(> .card:nth-child(8))) > .card:nth-child(n+1) { --cards-c: 2; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(7)):not(:has(> .card:nth-child(8))) > .card:nth-child(n+7) { --cards-c: 1; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(8)):not(:has(> .card:nth-child(9))) > .card:nth-child(n+1) { --cards-c: 2; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(8)):not(:has(> .card:nth-child(9))) > .card:nth-child(n+1) { --cards-c: 2; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(9)):not(:has(> .card:nth-child(10))) > .card:nth-child(n+1) { --cards-c: 2; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(9)):not(:has(> .card:nth-child(10))) > .card:nth-child(n+9) { --cards-c: 1; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(10)):not(:has(> .card:nth-child(11))) > .card:nth-child(n+1) { --cards-c: 2; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(10)):not(:has(> .card:nth-child(11))) > .card:nth-child(n+1) { --cards-c: 2; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(11)):not(:has(> .card:nth-child(12))) > .card:nth-child(n+1) { --cards-c: 2; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(11)):not(:has(> .card:nth-child(12))) > .card:nth-child(n+11) { --cards-c: 1; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(12)):not(:has(> .card:nth-child(13))) > .card:nth-child(n+1) { --cards-c: 2; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(12)):not(:has(> .card:nth-child(13))) > .card:nth-child(n+1) { --cards-c: 2; }
|
||||||
|
}
|
||||||
|
@container slot (min-width: 57.5rem) {
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(2)):not(:has(> .card:nth-child(3))) > .card:nth-child(n+1) { --cards-c: 2; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(2)):not(:has(> .card:nth-child(3))) > .card:nth-child(n+1) { --cards-c: 2; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(3)):not(:has(> .card:nth-child(4))) > .card:nth-child(n+1) { --cards-c: 3; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(3)):not(:has(> .card:nth-child(4))) > .card:nth-child(n+1) { --cards-c: 3; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(4)):not(:has(> .card:nth-child(5))) > .card:nth-child(n+1) { --cards-c: 2; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(4)):not(:has(> .card:nth-child(5))) > .card:nth-child(n+1) { --cards-c: 2; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(5)):not(:has(> .card:nth-child(6))) > .card:nth-child(n+1) { --cards-c: 3; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(5)):not(:has(> .card:nth-child(6))) > .card:nth-child(n+4) { --cards-c: 2; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(6)):not(:has(> .card:nth-child(7))) > .card:nth-child(n+1) { --cards-c: 3; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(6)):not(:has(> .card:nth-child(7))) > .card:nth-child(n+1) { --cards-c: 3; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(7)):not(:has(> .card:nth-child(8))) > .card:nth-child(n+1) { --cards-c: 3; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(7)):not(:has(> .card:nth-child(8))) > .card:nth-child(n+4) { --cards-c: 2; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(8)):not(:has(> .card:nth-child(9))) > .card:nth-child(n+1) { --cards-c: 3; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(8)):not(:has(> .card:nth-child(9))) > .card:nth-child(n+7) { --cards-c: 2; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(9)):not(:has(> .card:nth-child(10))) > .card:nth-child(n+1) { --cards-c: 3; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(9)):not(:has(> .card:nth-child(10))) > .card:nth-child(n+1) { --cards-c: 3; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(10)):not(:has(> .card:nth-child(11))) > .card:nth-child(n+1) { --cards-c: 3; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(10)):not(:has(> .card:nth-child(11))) > .card:nth-child(n+7) { --cards-c: 2; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(11)):not(:has(> .card:nth-child(12))) > .card:nth-child(n+1) { --cards-c: 3; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(11)):not(:has(> .card:nth-child(12))) > .card:nth-child(n+10) { --cards-c: 2; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(12)):not(:has(> .card:nth-child(13))) > .card:nth-child(n+1) { --cards-c: 3; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(12)):not(:has(> .card:nth-child(13))) > .card:nth-child(n+1) { --cards-c: 3; }
|
||||||
|
}
|
||||||
|
@container slot (min-width: 65.25rem) {
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(2)):not(:has(> .card:nth-child(3))) > .card:nth-child(n+1) { --cards-c: 2; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(2)):not(:has(> .card:nth-child(3))) > .card:nth-child(n+1) { --cards-c: 2; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(3)):not(:has(> .card:nth-child(4))) > .card:nth-child(n+1) { --cards-c: 3; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(3)):not(:has(> .card:nth-child(4))) > .card:nth-child(n+1) { --cards-c: 3; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(4)):not(:has(> .card:nth-child(5))) > .card:nth-child(n+1) { --cards-c: 2; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(4)):not(:has(> .card:nth-child(5))) > .card:nth-child(n+1) { --cards-c: 2; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(5)):not(:has(> .card:nth-child(6))) > .card:nth-child(n+1) { --cards-c: 3; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(5)):not(:has(> .card:nth-child(6))) > .card:nth-child(n+4) { --cards-c: 2; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(6)):not(:has(> .card:nth-child(7))) > .card:nth-child(n+1) { --cards-c: 3; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(6)):not(:has(> .card:nth-child(7))) > .card:nth-child(n+1) { --cards-c: 3; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(7)):not(:has(> .card:nth-child(8))) > .card:nth-child(n+1) { --cards-c: 3; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(7)):not(:has(> .card:nth-child(8))) > .card:nth-child(n+4) { --cards-c: 2; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(8)):not(:has(> .card:nth-child(9))) > .card:nth-child(n+1) { --cards-c: 3; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(8)):not(:has(> .card:nth-child(9))) > .card:nth-child(n+7) { --cards-c: 2; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(9)):not(:has(> .card:nth-child(10))) > .card:nth-child(n+1) { --cards-c: 3; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(9)):not(:has(> .card:nth-child(10))) > .card:nth-child(n+1) { --cards-c: 3; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(10)):not(:has(> .card:nth-child(11))) > .card:nth-child(n+1) { --cards-c: 3; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(10)):not(:has(> .card:nth-child(11))) > .card:nth-child(n+7) { --cards-c: 2; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(11)):not(:has(> .card:nth-child(12))) > .card:nth-child(n+1) { --cards-c: 3; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(11)):not(:has(> .card:nth-child(12))) > .card:nth-child(n+10) { --cards-c: 2; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(12)):not(:has(> .card:nth-child(13))) > .card:nth-child(n+1) { --cards-c: 3; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(12)):not(:has(> .card:nth-child(13))) > .card:nth-child(n+1) { --cards-c: 3; }
|
||||||
|
}
|
||||||
|
@container slot (min-width: 77.25rem) {
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(2)):not(:has(> .card:nth-child(3))) > .card:nth-child(n+1) { --cards-c: 2; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(2)):not(:has(> .card:nth-child(3))) > .card:nth-child(n+1) { --cards-c: 2; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(3)):not(:has(> .card:nth-child(4))) > .card:nth-child(n+1) { --cards-c: 3; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(3)):not(:has(> .card:nth-child(4))) > .card:nth-child(n+1) { --cards-c: 3; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(4)):not(:has(> .card:nth-child(5))) > .card:nth-child(n+1) { --cards-c: 4; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(4)):not(:has(> .card:nth-child(5))) > .card:nth-child(n+1) { --cards-c: 4; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(5)):not(:has(> .card:nth-child(6))) > .card:nth-child(n+1) { --cards-c: 3; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(5)):not(:has(> .card:nth-child(6))) > .card:nth-child(n+4) { --cards-c: 2; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(6)):not(:has(> .card:nth-child(7))) > .card:nth-child(n+1) { --cards-c: 3; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(6)):not(:has(> .card:nth-child(7))) > .card:nth-child(n+1) { --cards-c: 3; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(7)):not(:has(> .card:nth-child(8))) > .card:nth-child(n+1) { --cards-c: 4; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(7)):not(:has(> .card:nth-child(8))) > .card:nth-child(n+5) { --cards-c: 3; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(8)):not(:has(> .card:nth-child(9))) > .card:nth-child(n+1) { --cards-c: 4; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(8)):not(:has(> .card:nth-child(9))) > .card:nth-child(n+1) { --cards-c: 4; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(9)):not(:has(> .card:nth-child(10))) > .card:nth-child(n+1) { --cards-c: 3; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(9)):not(:has(> .card:nth-child(10))) > .card:nth-child(n+1) { --cards-c: 3; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(10)):not(:has(> .card:nth-child(11))) > .card:nth-child(n+1) { --cards-c: 4; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(10)):not(:has(> .card:nth-child(11))) > .card:nth-child(n+5) { --cards-c: 3; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(11)):not(:has(> .card:nth-child(12))) > .card:nth-child(n+1) { --cards-c: 4; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(11)):not(:has(> .card:nth-child(12))) > .card:nth-child(n+9) { --cards-c: 3; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(12)):not(:has(> .card:nth-child(13))) > .card:nth-child(n+1) { --cards-c: 4; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(12)):not(:has(> .card:nth-child(13))) > .card:nth-child(n+1) { --cards-c: 4; }
|
||||||
|
}
|
||||||
|
@container slot (min-width: 82rem) {
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(2)):not(:has(> .card:nth-child(3))) > .card:nth-child(n+1) { --cards-c: 2; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(2)):not(:has(> .card:nth-child(3))) > .card:nth-child(n+1) { --cards-c: 2; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(3)):not(:has(> .card:nth-child(4))) > .card:nth-child(n+1) { --cards-c: 3; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(3)):not(:has(> .card:nth-child(4))) > .card:nth-child(n+1) { --cards-c: 3; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(4)):not(:has(> .card:nth-child(5))) > .card:nth-child(n+1) { --cards-c: 4; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(4)):not(:has(> .card:nth-child(5))) > .card:nth-child(n+1) { --cards-c: 4; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(5)):not(:has(> .card:nth-child(6))) > .card:nth-child(n+1) { --cards-c: 3; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(5)):not(:has(> .card:nth-child(6))) > .card:nth-child(n+4) { --cards-c: 2; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(6)):not(:has(> .card:nth-child(7))) > .card:nth-child(n+1) { --cards-c: 3; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(6)):not(:has(> .card:nth-child(7))) > .card:nth-child(n+1) { --cards-c: 3; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(7)):not(:has(> .card:nth-child(8))) > .card:nth-child(n+1) { --cards-c: 4; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(7)):not(:has(> .card:nth-child(8))) > .card:nth-child(n+5) { --cards-c: 3; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(8)):not(:has(> .card:nth-child(9))) > .card:nth-child(n+1) { --cards-c: 4; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(8)):not(:has(> .card:nth-child(9))) > .card:nth-child(n+1) { --cards-c: 4; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(9)):not(:has(> .card:nth-child(10))) > .card:nth-child(n+1) { --cards-c: 3; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(9)):not(:has(> .card:nth-child(10))) > .card:nth-child(n+1) { --cards-c: 3; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(10)):not(:has(> .card:nth-child(11))) > .card:nth-child(n+1) { --cards-c: 4; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(10)):not(:has(> .card:nth-child(11))) > .card:nth-child(n+5) { --cards-c: 3; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(11)):not(:has(> .card:nth-child(12))) > .card:nth-child(n+1) { --cards-c: 4; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(11)):not(:has(> .card:nth-child(12))) > .card:nth-child(n+9) { --cards-c: 3; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(12)):not(:has(> .card:nth-child(13))) > .card:nth-child(n+1) { --cards-c: 4; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(12)):not(:has(> .card:nth-child(13))) > .card:nth-child(n+1) { --cards-c: 4; }
|
||||||
|
}
|
||||||
|
@container slot (min-width: 97rem) {
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(2)):not(:has(> .card:nth-child(3))) > .card:nth-child(n+1) { --cards-c: 2; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(2)):not(:has(> .card:nth-child(3))) > .card:nth-child(n+1) { --cards-c: 2; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(3)):not(:has(> .card:nth-child(4))) > .card:nth-child(n+1) { --cards-c: 3; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(3)):not(:has(> .card:nth-child(4))) > .card:nth-child(n+1) { --cards-c: 3; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(4)):not(:has(> .card:nth-child(5))) > .card:nth-child(n+1) { --cards-c: 4; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(4)):not(:has(> .card:nth-child(5))) > .card:nth-child(n+1) { --cards-c: 4; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(5)):not(:has(> .card:nth-child(6))) > .card:nth-child(n+1) { --cards-c: 5; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(5)):not(:has(> .card:nth-child(6))) > .card:nth-child(n+1) { --cards-c: 5; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(6)):not(:has(> .card:nth-child(7))) > .card:nth-child(n+1) { --cards-c: 3; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(6)):not(:has(> .card:nth-child(7))) > .card:nth-child(n+1) { --cards-c: 3; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(7)):not(:has(> .card:nth-child(8))) > .card:nth-child(n+1) { --cards-c: 4; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(7)):not(:has(> .card:nth-child(8))) > .card:nth-child(n+5) { --cards-c: 3; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(8)):not(:has(> .card:nth-child(9))) > .card:nth-child(n+1) { --cards-c: 4; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(8)):not(:has(> .card:nth-child(9))) > .card:nth-child(n+1) { --cards-c: 4; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(9)):not(:has(> .card:nth-child(10))) > .card:nth-child(n+1) { --cards-c: 5; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(9)):not(:has(> .card:nth-child(10))) > .card:nth-child(n+6) { --cards-c: 4; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(10)):not(:has(> .card:nth-child(11))) > .card:nth-child(n+1) { --cards-c: 5; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(10)):not(:has(> .card:nth-child(11))) > .card:nth-child(n+1) { --cards-c: 5; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(11)):not(:has(> .card:nth-child(12))) > .card:nth-child(n+1) { --cards-c: 4; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(11)):not(:has(> .card:nth-child(12))) > .card:nth-child(n+9) { --cards-c: 3; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(12)):not(:has(> .card:nth-child(13))) > .card:nth-child(n+1) { --cards-c: 4; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(12)):not(:has(> .card:nth-child(13))) > .card:nth-child(n+1) { --cards-c: 4; }
|
||||||
|
}
|
||||||
|
@container slot (min-width: 98.75rem) {
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(2)):not(:has(> .card:nth-child(3))) > .card:nth-child(n+1) { --cards-c: 2; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(2)):not(:has(> .card:nth-child(3))) > .card:nth-child(n+1) { --cards-c: 2; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(3)):not(:has(> .card:nth-child(4))) > .card:nth-child(n+1) { --cards-c: 3; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(3)):not(:has(> .card:nth-child(4))) > .card:nth-child(n+1) { --cards-c: 3; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(4)):not(:has(> .card:nth-child(5))) > .card:nth-child(n+1) { --cards-c: 4; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(4)):not(:has(> .card:nth-child(5))) > .card:nth-child(n+1) { --cards-c: 4; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(5)):not(:has(> .card:nth-child(6))) > .card:nth-child(n+1) { --cards-c: 5; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(5)):not(:has(> .card:nth-child(6))) > .card:nth-child(n+1) { --cards-c: 5; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(6)):not(:has(> .card:nth-child(7))) > .card:nth-child(n+1) { --cards-c: 3; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(6)):not(:has(> .card:nth-child(7))) > .card:nth-child(n+1) { --cards-c: 3; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(7)):not(:has(> .card:nth-child(8))) > .card:nth-child(n+1) { --cards-c: 4; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(7)):not(:has(> .card:nth-child(8))) > .card:nth-child(n+5) { --cards-c: 3; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(8)):not(:has(> .card:nth-child(9))) > .card:nth-child(n+1) { --cards-c: 4; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(8)):not(:has(> .card:nth-child(9))) > .card:nth-child(n+1) { --cards-c: 4; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(9)):not(:has(> .card:nth-child(10))) > .card:nth-child(n+1) { --cards-c: 5; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(9)):not(:has(> .card:nth-child(10))) > .card:nth-child(n+6) { --cards-c: 4; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(10)):not(:has(> .card:nth-child(11))) > .card:nth-child(n+1) { --cards-c: 5; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(10)):not(:has(> .card:nth-child(11))) > .card:nth-child(n+1) { --cards-c: 5; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(11)):not(:has(> .card:nth-child(12))) > .card:nth-child(n+1) { --cards-c: 4; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(11)):not(:has(> .card:nth-child(12))) > .card:nth-child(n+9) { --cards-c: 3; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(12)):not(:has(> .card:nth-child(13))) > .card:nth-child(n+1) { --cards-c: 4; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(12)):not(:has(> .card:nth-child(13))) > .card:nth-child(n+1) { --cards-c: 4; }
|
||||||
|
}
|
||||||
|
@container slot (min-width: 116.75rem) {
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(2)):not(:has(> .card:nth-child(3))) > .card:nth-child(n+1) { --cards-c: 2; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(2)):not(:has(> .card:nth-child(3))) > .card:nth-child(n+1) { --cards-c: 2; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(3)):not(:has(> .card:nth-child(4))) > .card:nth-child(n+1) { --cards-c: 3; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(3)):not(:has(> .card:nth-child(4))) > .card:nth-child(n+1) { --cards-c: 3; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(4)):not(:has(> .card:nth-child(5))) > .card:nth-child(n+1) { --cards-c: 4; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(4)):not(:has(> .card:nth-child(5))) > .card:nth-child(n+1) { --cards-c: 4; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(5)):not(:has(> .card:nth-child(6))) > .card:nth-child(n+1) { --cards-c: 5; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(5)):not(:has(> .card:nth-child(6))) > .card:nth-child(n+1) { --cards-c: 5; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(6)):not(:has(> .card:nth-child(7))) > .card:nth-child(n+1) { --cards-c: 6; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(6)):not(:has(> .card:nth-child(7))) > .card:nth-child(n+1) { --cards-c: 6; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(7)):not(:has(> .card:nth-child(8))) > .card:nth-child(n+1) { --cards-c: 4; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(7)):not(:has(> .card:nth-child(8))) > .card:nth-child(n+5) { --cards-c: 3; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(8)):not(:has(> .card:nth-child(9))) > .card:nth-child(n+1) { --cards-c: 4; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(8)):not(:has(> .card:nth-child(9))) > .card:nth-child(n+1) { --cards-c: 4; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(9)):not(:has(> .card:nth-child(10))) > .card:nth-child(n+1) { --cards-c: 5; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(9)):not(:has(> .card:nth-child(10))) > .card:nth-child(n+6) { --cards-c: 4; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(10)):not(:has(> .card:nth-child(11))) > .card:nth-child(n+1) { --cards-c: 5; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(10)):not(:has(> .card:nth-child(11))) > .card:nth-child(n+1) { --cards-c: 5; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(11)):not(:has(> .card:nth-child(12))) > .card:nth-child(n+1) { --cards-c: 6; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(11)):not(:has(> .card:nth-child(12))) > .card:nth-child(n+7) { --cards-c: 5; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(12)):not(:has(> .card:nth-child(13))) > .card:nth-child(n+1) { --cards-c: 6; }
|
||||||
|
.cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(12)):not(:has(> .card:nth-child(13))) > .card:nth-child(n+1) { --cards-c: 6; }
|
||||||
|
}
|
||||||
|
|
||||||
|
@container slot (min-width: 31.75rem) {
|
||||||
|
.cards.cards-featured:has(> .card:nth-child(3)):not(:has(> .card:nth-child(4))) > .card:nth-child(n+1) { --cards-c: 2; }
|
||||||
|
.cards.cards-featured:has(> .card:nth-child(3)):not(:has(> .card:nth-child(4))) > .card:nth-child(n+2) { --cards-c: 2; }
|
||||||
|
.cards.cards-featured:has(> .card:nth-child(4)):not(:has(> .card:nth-child(5))) > .card:nth-child(n+1) { --cards-c: 2; }
|
||||||
|
.cards.cards-featured:has(> .card:nth-child(4)):not(:has(> .card:nth-child(5))) > .card:nth-child(n+4) { --cards-c: 1; }
|
||||||
|
.cards.cards-featured:has(> .card:nth-child(5)):not(:has(> .card:nth-child(6))) > .card:nth-child(n+1) { --cards-c: 2; }
|
||||||
|
.cards.cards-featured:has(> .card:nth-child(5)):not(:has(> .card:nth-child(6))) > .card:nth-child(n+2) { --cards-c: 2; }
|
||||||
|
.cards.cards-featured:has(> .card:nth-child(6)):not(:has(> .card:nth-child(7))) > .card:nth-child(n+1) { --cards-c: 2; }
|
||||||
|
.cards.cards-featured:has(> .card:nth-child(6)):not(:has(> .card:nth-child(7))) > .card:nth-child(n+6) { --cards-c: 1; }
|
||||||
|
.cards.cards-featured:has(> .card:nth-child(7)):not(:has(> .card:nth-child(8))) > .card:nth-child(n+1) { --cards-c: 2; }
|
||||||
|
.cards.cards-featured:has(> .card:nth-child(7)):not(:has(> .card:nth-child(8))) > .card:nth-child(n+2) { --cards-c: 2; }
|
||||||
|
.cards.cards-featured:has(> .card:nth-child(8)):not(:has(> .card:nth-child(9))) > .card:nth-child(n+1) { --cards-c: 2; }
|
||||||
|
.cards.cards-featured:has(> .card:nth-child(8)):not(:has(> .card:nth-child(9))) > .card:nth-child(n+8) { --cards-c: 1; }
|
||||||
|
.cards.cards-featured:has(> .card:nth-child(9)):not(:has(> .card:nth-child(10))) > .card:nth-child(n+1) { --cards-c: 2; }
|
||||||
|
.cards.cards-featured:has(> .card:nth-child(9)):not(:has(> .card:nth-child(10))) > .card:nth-child(n+2) { --cards-c: 2; }
|
||||||
|
.cards.cards-featured:has(> .card:nth-child(10)):not(:has(> .card:nth-child(11))) > .card:nth-child(n+1) { --cards-c: 2; }
|
||||||
|
.cards.cards-featured:has(> .card:nth-child(10)):not(:has(> .card:nth-child(11))) > .card:nth-child(n+10) { --cards-c: 1; }
|
||||||
|
.cards.cards-featured:has(> .card:nth-child(11)):not(:has(> .card:nth-child(12))) > .card:nth-child(n+1) { --cards-c: 2; }
|
||||||
|
.cards.cards-featured:has(> .card:nth-child(11)):not(:has(> .card:nth-child(12))) > .card:nth-child(n+2) { --cards-c: 2; }
|
||||||
|
.cards.cards-featured:has(> .card:nth-child(12)):not(:has(> .card:nth-child(13))) > .card:nth-child(n+1) { --cards-c: 2; }
|
||||||
|
.cards.cards-featured:has(> .card:nth-child(12)):not(:has(> .card:nth-child(13))) > .card:nth-child(n+12) { --cards-c: 1; }
|
||||||
|
.cards.cards-featured:has(> .card:nth-child(13)):not(:has(> .card:nth-child(14))) > .card:nth-child(n+1) { --cards-c: 2; }
|
||||||
|
.cards.cards-featured:has(> .card:nth-child(13)):not(:has(> .card:nth-child(14))) > .card:nth-child(n+2) { --cards-c: 2; }
|
||||||
|
}
|
||||||
|
@container slot (min-width: 48.5rem) {
|
||||||
|
.cards.cards-featured:has(> .card:nth-child(4)):not(:has(> .card:nth-child(5))) > .card:nth-child(n+1) { --cards-c: 3; }
|
||||||
|
.cards.cards-featured:has(> .card:nth-child(4)):not(:has(> .card:nth-child(5))) > .card:nth-child(n+2) { --cards-c: 3; }
|
||||||
|
.cards.cards-featured:has(> .card:nth-child(6)):not(:has(> .card:nth-child(7))) > .card:nth-child(n+1) { --cards-c: 3; }
|
||||||
|
.cards.cards-featured:has(> .card:nth-child(6)):not(:has(> .card:nth-child(7))) > .card:nth-child(n+5) { --cards-c: 2; }
|
||||||
|
.cards.cards-featured:has(> .card:nth-child(7)):not(:has(> .card:nth-child(8))) > .card:nth-child(n+1) { --cards-c: 3; }
|
||||||
|
.cards.cards-featured:has(> .card:nth-child(7)):not(:has(> .card:nth-child(8))) > .card:nth-child(n+2) { --cards-c: 3; }
|
||||||
|
.cards.cards-featured:has(> .card:nth-child(8)):not(:has(> .card:nth-child(9))) > .card:nth-child(n+1) { --cards-c: 3; }
|
||||||
|
.cards.cards-featured:has(> .card:nth-child(8)):not(:has(> .card:nth-child(9))) > .card:nth-child(n+5) { --cards-c: 2; }
|
||||||
|
.cards.cards-featured:has(> .card:nth-child(9)):not(:has(> .card:nth-child(10))) > .card:nth-child(n+1) { --cards-c: 3; }
|
||||||
|
.cards.cards-featured:has(> .card:nth-child(9)):not(:has(> .card:nth-child(10))) > .card:nth-child(n+8) { --cards-c: 2; }
|
||||||
|
.cards.cards-featured:has(> .card:nth-child(10)):not(:has(> .card:nth-child(11))) > .card:nth-child(n+1) { --cards-c: 3; }
|
||||||
|
.cards.cards-featured:has(> .card:nth-child(10)):not(:has(> .card:nth-child(11))) > .card:nth-child(n+2) { --cards-c: 3; }
|
||||||
|
.cards.cards-featured:has(> .card:nth-child(11)):not(:has(> .card:nth-child(12))) > .card:nth-child(n+1) { --cards-c: 3; }
|
||||||
|
.cards.cards-featured:has(> .card:nth-child(11)):not(:has(> .card:nth-child(12))) > .card:nth-child(n+8) { --cards-c: 2; }
|
||||||
|
.cards.cards-featured:has(> .card:nth-child(12)):not(:has(> .card:nth-child(13))) > .card:nth-child(n+1) { --cards-c: 3; }
|
||||||
|
.cards.cards-featured:has(> .card:nth-child(12)):not(:has(> .card:nth-child(13))) > .card:nth-child(n+11) { --cards-c: 2; }
|
||||||
|
.cards.cards-featured:has(> .card:nth-child(13)):not(:has(> .card:nth-child(14))) > .card:nth-child(n+1) { --cards-c: 3; }
|
||||||
|
.cards.cards-featured:has(> .card:nth-child(13)):not(:has(> .card:nth-child(14))) > .card:nth-child(n+2) { --cards-c: 3; }
|
||||||
|
}
|
||||||
|
@container slot (min-width: 65.25rem) {
|
||||||
|
.cards.cards-featured:has(> .card:nth-child(5)):not(:has(> .card:nth-child(6))) > .card:nth-child(n+1) { --cards-c: 4; }
|
||||||
|
.cards.cards-featured:has(> .card:nth-child(5)):not(:has(> .card:nth-child(6))) > .card:nth-child(n+2) { --cards-c: 4; }
|
||||||
|
.cards.cards-featured:has(> .card:nth-child(8)):not(:has(> .card:nth-child(9))) > .card:nth-child(n+1) { --cards-c: 4; }
|
||||||
|
.cards.cards-featured:has(> .card:nth-child(8)):not(:has(> .card:nth-child(9))) > .card:nth-child(n+6) { --cards-c: 3; }
|
||||||
|
.cards.cards-featured:has(> .card:nth-child(9)):not(:has(> .card:nth-child(10))) > .card:nth-child(n+1) { --cards-c: 4; }
|
||||||
|
.cards.cards-featured:has(> .card:nth-child(9)):not(:has(> .card:nth-child(10))) > .card:nth-child(n+2) { --cards-c: 4; }
|
||||||
|
.cards.cards-featured:has(> .card:nth-child(11)):not(:has(> .card:nth-child(12))) > .card:nth-child(n+1) { --cards-c: 4; }
|
||||||
|
.cards.cards-featured:has(> .card:nth-child(11)):not(:has(> .card:nth-child(12))) > .card:nth-child(n+6) { --cards-c: 3; }
|
||||||
|
.cards.cards-featured:has(> .card:nth-child(12)):not(:has(> .card:nth-child(13))) > .card:nth-child(n+1) { --cards-c: 4; }
|
||||||
|
.cards.cards-featured:has(> .card:nth-child(12)):not(:has(> .card:nth-child(13))) > .card:nth-child(n+10) { --cards-c: 3; }
|
||||||
|
.cards.cards-featured:has(> .card:nth-child(13)):not(:has(> .card:nth-child(14))) > .card:nth-child(n+1) { --cards-c: 4; }
|
||||||
|
.cards.cards-featured:has(> .card:nth-child(13)):not(:has(> .card:nth-child(14))) > .card:nth-child(n+2) { --cards-c: 4; }
|
||||||
|
}
|
||||||
|
@container slot (min-width: 82rem) {
|
||||||
|
.cards.cards-featured:has(> .card:nth-child(6)):not(:has(> .card:nth-child(7))) > .card:nth-child(n+1) { --cards-c: 5; }
|
||||||
|
.cards.cards-featured:has(> .card:nth-child(6)):not(:has(> .card:nth-child(7))) > .card:nth-child(n+2) { --cards-c: 5; }
|
||||||
|
.cards.cards-featured:has(> .card:nth-child(10)):not(:has(> .card:nth-child(11))) > .card:nth-child(n+1) { --cards-c: 5; }
|
||||||
|
.cards.cards-featured:has(> .card:nth-child(10)):not(:has(> .card:nth-child(11))) > .card:nth-child(n+7) { --cards-c: 4; }
|
||||||
|
.cards.cards-featured:has(> .card:nth-child(11)):not(:has(> .card:nth-child(12))) > .card:nth-child(n+1) { --cards-c: 5; }
|
||||||
|
.cards.cards-featured:has(> .card:nth-child(11)):not(:has(> .card:nth-child(12))) > .card:nth-child(n+2) { --cards-c: 5; }
|
||||||
|
}
|
||||||
|
@container slot (min-width: 98.75rem) {
|
||||||
|
.cards.cards-featured:has(> .card:nth-child(7)):not(:has(> .card:nth-child(8))) > .card:nth-child(n+1) { --cards-c: 6; }
|
||||||
|
.cards.cards-featured:has(> .card:nth-child(7)):not(:has(> .card:nth-child(8))) > .card:nth-child(n+2) { --cards-c: 6; }
|
||||||
|
.cards.cards-featured:has(> .card:nth-child(12)):not(:has(> .card:nth-child(13))) > .card:nth-child(n+1) { --cards-c: 6; }
|
||||||
|
.cards.cards-featured:has(> .card:nth-child(12)):not(:has(> .card:nth-child(13))) > .card:nth-child(n+8) { --cards-c: 5; }
|
||||||
|
.cards.cards-featured:has(> .card:nth-child(13)):not(:has(> .card:nth-child(14))) > .card:nth-child(n+1) { --cards-c: 6; }
|
||||||
|
.cards.cards-featured:has(> .card:nth-child(13)):not(:has(> .card:nth-child(14))) > .card:nth-child(n+2) { --cards-c: 6; }
|
||||||
|
}
|
||||||
|
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(3)):not(:has(> .card:nth-child(4))) > .card:nth-child(n+1) { --cards-c: 1; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(3)):not(:has(> .card:nth-child(4))) > .card:nth-child(n+2) { --cards-c: 1; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(4)):not(:has(> .card:nth-child(5))) > .card:nth-child(n+1) { --cards-c: 1; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(4)):not(:has(> .card:nth-child(5))) > .card:nth-child(n+2) { --cards-c: 1; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(5)):not(:has(> .card:nth-child(6))) > .card:nth-child(n+1) { --cards-c: 1; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(5)):not(:has(> .card:nth-child(6))) > .card:nth-child(n+2) { --cards-c: 1; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(6)):not(:has(> .card:nth-child(7))) > .card:nth-child(n+1) { --cards-c: 1; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(6)):not(:has(> .card:nth-child(7))) > .card:nth-child(n+2) { --cards-c: 1; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(7)):not(:has(> .card:nth-child(8))) > .card:nth-child(n+1) { --cards-c: 1; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(7)):not(:has(> .card:nth-child(8))) > .card:nth-child(n+2) { --cards-c: 1; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(8)):not(:has(> .card:nth-child(9))) > .card:nth-child(n+1) { --cards-c: 1; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(8)):not(:has(> .card:nth-child(9))) > .card:nth-child(n+2) { --cards-c: 1; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(9)):not(:has(> .card:nth-child(10))) > .card:nth-child(n+1) { --cards-c: 1; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(9)):not(:has(> .card:nth-child(10))) > .card:nth-child(n+2) { --cards-c: 1; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(10)):not(:has(> .card:nth-child(11))) > .card:nth-child(n+1) { --cards-c: 1; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(10)):not(:has(> .card:nth-child(11))) > .card:nth-child(n+2) { --cards-c: 1; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(11)):not(:has(> .card:nth-child(12))) > .card:nth-child(n+1) { --cards-c: 1; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(11)):not(:has(> .card:nth-child(12))) > .card:nth-child(n+2) { --cards-c: 1; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(12)):not(:has(> .card:nth-child(13))) > .card:nth-child(n+1) { --cards-c: 1; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(12)):not(:has(> .card:nth-child(13))) > .card:nth-child(n+2) { --cards-c: 1; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(13)):not(:has(> .card:nth-child(14))) > .card:nth-child(n+1) { --cards-c: 1; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(13)):not(:has(> .card:nth-child(14))) > .card:nth-child(n+2) { --cards-c: 1; }
|
||||||
|
@container slot (min-width: 31.75rem) {
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(3)):not(:has(> .card:nth-child(4))) > .card:nth-child(n+1) { --cards-c: 1; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(3)):not(:has(> .card:nth-child(4))) > .card:nth-child(n+2) { --cards-c: 1; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(4)):not(:has(> .card:nth-child(5))) > .card:nth-child(n+1) { --cards-c: 1; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(4)):not(:has(> .card:nth-child(5))) > .card:nth-child(n+2) { --cards-c: 1; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(5)):not(:has(> .card:nth-child(6))) > .card:nth-child(n+1) { --cards-c: 1; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(5)):not(:has(> .card:nth-child(6))) > .card:nth-child(n+2) { --cards-c: 1; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(6)):not(:has(> .card:nth-child(7))) > .card:nth-child(n+1) { --cards-c: 1; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(6)):not(:has(> .card:nth-child(7))) > .card:nth-child(n+2) { --cards-c: 1; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(7)):not(:has(> .card:nth-child(8))) > .card:nth-child(n+1) { --cards-c: 1; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(7)):not(:has(> .card:nth-child(8))) > .card:nth-child(n+2) { --cards-c: 1; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(8)):not(:has(> .card:nth-child(9))) > .card:nth-child(n+1) { --cards-c: 1; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(8)):not(:has(> .card:nth-child(9))) > .card:nth-child(n+2) { --cards-c: 1; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(9)):not(:has(> .card:nth-child(10))) > .card:nth-child(n+1) { --cards-c: 1; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(9)):not(:has(> .card:nth-child(10))) > .card:nth-child(n+2) { --cards-c: 1; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(10)):not(:has(> .card:nth-child(11))) > .card:nth-child(n+1) { --cards-c: 1; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(10)):not(:has(> .card:nth-child(11))) > .card:nth-child(n+2) { --cards-c: 1; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(11)):not(:has(> .card:nth-child(12))) > .card:nth-child(n+1) { --cards-c: 1; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(11)):not(:has(> .card:nth-child(12))) > .card:nth-child(n+2) { --cards-c: 1; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(12)):not(:has(> .card:nth-child(13))) > .card:nth-child(n+1) { --cards-c: 1; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(12)):not(:has(> .card:nth-child(13))) > .card:nth-child(n+2) { --cards-c: 1; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(13)):not(:has(> .card:nth-child(14))) > .card:nth-child(n+1) { --cards-c: 1; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(13)):not(:has(> .card:nth-child(14))) > .card:nth-child(n+2) { --cards-c: 1; }
|
||||||
|
}
|
||||||
|
@container slot (min-width: 37.75rem) {
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(3)):not(:has(> .card:nth-child(4))) > .card:nth-child(n+1) { --cards-c: 2; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(3)):not(:has(> .card:nth-child(4))) > .card:nth-child(n+2) { --cards-c: 2; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(4)):not(:has(> .card:nth-child(5))) > .card:nth-child(n+1) { --cards-c: 2; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(4)):not(:has(> .card:nth-child(5))) > .card:nth-child(n+4) { --cards-c: 1; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(5)):not(:has(> .card:nth-child(6))) > .card:nth-child(n+1) { --cards-c: 2; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(5)):not(:has(> .card:nth-child(6))) > .card:nth-child(n+2) { --cards-c: 2; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(6)):not(:has(> .card:nth-child(7))) > .card:nth-child(n+1) { --cards-c: 2; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(6)):not(:has(> .card:nth-child(7))) > .card:nth-child(n+6) { --cards-c: 1; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(7)):not(:has(> .card:nth-child(8))) > .card:nth-child(n+1) { --cards-c: 2; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(7)):not(:has(> .card:nth-child(8))) > .card:nth-child(n+2) { --cards-c: 2; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(8)):not(:has(> .card:nth-child(9))) > .card:nth-child(n+1) { --cards-c: 2; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(8)):not(:has(> .card:nth-child(9))) > .card:nth-child(n+8) { --cards-c: 1; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(9)):not(:has(> .card:nth-child(10))) > .card:nth-child(n+1) { --cards-c: 2; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(9)):not(:has(> .card:nth-child(10))) > .card:nth-child(n+2) { --cards-c: 2; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(10)):not(:has(> .card:nth-child(11))) > .card:nth-child(n+1) { --cards-c: 2; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(10)):not(:has(> .card:nth-child(11))) > .card:nth-child(n+10) { --cards-c: 1; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(11)):not(:has(> .card:nth-child(12))) > .card:nth-child(n+1) { --cards-c: 2; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(11)):not(:has(> .card:nth-child(12))) > .card:nth-child(n+2) { --cards-c: 2; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(12)):not(:has(> .card:nth-child(13))) > .card:nth-child(n+1) { --cards-c: 2; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(12)):not(:has(> .card:nth-child(13))) > .card:nth-child(n+12) { --cards-c: 1; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(13)):not(:has(> .card:nth-child(14))) > .card:nth-child(n+1) { --cards-c: 2; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(13)):not(:has(> .card:nth-child(14))) > .card:nth-child(n+2) { --cards-c: 2; }
|
||||||
|
}
|
||||||
|
@container slot (min-width: 48.5rem) {
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(3)):not(:has(> .card:nth-child(4))) > .card:nth-child(n+1) { --cards-c: 2; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(3)):not(:has(> .card:nth-child(4))) > .card:nth-child(n+2) { --cards-c: 2; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(4)):not(:has(> .card:nth-child(5))) > .card:nth-child(n+1) { --cards-c: 2; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(4)):not(:has(> .card:nth-child(5))) > .card:nth-child(n+4) { --cards-c: 1; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(5)):not(:has(> .card:nth-child(6))) > .card:nth-child(n+1) { --cards-c: 2; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(5)):not(:has(> .card:nth-child(6))) > .card:nth-child(n+2) { --cards-c: 2; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(6)):not(:has(> .card:nth-child(7))) > .card:nth-child(n+1) { --cards-c: 2; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(6)):not(:has(> .card:nth-child(7))) > .card:nth-child(n+6) { --cards-c: 1; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(7)):not(:has(> .card:nth-child(8))) > .card:nth-child(n+1) { --cards-c: 2; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(7)):not(:has(> .card:nth-child(8))) > .card:nth-child(n+2) { --cards-c: 2; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(8)):not(:has(> .card:nth-child(9))) > .card:nth-child(n+1) { --cards-c: 2; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(8)):not(:has(> .card:nth-child(9))) > .card:nth-child(n+8) { --cards-c: 1; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(9)):not(:has(> .card:nth-child(10))) > .card:nth-child(n+1) { --cards-c: 2; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(9)):not(:has(> .card:nth-child(10))) > .card:nth-child(n+2) { --cards-c: 2; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(10)):not(:has(> .card:nth-child(11))) > .card:nth-child(n+1) { --cards-c: 2; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(10)):not(:has(> .card:nth-child(11))) > .card:nth-child(n+10) { --cards-c: 1; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(11)):not(:has(> .card:nth-child(12))) > .card:nth-child(n+1) { --cards-c: 2; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(11)):not(:has(> .card:nth-child(12))) > .card:nth-child(n+2) { --cards-c: 2; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(12)):not(:has(> .card:nth-child(13))) > .card:nth-child(n+1) { --cards-c: 2; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(12)):not(:has(> .card:nth-child(13))) > .card:nth-child(n+12) { --cards-c: 1; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(13)):not(:has(> .card:nth-child(14))) > .card:nth-child(n+1) { --cards-c: 2; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(13)):not(:has(> .card:nth-child(14))) > .card:nth-child(n+2) { --cards-c: 2; }
|
||||||
|
}
|
||||||
|
@container slot (min-width: 57.5rem) {
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(3)):not(:has(> .card:nth-child(4))) > .card:nth-child(n+1) { --cards-c: 2; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(3)):not(:has(> .card:nth-child(4))) > .card:nth-child(n+2) { --cards-c: 2; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(4)):not(:has(> .card:nth-child(5))) > .card:nth-child(n+1) { --cards-c: 3; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(4)):not(:has(> .card:nth-child(5))) > .card:nth-child(n+2) { --cards-c: 3; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(5)):not(:has(> .card:nth-child(6))) > .card:nth-child(n+1) { --cards-c: 2; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(5)):not(:has(> .card:nth-child(6))) > .card:nth-child(n+2) { --cards-c: 2; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(6)):not(:has(> .card:nth-child(7))) > .card:nth-child(n+1) { --cards-c: 3; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(6)):not(:has(> .card:nth-child(7))) > .card:nth-child(n+5) { --cards-c: 2; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(7)):not(:has(> .card:nth-child(8))) > .card:nth-child(n+1) { --cards-c: 3; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(7)):not(:has(> .card:nth-child(8))) > .card:nth-child(n+2) { --cards-c: 3; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(8)):not(:has(> .card:nth-child(9))) > .card:nth-child(n+1) { --cards-c: 3; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(8)):not(:has(> .card:nth-child(9))) > .card:nth-child(n+5) { --cards-c: 2; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(9)):not(:has(> .card:nth-child(10))) > .card:nth-child(n+1) { --cards-c: 3; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(9)):not(:has(> .card:nth-child(10))) > .card:nth-child(n+8) { --cards-c: 2; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(10)):not(:has(> .card:nth-child(11))) > .card:nth-child(n+1) { --cards-c: 3; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(10)):not(:has(> .card:nth-child(11))) > .card:nth-child(n+2) { --cards-c: 3; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(11)):not(:has(> .card:nth-child(12))) > .card:nth-child(n+1) { --cards-c: 3; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(11)):not(:has(> .card:nth-child(12))) > .card:nth-child(n+8) { --cards-c: 2; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(12)):not(:has(> .card:nth-child(13))) > .card:nth-child(n+1) { --cards-c: 3; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(12)):not(:has(> .card:nth-child(13))) > .card:nth-child(n+11) { --cards-c: 2; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(13)):not(:has(> .card:nth-child(14))) > .card:nth-child(n+1) { --cards-c: 3; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(13)):not(:has(> .card:nth-child(14))) > .card:nth-child(n+2) { --cards-c: 3; }
|
||||||
|
}
|
||||||
|
@container slot (min-width: 65.25rem) {
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(3)):not(:has(> .card:nth-child(4))) > .card:nth-child(n+1) { --cards-c: 2; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(3)):not(:has(> .card:nth-child(4))) > .card:nth-child(n+2) { --cards-c: 2; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(4)):not(:has(> .card:nth-child(5))) > .card:nth-child(n+1) { --cards-c: 3; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(4)):not(:has(> .card:nth-child(5))) > .card:nth-child(n+2) { --cards-c: 3; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(5)):not(:has(> .card:nth-child(6))) > .card:nth-child(n+1) { --cards-c: 2; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(5)):not(:has(> .card:nth-child(6))) > .card:nth-child(n+2) { --cards-c: 2; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(6)):not(:has(> .card:nth-child(7))) > .card:nth-child(n+1) { --cards-c: 3; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(6)):not(:has(> .card:nth-child(7))) > .card:nth-child(n+5) { --cards-c: 2; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(7)):not(:has(> .card:nth-child(8))) > .card:nth-child(n+1) { --cards-c: 3; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(7)):not(:has(> .card:nth-child(8))) > .card:nth-child(n+2) { --cards-c: 3; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(8)):not(:has(> .card:nth-child(9))) > .card:nth-child(n+1) { --cards-c: 3; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(8)):not(:has(> .card:nth-child(9))) > .card:nth-child(n+5) { --cards-c: 2; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(9)):not(:has(> .card:nth-child(10))) > .card:nth-child(n+1) { --cards-c: 3; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(9)):not(:has(> .card:nth-child(10))) > .card:nth-child(n+8) { --cards-c: 2; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(10)):not(:has(> .card:nth-child(11))) > .card:nth-child(n+1) { --cards-c: 3; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(10)):not(:has(> .card:nth-child(11))) > .card:nth-child(n+2) { --cards-c: 3; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(11)):not(:has(> .card:nth-child(12))) > .card:nth-child(n+1) { --cards-c: 3; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(11)):not(:has(> .card:nth-child(12))) > .card:nth-child(n+8) { --cards-c: 2; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(12)):not(:has(> .card:nth-child(13))) > .card:nth-child(n+1) { --cards-c: 3; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(12)):not(:has(> .card:nth-child(13))) > .card:nth-child(n+11) { --cards-c: 2; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(13)):not(:has(> .card:nth-child(14))) > .card:nth-child(n+1) { --cards-c: 3; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(13)):not(:has(> .card:nth-child(14))) > .card:nth-child(n+2) { --cards-c: 3; }
|
||||||
|
}
|
||||||
|
@container slot (min-width: 77.25rem) {
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(3)):not(:has(> .card:nth-child(4))) > .card:nth-child(n+1) { --cards-c: 2; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(3)):not(:has(> .card:nth-child(4))) > .card:nth-child(n+2) { --cards-c: 2; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(4)):not(:has(> .card:nth-child(5))) > .card:nth-child(n+1) { --cards-c: 3; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(4)):not(:has(> .card:nth-child(5))) > .card:nth-child(n+2) { --cards-c: 3; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(5)):not(:has(> .card:nth-child(6))) > .card:nth-child(n+1) { --cards-c: 4; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(5)):not(:has(> .card:nth-child(6))) > .card:nth-child(n+2) { --cards-c: 4; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(6)):not(:has(> .card:nth-child(7))) > .card:nth-child(n+1) { --cards-c: 3; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(6)):not(:has(> .card:nth-child(7))) > .card:nth-child(n+5) { --cards-c: 2; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(7)):not(:has(> .card:nth-child(8))) > .card:nth-child(n+1) { --cards-c: 3; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(7)):not(:has(> .card:nth-child(8))) > .card:nth-child(n+2) { --cards-c: 3; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(8)):not(:has(> .card:nth-child(9))) > .card:nth-child(n+1) { --cards-c: 4; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(8)):not(:has(> .card:nth-child(9))) > .card:nth-child(n+6) { --cards-c: 3; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(9)):not(:has(> .card:nth-child(10))) > .card:nth-child(n+1) { --cards-c: 4; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(9)):not(:has(> .card:nth-child(10))) > .card:nth-child(n+2) { --cards-c: 4; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(10)):not(:has(> .card:nth-child(11))) > .card:nth-child(n+1) { --cards-c: 3; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(10)):not(:has(> .card:nth-child(11))) > .card:nth-child(n+2) { --cards-c: 3; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(11)):not(:has(> .card:nth-child(12))) > .card:nth-child(n+1) { --cards-c: 4; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(11)):not(:has(> .card:nth-child(12))) > .card:nth-child(n+6) { --cards-c: 3; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(12)):not(:has(> .card:nth-child(13))) > .card:nth-child(n+1) { --cards-c: 4; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(12)):not(:has(> .card:nth-child(13))) > .card:nth-child(n+10) { --cards-c: 3; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(13)):not(:has(> .card:nth-child(14))) > .card:nth-child(n+1) { --cards-c: 4; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(13)):not(:has(> .card:nth-child(14))) > .card:nth-child(n+2) { --cards-c: 4; }
|
||||||
|
}
|
||||||
|
@container slot (min-width: 82rem) {
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(3)):not(:has(> .card:nth-child(4))) > .card:nth-child(n+1) { --cards-c: 2; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(3)):not(:has(> .card:nth-child(4))) > .card:nth-child(n+2) { --cards-c: 2; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(4)):not(:has(> .card:nth-child(5))) > .card:nth-child(n+1) { --cards-c: 3; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(4)):not(:has(> .card:nth-child(5))) > .card:nth-child(n+2) { --cards-c: 3; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(5)):not(:has(> .card:nth-child(6))) > .card:nth-child(n+1) { --cards-c: 4; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(5)):not(:has(> .card:nth-child(6))) > .card:nth-child(n+2) { --cards-c: 4; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(6)):not(:has(> .card:nth-child(7))) > .card:nth-child(n+1) { --cards-c: 3; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(6)):not(:has(> .card:nth-child(7))) > .card:nth-child(n+5) { --cards-c: 2; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(7)):not(:has(> .card:nth-child(8))) > .card:nth-child(n+1) { --cards-c: 3; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(7)):not(:has(> .card:nth-child(8))) > .card:nth-child(n+2) { --cards-c: 3; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(8)):not(:has(> .card:nth-child(9))) > .card:nth-child(n+1) { --cards-c: 4; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(8)):not(:has(> .card:nth-child(9))) > .card:nth-child(n+6) { --cards-c: 3; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(9)):not(:has(> .card:nth-child(10))) > .card:nth-child(n+1) { --cards-c: 4; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(9)):not(:has(> .card:nth-child(10))) > .card:nth-child(n+2) { --cards-c: 4; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(10)):not(:has(> .card:nth-child(11))) > .card:nth-child(n+1) { --cards-c: 3; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(10)):not(:has(> .card:nth-child(11))) > .card:nth-child(n+2) { --cards-c: 3; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(11)):not(:has(> .card:nth-child(12))) > .card:nth-child(n+1) { --cards-c: 4; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(11)):not(:has(> .card:nth-child(12))) > .card:nth-child(n+6) { --cards-c: 3; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(12)):not(:has(> .card:nth-child(13))) > .card:nth-child(n+1) { --cards-c: 4; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(12)):not(:has(> .card:nth-child(13))) > .card:nth-child(n+10) { --cards-c: 3; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(13)):not(:has(> .card:nth-child(14))) > .card:nth-child(n+1) { --cards-c: 4; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(13)):not(:has(> .card:nth-child(14))) > .card:nth-child(n+2) { --cards-c: 4; }
|
||||||
|
}
|
||||||
|
@container slot (min-width: 97rem) {
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(3)):not(:has(> .card:nth-child(4))) > .card:nth-child(n+1) { --cards-c: 2; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(3)):not(:has(> .card:nth-child(4))) > .card:nth-child(n+2) { --cards-c: 2; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(4)):not(:has(> .card:nth-child(5))) > .card:nth-child(n+1) { --cards-c: 3; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(4)):not(:has(> .card:nth-child(5))) > .card:nth-child(n+2) { --cards-c: 3; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(5)):not(:has(> .card:nth-child(6))) > .card:nth-child(n+1) { --cards-c: 4; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(5)):not(:has(> .card:nth-child(6))) > .card:nth-child(n+2) { --cards-c: 4; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(6)):not(:has(> .card:nth-child(7))) > .card:nth-child(n+1) { --cards-c: 5; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(6)):not(:has(> .card:nth-child(7))) > .card:nth-child(n+2) { --cards-c: 5; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(7)):not(:has(> .card:nth-child(8))) > .card:nth-child(n+1) { --cards-c: 3; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(7)):not(:has(> .card:nth-child(8))) > .card:nth-child(n+2) { --cards-c: 3; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(8)):not(:has(> .card:nth-child(9))) > .card:nth-child(n+1) { --cards-c: 4; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(8)):not(:has(> .card:nth-child(9))) > .card:nth-child(n+6) { --cards-c: 3; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(9)):not(:has(> .card:nth-child(10))) > .card:nth-child(n+1) { --cards-c: 4; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(9)):not(:has(> .card:nth-child(10))) > .card:nth-child(n+2) { --cards-c: 4; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(10)):not(:has(> .card:nth-child(11))) > .card:nth-child(n+1) { --cards-c: 5; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(10)):not(:has(> .card:nth-child(11))) > .card:nth-child(n+7) { --cards-c: 4; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(11)):not(:has(> .card:nth-child(12))) > .card:nth-child(n+1) { --cards-c: 5; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(11)):not(:has(> .card:nth-child(12))) > .card:nth-child(n+2) { --cards-c: 5; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(12)):not(:has(> .card:nth-child(13))) > .card:nth-child(n+1) { --cards-c: 4; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(12)):not(:has(> .card:nth-child(13))) > .card:nth-child(n+10) { --cards-c: 3; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(13)):not(:has(> .card:nth-child(14))) > .card:nth-child(n+1) { --cards-c: 4; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(13)):not(:has(> .card:nth-child(14))) > .card:nth-child(n+2) { --cards-c: 4; }
|
||||||
|
}
|
||||||
|
@container slot (min-width: 98.75rem) {
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(3)):not(:has(> .card:nth-child(4))) > .card:nth-child(n+1) { --cards-c: 2; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(3)):not(:has(> .card:nth-child(4))) > .card:nth-child(n+2) { --cards-c: 2; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(4)):not(:has(> .card:nth-child(5))) > .card:nth-child(n+1) { --cards-c: 3; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(4)):not(:has(> .card:nth-child(5))) > .card:nth-child(n+2) { --cards-c: 3; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(5)):not(:has(> .card:nth-child(6))) > .card:nth-child(n+1) { --cards-c: 4; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(5)):not(:has(> .card:nth-child(6))) > .card:nth-child(n+2) { --cards-c: 4; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(6)):not(:has(> .card:nth-child(7))) > .card:nth-child(n+1) { --cards-c: 5; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(6)):not(:has(> .card:nth-child(7))) > .card:nth-child(n+2) { --cards-c: 5; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(7)):not(:has(> .card:nth-child(8))) > .card:nth-child(n+1) { --cards-c: 3; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(7)):not(:has(> .card:nth-child(8))) > .card:nth-child(n+2) { --cards-c: 3; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(8)):not(:has(> .card:nth-child(9))) > .card:nth-child(n+1) { --cards-c: 4; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(8)):not(:has(> .card:nth-child(9))) > .card:nth-child(n+6) { --cards-c: 3; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(9)):not(:has(> .card:nth-child(10))) > .card:nth-child(n+1) { --cards-c: 4; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(9)):not(:has(> .card:nth-child(10))) > .card:nth-child(n+2) { --cards-c: 4; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(10)):not(:has(> .card:nth-child(11))) > .card:nth-child(n+1) { --cards-c: 5; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(10)):not(:has(> .card:nth-child(11))) > .card:nth-child(n+7) { --cards-c: 4; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(11)):not(:has(> .card:nth-child(12))) > .card:nth-child(n+1) { --cards-c: 5; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(11)):not(:has(> .card:nth-child(12))) > .card:nth-child(n+2) { --cards-c: 5; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(12)):not(:has(> .card:nth-child(13))) > .card:nth-child(n+1) { --cards-c: 4; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(12)):not(:has(> .card:nth-child(13))) > .card:nth-child(n+10) { --cards-c: 3; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(13)):not(:has(> .card:nth-child(14))) > .card:nth-child(n+1) { --cards-c: 4; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(13)):not(:has(> .card:nth-child(14))) > .card:nth-child(n+2) { --cards-c: 4; }
|
||||||
|
}
|
||||||
|
@container slot (min-width: 116.75rem) {
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(3)):not(:has(> .card:nth-child(4))) > .card:nth-child(n+1) { --cards-c: 2; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(3)):not(:has(> .card:nth-child(4))) > .card:nth-child(n+2) { --cards-c: 2; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(4)):not(:has(> .card:nth-child(5))) > .card:nth-child(n+1) { --cards-c: 3; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(4)):not(:has(> .card:nth-child(5))) > .card:nth-child(n+2) { --cards-c: 3; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(5)):not(:has(> .card:nth-child(6))) > .card:nth-child(n+1) { --cards-c: 4; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(5)):not(:has(> .card:nth-child(6))) > .card:nth-child(n+2) { --cards-c: 4; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(6)):not(:has(> .card:nth-child(7))) > .card:nth-child(n+1) { --cards-c: 5; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(6)):not(:has(> .card:nth-child(7))) > .card:nth-child(n+2) { --cards-c: 5; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(7)):not(:has(> .card:nth-child(8))) > .card:nth-child(n+1) { --cards-c: 6; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(7)):not(:has(> .card:nth-child(8))) > .card:nth-child(n+2) { --cards-c: 6; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(8)):not(:has(> .card:nth-child(9))) > .card:nth-child(n+1) { --cards-c: 4; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(8)):not(:has(> .card:nth-child(9))) > .card:nth-child(n+6) { --cards-c: 3; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(9)):not(:has(> .card:nth-child(10))) > .card:nth-child(n+1) { --cards-c: 4; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(9)):not(:has(> .card:nth-child(10))) > .card:nth-child(n+2) { --cards-c: 4; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(10)):not(:has(> .card:nth-child(11))) > .card:nth-child(n+1) { --cards-c: 5; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(10)):not(:has(> .card:nth-child(11))) > .card:nth-child(n+7) { --cards-c: 4; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(11)):not(:has(> .card:nth-child(12))) > .card:nth-child(n+1) { --cards-c: 5; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(11)):not(:has(> .card:nth-child(12))) > .card:nth-child(n+2) { --cards-c: 5; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(12)):not(:has(> .card:nth-child(13))) > .card:nth-child(n+1) { --cards-c: 6; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(12)):not(:has(> .card:nth-child(13))) > .card:nth-child(n+8) { --cards-c: 5; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(13)):not(:has(> .card:nth-child(14))) > .card:nth-child(n+1) { --cards-c: 6; }
|
||||||
|
.cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right):has(> .card:nth-child(13)):not(:has(> .card:nth-child(14))) > .card:nth-child(n+2) { --cards-c: 6; }
|
||||||
|
}
|
||||||
@@ -51,11 +51,11 @@ .widget-heading .lede.lf-reading {
|
|||||||
max-width: var(--measure);
|
max-width: var(--measure);
|
||||||
}
|
}
|
||||||
|
|
||||||
:is(.widget-prose, .widget-heading) .prose {
|
:is(.widget-prose, .widget-heading, .widget-cards) .prose {
|
||||||
max-width: none;
|
max-width: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
:is(.widget-prose, .widget-heading) .prose.prose--reading {
|
:is(.widget-prose, .widget-heading, .widget-cards) .prose.prose--reading {
|
||||||
max-width: var(--measure);
|
max-width: var(--measure);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -65,7 +65,7 @@ .widget-heading :is(h1, h2).lf-reading {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Fließtext */
|
/* Fließtext */
|
||||||
:is(.widget-prose, .widget-heading) .prose p {
|
:is(.widget-prose, .widget-heading, .widget-cards) .prose p {
|
||||||
margin: 0 0 var(--space-4);
|
margin: 0 0 var(--space-4);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -73,10 +73,10 @@ :is(.widget-prose, .widget-heading) .prose p {
|
|||||||
* Fließtext aus dem Editor (ADR-50): Zwischenüberschriften H3 bis H6, Zitat und Tabellen. Nur Bedeutungswerte, damit der
|
* Fließtext aus dem Editor (ADR-50): Zwischenüberschriften H3 bis H6, Zitat und Tabellen. Nur Bedeutungswerte, damit der
|
||||||
* Text auch auf dunklen und Akzentflächen lesbar bleibt.
|
* Text auch auf dunklen und Akzentflächen lesbar bleibt.
|
||||||
*/
|
*/
|
||||||
:is(.widget-prose, .widget-heading) .prose h3,
|
:is(.widget-prose, .widget-heading, .widget-cards) .prose h3,
|
||||||
:is(.widget-prose, .widget-heading) .prose h4,
|
:is(.widget-prose, .widget-heading, .widget-cards) .prose h4,
|
||||||
:is(.widget-prose, .widget-heading) .prose h5,
|
:is(.widget-prose, .widget-heading, .widget-cards) .prose h5,
|
||||||
:is(.widget-prose, .widget-heading) .prose h6 {
|
:is(.widget-prose, .widget-heading, .widget-cards) .prose h6 {
|
||||||
margin: var(--space-5) 0 var(--space-2);
|
margin: var(--space-5) 0 var(--space-2);
|
||||||
font-family: var(--font-display);
|
font-family: var(--font-display);
|
||||||
color: var(--color-heading);
|
color: var(--color-heading);
|
||||||
@@ -86,75 +86,75 @@ :is(.widget-prose, .widget-heading) .prose h6 {
|
|||||||
overflow-wrap: break-word;
|
overflow-wrap: break-word;
|
||||||
}
|
}
|
||||||
|
|
||||||
:is(.widget-prose, .widget-heading) .prose h3 { font-size: var(--text-h3); }
|
:is(.widget-prose, .widget-heading, .widget-cards) .prose h3 { font-size: var(--text-h3); }
|
||||||
:is(.widget-prose, .widget-heading) .prose h4 { font-size: calc(var(--text-body) * 1.25); }
|
:is(.widget-prose, .widget-heading, .widget-cards) .prose h4 { font-size: calc(var(--text-body) * 1.25); }
|
||||||
:is(.widget-prose, .widget-heading) .prose h5 { font-size: calc(var(--text-body) * 1.1); }
|
:is(.widget-prose, .widget-heading, .widget-cards) .prose h5 { font-size: calc(var(--text-body) * 1.1); }
|
||||||
:is(.widget-prose, .widget-heading) .prose h6 { font-size: var(--text-body); }
|
:is(.widget-prose, .widget-heading, .widget-cards) .prose h6 { font-size: var(--text-body); }
|
||||||
|
|
||||||
:is(.widget-prose, .widget-heading) .prose > :first-child { margin-top: 0; }
|
:is(.widget-prose, .widget-heading, .widget-cards) .prose > :first-child { margin-top: 0; }
|
||||||
|
|
||||||
:is(.widget-prose, .widget-heading) .prose blockquote {
|
:is(.widget-prose, .widget-heading, .widget-cards) .prose blockquote {
|
||||||
margin: 0 0 var(--space-4);
|
margin: 0 0 var(--space-4);
|
||||||
padding: 0 0 0 var(--space-4);
|
padding: 0 0 0 var(--space-4);
|
||||||
border-inline-start: 4px solid var(--color-border-strong);
|
border-inline-start: 4px solid var(--color-border-strong);
|
||||||
color: var(--color-text-muted);
|
color: var(--color-text-muted);
|
||||||
}
|
}
|
||||||
|
|
||||||
:is(.widget-prose, .widget-heading) .prose blockquote > :last-child { margin-bottom: 0; }
|
:is(.widget-prose, .widget-heading, .widget-cards) .prose blockquote > :last-child { margin-bottom: 0; }
|
||||||
|
|
||||||
/* Der Grundstil setzt Listen und Links zurück; im Fließtext sollen sie als solche erkennbar sein. */
|
/* Der Grundstil setzt Listen und Links zurück; im Fließtext sollen sie als solche erkennbar sein. */
|
||||||
:is(.widget-prose, .widget-heading) .prose ul { list-style: disc; }
|
:is(.widget-prose, .widget-heading, .widget-cards) .prose ul { list-style: disc; }
|
||||||
:is(.widget-prose, .widget-heading) .prose ol { list-style: decimal; }
|
:is(.widget-prose, .widget-heading, .widget-cards) .prose ol { list-style: decimal; }
|
||||||
:is(.widget-prose, .widget-heading) .prose li { margin-block-end: var(--space-1); }
|
:is(.widget-prose, .widget-heading, .widget-cards) .prose li { margin-block-end: var(--space-1); }
|
||||||
:is(.widget-prose, .widget-heading) .prose li > p { margin: 0; }
|
:is(.widget-prose, .widget-heading, .widget-cards) .prose li > p { margin: 0; }
|
||||||
:is(.widget-prose, .widget-heading) .prose li::marker { color: var(--color-text-muted); }
|
:is(.widget-prose, .widget-heading, .widget-cards) .prose li::marker { color: var(--color-text-muted); }
|
||||||
|
|
||||||
:is(.widget-prose, .widget-heading) .prose a {
|
:is(.widget-prose, .widget-heading, .widget-cards) .prose a {
|
||||||
color: var(--color-link);
|
color: var(--color-link);
|
||||||
text-decoration: underline;
|
text-decoration: underline;
|
||||||
text-underline-offset: 0.2em;
|
text-underline-offset: 0.2em;
|
||||||
overflow-wrap: anywhere;
|
overflow-wrap: anywhere;
|
||||||
}
|
}
|
||||||
|
|
||||||
:is(.widget-prose, .widget-heading) .prose a:hover { color: var(--color-link-hover, var(--color-link)); }
|
:is(.widget-prose, .widget-heading, .widget-cards) .prose a:hover { color: var(--color-link-hover, var(--color-link)); }
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Auszeichnungen aus dem Editor (FormattedText::SITE_SIZES, SITE_COLORS): feste Stufen statt freier Werte. Die Größe ist
|
* Auszeichnungen aus dem Editor (FormattedText::SITE_SIZES, SITE_COLORS): feste Stufen statt freier Werte. Die Größe ist
|
||||||
* relativ zur Umgebung, in einer Überschrift also zu deren Schrift. Die Farben sind auf hellen Flächen die Markenfarben;
|
* relativ zur Umgebung, in einer Überschrift also zu deren Schrift. Die Farben sind auf hellen Flächen die Markenfarben;
|
||||||
* auf dunklen (`scope-dark`) und grünen (`scope-accent`) Flächen werden sie aufgehellt, damit die Schrift lesbar bleibt.
|
* auf dunklen (`scope-dark`) und grünen (`scope-accent`) Flächen werden sie aufgehellt, damit die Schrift lesbar bleibt.
|
||||||
*/
|
*/
|
||||||
:is(.widget-prose, .widget-heading) .prose {
|
:is(.widget-prose, .widget-heading, .widget-cards) .prose {
|
||||||
--tc-marine: var(--lf-navy);
|
--tc-marine: var(--lf-navy);
|
||||||
--tc-gruen: var(--lf-green-deep);
|
--tc-gruen: var(--lf-green-deep);
|
||||||
--tc-rot: #a8212b;
|
--tc-rot: #a8212b;
|
||||||
--tc-grau: var(--lf-ink-muted);
|
--tc-grau: var(--lf-ink-muted);
|
||||||
}
|
}
|
||||||
|
|
||||||
.scope-dark :is(.widget-prose, .widget-heading) .prose {
|
.scope-dark :is(.widget-prose, .widget-heading, .widget-cards) .prose {
|
||||||
--tc-marine: var(--lf-white);
|
--tc-marine: var(--lf-white);
|
||||||
--tc-gruen: #b7dc84;
|
--tc-gruen: #b7dc84;
|
||||||
--tc-rot: #ffb4b0;
|
--tc-rot: #ffb4b0;
|
||||||
--tc-grau: #d3dde8;
|
--tc-grau: #d3dde8;
|
||||||
}
|
}
|
||||||
|
|
||||||
.scope-accent :is(.widget-prose, .widget-heading) .prose {
|
.scope-accent :is(.widget-prose, .widget-heading, .widget-cards) .prose {
|
||||||
--tc-marine: var(--lf-white);
|
--tc-marine: var(--lf-white);
|
||||||
--tc-gruen: var(--lf-white);
|
--tc-gruen: var(--lf-white);
|
||||||
--tc-rot: #ffe1df;
|
--tc-rot: #ffe1df;
|
||||||
--tc-grau: #eef4e8;
|
--tc-grau: #eef4e8;
|
||||||
}
|
}
|
||||||
|
|
||||||
:is(.widget-prose, .widget-heading) .prose span[data-size='small'] { font-size: 0.875em; }
|
:is(.widget-prose, .widget-heading, .widget-cards) .prose span[data-size='small'] { font-size: 0.875em; }
|
||||||
:is(.widget-prose, .widget-heading) .prose span[data-size='large'] { font-size: 1.25em; }
|
:is(.widget-prose, .widget-heading, .widget-cards) .prose span[data-size='large'] { font-size: 1.25em; }
|
||||||
:is(.widget-prose, .widget-heading) .prose span[data-size='xlarge'] { font-size: 1.6em; line-height: 1.2; }
|
:is(.widget-prose, .widget-heading, .widget-cards) .prose span[data-size='xlarge'] { font-size: 1.6em; line-height: 1.2; }
|
||||||
|
|
||||||
:is(.widget-prose, .widget-heading) .prose span.color[data-color='marine'] { color: var(--tc-marine); }
|
:is(.widget-prose, .widget-heading, .widget-cards) .prose span.color[data-color='marine'] { color: var(--tc-marine); }
|
||||||
:is(.widget-prose, .widget-heading) .prose span.color[data-color='gruen'] { color: var(--tc-gruen); }
|
:is(.widget-prose, .widget-heading, .widget-cards) .prose span.color[data-color='gruen'] { color: var(--tc-gruen); }
|
||||||
:is(.widget-prose, .widget-heading) .prose span.color[data-color='rot'] { color: var(--tc-rot); }
|
:is(.widget-prose, .widget-heading, .widget-cards) .prose span.color[data-color='rot'] { color: var(--tc-rot); }
|
||||||
:is(.widget-prose, .widget-heading) .prose span.color[data-color='grau'] { color: var(--tc-grau); }
|
:is(.widget-prose, .widget-heading, .widget-cards) .prose span.color[data-color='grau'] { color: var(--tc-grau); }
|
||||||
|
|
||||||
:is(.widget-prose, .widget-heading) .prose .ta-center { text-align: center; }
|
:is(.widget-prose, .widget-heading, .widget-cards) .prose .ta-center { text-align: center; }
|
||||||
:is(.widget-prose, .widget-heading) .prose .ta-end { text-align: end; }
|
:is(.widget-prose, .widget-heading, .widget-cards) .prose .ta-end { text-align: end; }
|
||||||
|
|
||||||
/* Tabelle: Der Rahmen scrollt bei wenig Platz waagerecht und ist mit der Tastatur erreichbar. */
|
/* Tabelle: Der Rahmen scrollt bei wenig Platz waagerecht und ist mit der Tastatur erreichbar. */
|
||||||
.prose-table {
|
.prose-table {
|
||||||
@@ -188,10 +188,10 @@ .prose-table th {
|
|||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
}
|
}
|
||||||
|
|
||||||
:is(.widget-prose, .widget-heading) .prose .prose-table p { margin: 0; }
|
:is(.widget-prose, .widget-heading, .widget-cards) .prose .prose-table p { margin: 0; }
|
||||||
:is(.widget-prose, .widget-heading) .prose .prose-table p + p,
|
:is(.widget-prose, .widget-heading, .widget-cards) .prose .prose-table p + p,
|
||||||
:is(.widget-prose, .widget-heading) .prose .prose-table :is(ul, ol) { margin-top: 0.4em; }
|
:is(.widget-prose, .widget-heading, .widget-cards) .prose .prose-table :is(ul, ol) { margin-top: 0.4em; }
|
||||||
:is(.widget-prose, .widget-heading) .prose .prose-table :is(ul, ol) { margin-bottom: 0; }
|
:is(.widget-prose, .widget-heading, .widget-cards) .prose .prose-table :is(ul, ol) { margin-bottom: 0; }
|
||||||
|
|
||||||
/* ------------------------------------------------------------------------------------------------
|
/* ------------------------------------------------------------------------------------------------
|
||||||
* Redaktionelle Karten. Varianten: Raster (cards-grid), kompakte Liste (cards-compact),
|
* Redaktionelle Karten. Varianten: Raster (cards-grid), kompakte Liste (cards-compact),
|
||||||
@@ -200,7 +200,8 @@ :is(.widget-prose, .widget-heading) .prose .prose-table :is(ul, ol) { margin-bot
|
|||||||
.cards {
|
.cards {
|
||||||
--card-surface: var(--lf-cream);
|
--card-surface: var(--lf-cream);
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: repeat(auto-fill, minmax(min(15rem, 100%), 1fr));
|
/* auto-fit: Spalten ohne Karte fallen weg, die vorhandenen Karten füllen die Zeile (Verteilung „Karten vergrößern sich“). */
|
||||||
|
grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
|
||||||
gap: var(--grid-gap);
|
gap: var(--grid-gap);
|
||||||
list-style: none;
|
list-style: none;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
@@ -361,6 +362,295 @@ .cards-compact .card-media {
|
|||||||
border-radius: var(--radius-small);
|
border-radius: var(--radius-small);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Redaktionelle Karten: Dachzeile, Beschreibung, Pinselstrich, Verteilung, Trennstrich, Hervorhebung. Jede Einstellung ist
|
||||||
|
* eine Klasse an der Liste und nur gesetzt, wenn sie von der Vorgabe abweicht.
|
||||||
|
*/
|
||||||
|
.card-eyebrow {
|
||||||
|
margin: 0;
|
||||||
|
color: var(--card-eyebrow, var(--lf-green-deep));
|
||||||
|
font-size: 0.73rem;
|
||||||
|
line-height: 1.45;
|
||||||
|
font-weight: 800;
|
||||||
|
letter-spacing: 0.065em;
|
||||||
|
text-transform: uppercase;
|
||||||
|
overflow-wrap: anywhere;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Link unter dem Text (Einstellung „Link unter dem Text“): kleiner Textlink oder Pille. Er trägt den gestreckten Link über die
|
||||||
|
* ganze Karte (ein einziger Tabstopp); der Titel ist dann kein eigener Link.
|
||||||
|
*/
|
||||||
|
.card-more {
|
||||||
|
margin-block-start: var(--space-1);
|
||||||
|
}
|
||||||
|
|
||||||
|
.card-link {
|
||||||
|
font-weight: 700;
|
||||||
|
overflow-wrap: anywhere;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card-link::after {
|
||||||
|
content: '';
|
||||||
|
position: absolute;
|
||||||
|
inset: 0;
|
||||||
|
border-radius: inherit;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card-link:focus-visible {
|
||||||
|
outline: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card-link--text {
|
||||||
|
color: var(--color-link);
|
||||||
|
font-size: 0.9375rem;
|
||||||
|
text-decoration: underline;
|
||||||
|
text-underline-offset: 0.2em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card-linked:hover .card-link--text {
|
||||||
|
text-decoration-thickness: 2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card-link--pill {
|
||||||
|
display: inline-block;
|
||||||
|
padding: 0.5em 1.1em;
|
||||||
|
border-radius: var(--radius-pill);
|
||||||
|
background: var(--color-action);
|
||||||
|
color: var(--color-action-text);
|
||||||
|
font-size: 0.9375rem;
|
||||||
|
line-height: 1.25;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.card-linked:hover .card-link--pill {
|
||||||
|
background: var(--color-action-hover);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Die Fläche der Pille ist klein; der gestreckte Link behält die Rundung der Karte. */
|
||||||
|
.card-link--pill::after {
|
||||||
|
border-radius: var(--radius-card);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Die Beschreibung ist formatierter Text; die Karte selbst ist immer eine helle Fläche. */
|
||||||
|
.card-text {
|
||||||
|
min-inline-size: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Der gestreckte Titellink legt sich über die ganze Karte. Links in der Beschreibung liegen darüber, damit sie anklickbar
|
||||||
|
* bleiben (ein eigener Tabstopp, der Titel bleibt der Link der Karte).
|
||||||
|
*/
|
||||||
|
.card .prose a {
|
||||||
|
position: relative;
|
||||||
|
z-index: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Farben im Text: Die Karten sind auf hellen, dunklen und grünen Abschnitten gleichermaßen helle Flächen. Die aufgehellten
|
||||||
|
* Werte der dunklen und grünen Flächen wären dort unlesbar; deshalb gelten in der Karte die Werte der hellen Fläche. Die
|
||||||
|
* kompakte Liste und flache Karten (Trennstrich) haben keine eigene Fläche und folgen dem Abschnitt.
|
||||||
|
*/
|
||||||
|
.cards:not(.cards-compact, .cards--lines) .card .prose {
|
||||||
|
--tc-marine: var(--lf-navy);
|
||||||
|
--tc-gruen: var(--lf-green-deep);
|
||||||
|
--tc-rot: #a8212b;
|
||||||
|
--tc-grau: var(--lf-ink-muted);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Pinselstrich unter dem Titel: folgt der Ausrichtung der Karte. */
|
||||||
|
.card-body > .lf-card__brush {
|
||||||
|
margin-block: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.cards--center .lf-card__brush { margin-inline: auto; }
|
||||||
|
.cards--right .lf-card__brush { margin-inline: auto 0; }
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Ausgewogene Verteilung. Raster und hervorgehobene Variante umbrechen wie Text (Flex). Jede Zeile bekommt --cards-c Karten
|
||||||
|
* (Tabelle in lf-karten-verteilung.css, abhängig von der Zahl der Karten und der Breite des Platzes): fünf Karten stehen als
|
||||||
|
* drei und zwei, nicht als vier und eine. Die Karten wachsen und füllen die Zeile. Die Mindestbreite (15 rem, mit Symbol
|
||||||
|
* neben dem Text 18 rem) gilt immer; wird sie unterschritten, wandert die Karte in die nächste Zeile. Der kleine Abzug in der
|
||||||
|
* Basis verhindert, dass Rundungsfehler eine Karte ohne Not umbrechen; das Wachsen gleicht ihn aus.
|
||||||
|
*/
|
||||||
|
.cards-grid,
|
||||||
|
.cards-featured {
|
||||||
|
--cards-c: 1;
|
||||||
|
--cards-gap: var(--grid-gap);
|
||||||
|
--card-min: 15rem;
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
gap: var(--grid-gap) var(--cards-gap);
|
||||||
|
}
|
||||||
|
|
||||||
|
.cards-grid.cards--symbol-left,
|
||||||
|
.cards-grid.cards--symbol-right,
|
||||||
|
.cards-featured.cards--symbol-left,
|
||||||
|
.cards-featured.cards--symbol-right {
|
||||||
|
--card-min: 18rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.cards-grid .card,
|
||||||
|
.cards-featured .card:not(.card-lead) {
|
||||||
|
flex: 1 1 calc((100% - (var(--cards-c) - 1) * var(--cards-gap)) / var(--cards-c) - 0.05px);
|
||||||
|
min-inline-size: min(var(--card-min), 100%);
|
||||||
|
}
|
||||||
|
|
||||||
|
.cards-featured .card-lead {
|
||||||
|
flex: 1 1 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Verteilung „Abstände gleichen aus“: Die Karten behalten ihre Breite (höchstens 20 rem), der übrige Platz verteilt sich
|
||||||
|
* gleichmäßig zwischen und neben den Karten, auch in einer unvollständigen letzten Zeile. Mit Trennstrich bleiben die Karten
|
||||||
|
* gleich breite Spalten und nur ihr Inhalt wird begrenzt, damit die Striche in der Mitte der Lücke liegen.
|
||||||
|
*/
|
||||||
|
.cards--spaced:not(.cards--lines) {
|
||||||
|
justify-content: space-evenly;
|
||||||
|
}
|
||||||
|
|
||||||
|
.cards--spaced:not(.cards--lines) .card:not(.card-lead) {
|
||||||
|
max-inline-size: 20rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.cards--spaced.cards--lines .card:not(.card-lead) > * {
|
||||||
|
inline-size: 100%;
|
||||||
|
max-inline-size: 20rem;
|
||||||
|
margin-inline: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Listen folgen der Ausrichtung: Die Aufzählungszeichen stehen beim Text statt am Rand der Karte. */
|
||||||
|
.cards--center .card-text :is(ul, ol),
|
||||||
|
.cards--right .card-text :is(ul, ol) {
|
||||||
|
padding-inline: 0;
|
||||||
|
list-style-position: inside;
|
||||||
|
}
|
||||||
|
|
||||||
|
.cards--center .card-text li > p,
|
||||||
|
.cards--right .card-text li > p {
|
||||||
|
display: inline;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Trennstrich: flache Karten ohne Fläche; jede trägt links und oben einen Strich in der Mitte der Lücke. Die Liste schneidet
|
||||||
|
* alles außerhalb ihres Rahmens ab, so entfallen die Striche am Rand und in der ersten Zeile von selbst, egal wie viele
|
||||||
|
* Spalten die Breite zulässt (wie in der Merkmalszeile).
|
||||||
|
*/
|
||||||
|
.cards--lines {
|
||||||
|
--cards-gap: var(--space-4);
|
||||||
|
overflow: hidden;
|
||||||
|
overflow: clip;
|
||||||
|
margin: -0.375rem;
|
||||||
|
padding: 0.375rem;
|
||||||
|
row-gap: var(--space-5);
|
||||||
|
column-gap: var(--space-4);
|
||||||
|
}
|
||||||
|
|
||||||
|
.cards--lines .card {
|
||||||
|
background: transparent;
|
||||||
|
border-radius: 0;
|
||||||
|
box-shadow: none;
|
||||||
|
overflow: visible;
|
||||||
|
color: var(--color-text);
|
||||||
|
--color-text: inherit;
|
||||||
|
--color-text-muted: inherit;
|
||||||
|
--color-heading: inherit;
|
||||||
|
--color-link: inherit;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Ohne Fläche entfällt auch die gelbe Kante der Karten ohne Bild. */
|
||||||
|
.cards--lines .card:not(.card-with-image) {
|
||||||
|
box-shadow: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.cards--lines .card-media {
|
||||||
|
border-radius: var(--radius-small);
|
||||||
|
}
|
||||||
|
|
||||||
|
.cards--lines .card::before,
|
||||||
|
.cards--lines .card::after {
|
||||||
|
content: "";
|
||||||
|
position: absolute;
|
||||||
|
pointer-events: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.cards--lines .card::before {
|
||||||
|
inset-block: 0;
|
||||||
|
inset-inline-start: calc(var(--space-4) / -2);
|
||||||
|
border-inline-start: 1px solid var(--color-border);
|
||||||
|
}
|
||||||
|
|
||||||
|
.cards--lines .card::after {
|
||||||
|
inset-inline: 0;
|
||||||
|
inset-block-start: calc(var(--space-5) / -2);
|
||||||
|
border-block-start: 1px solid var(--color-border);
|
||||||
|
}
|
||||||
|
|
||||||
|
.cards--lines .card-body {
|
||||||
|
padding-inline: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.scope-dark .cards--lines { --card-eyebrow: #fff2b0; }
|
||||||
|
.scope-accent .cards--lines { --card-eyebrow: var(--lf-white); }
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Hervorhebung unter der Maus: Die Karte hebt sich leicht ab. Auch per Tastatur (Fokus in der Karte). Die Bewegung entfällt,
|
||||||
|
* wenn reduzierte Bewegung gewünscht ist; Schatten und Fläche bleiben als Zeichen.
|
||||||
|
*/
|
||||||
|
.cards--hover .card {
|
||||||
|
transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.cards--hover .card:focus-within {
|
||||||
|
transform: translateY(-4px);
|
||||||
|
box-shadow: 0 10px 28px rgb(3 37 81 / 18%);
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (hover: hover) {
|
||||||
|
.cards--hover .card:hover {
|
||||||
|
transform: translateY(-4px);
|
||||||
|
box-shadow: 0 10px 28px rgb(3 37 81 / 18%);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Die gelbe Kante der Karten ohne Bild bleibt beim Anheben erhalten. */
|
||||||
|
.cards--hover:is(.cards-grid, .cards-featured):not(.cards--lines) .card:not(.card-with-image):focus-within {
|
||||||
|
box-shadow: inset 0 5px 0 var(--lf-yellow), 0 10px 28px rgb(3 37 81 / 18%);
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (hover: hover) {
|
||||||
|
.cards--hover:is(.cards-grid, .cards-featured):not(.cards--lines) .card:not(.card-with-image):hover {
|
||||||
|
box-shadow: inset 0 5px 0 var(--lf-yellow), 0 10px 28px rgb(3 37 81 / 18%);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Karten ohne Fläche (Trennstrich, kompakte Liste): keine Anhebung, sondern eine zarte Fläche hinter dem Inhalt. */
|
||||||
|
.cards--hover:is(.cards--lines, .cards-compact) .card {
|
||||||
|
transform: none;
|
||||||
|
box-shadow: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.cards--hover:is(.cards--lines, .cards-compact) .card:focus-within {
|
||||||
|
background: color-mix(in srgb, currentColor 7%, transparent);
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (hover: hover) {
|
||||||
|
.cards--hover:is(.cards--lines, .cards-compact) .card:hover {
|
||||||
|
background: color-mix(in srgb, currentColor 7%, transparent);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (prefers-reduced-motion: reduce) {
|
||||||
|
.cards--hover .card {
|
||||||
|
transition: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.cards--hover .card:focus-within,
|
||||||
|
.cards--hover .card:hover {
|
||||||
|
transform: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* ------------------------------------------------------------------------------------------------
|
/* ------------------------------------------------------------------------------------------------
|
||||||
* Programm- und Modulkarten. Inhalte aus den Fachdaten; die Markentafel trägt die Art (Programm, Modul).
|
* Programm- und Modulkarten. Inhalte aus den Fachdaten; die Markentafel trägt die Art (Programm, Modul).
|
||||||
* Stufen: schmal gestapelt; ab 40rem Slotbreite bei einer Karte Tafel neben dem Text; Liste in „compact“.
|
* Stufen: schmal gestapelt; ab 40rem Slotbreite bei einer Karte Tafel neben dem Text; Liste in „compact“.
|
||||||
|
|||||||
@@ -581,6 +581,12 @@
|
|||||||
"w": 49.2,
|
"w": 49.2,
|
||||||
"h": 55.2
|
"h": 55.2
|
||||||
},
|
},
|
||||||
|
"zivilcourage-helfen": {
|
||||||
|
"x": 1.4,
|
||||||
|
"y": 4.4,
|
||||||
|
"w": 61.2,
|
||||||
|
"h": 54.2
|
||||||
|
},
|
||||||
"zivilcourage": {
|
"zivilcourage": {
|
||||||
"x": 7.4,
|
"x": 7.4,
|
||||||
"y": 2.4,
|
"y": 2.4,
|
||||||
|
|||||||
@@ -499,6 +499,11 @@
|
|||||||
"titel": "Zivilcourage",
|
"titel": "Zivilcourage",
|
||||||
"gruppe": 4,
|
"gruppe": 4,
|
||||||
"suche": "eingreifen mut helfen"
|
"suche": "eingreifen mut helfen"
|
||||||
|
},
|
||||||
|
"zivilcourage-helfen": {
|
||||||
|
"titel": "Zivilcourage, helfen",
|
||||||
|
"gruppe": 4,
|
||||||
|
"suche": "eingreifen unterstützen beistehen hilfe leisten"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" width="64" height="64" viewBox="0 0 64 64"><title>Zivilcourage</title><circle cx="23" cy="13" r="7" stroke="#08264D" stroke-width="3.2" fill="none"/><path d="M3 56 L7 35 Q12 22 22 22 Q28 22 33 29 L42 35 Q45 39 41 40 L29 34 L18 44 L20 56 M18 44 L15 57" stroke="#08264D" stroke-width="3.2" fill="none" stroke-linecap="round" stroke-linejoin="round"/><circle cx="52" cy="33" r="6" stroke="#397D0D" stroke-width="3.2" fill="none"/><path d="M37 57 L40 46 Q45 41 52 42 Q60 45 61 57 M40 46 Q34 40 30 39" stroke="#397D0D" stroke-width="3.2" fill="none" stroke-linecap="round" stroke-linejoin="round"/><path d="M43 14 L45 8 M49 19 L54 14" stroke="#FFCD00" stroke-width="3.2" fill="none" stroke-linecap="round" stroke-linejoin="round"/></svg>
|
||||||
|
After Width: | Height: | Size: 773 B |
@@ -28,7 +28,9 @@
|
|||||||
},
|
},
|
||||||
zeichnung(key) {
|
zeichnung(key) {
|
||||||
if (!key) { return ''; }
|
if (!key) { return ''; }
|
||||||
return this.eintrag(key)?.svg ?? (key === this.$root.dataset.startKey ? this.$refs.start.innerHTML : '');
|
// Beim Einfügen einer Kopie (Karte duplizieren) wird dieser Ausdruck ausgewertet, bevor die Vorlage als Referenz
|
||||||
|
// bereitsteht; deshalb notfalls die Vorlage direkt suchen statt auf $refs.start zuzugreifen.
|
||||||
|
return this.eintrag(key)?.svg ?? (key === this.$root.dataset.startKey ? (this.$refs.start ?? this.$root.querySelector('template'))?.innerHTML ?? '' : '');
|
||||||
},
|
},
|
||||||
titel(key) {
|
titel(key) {
|
||||||
if (!key) { return ''; }
|
if (!key) { return ''; }
|
||||||
|
|||||||
@@ -1,8 +1,9 @@
|
|||||||
{{--
|
{{--
|
||||||
Redaktionelle Karten. Varianten: standard (Raster), compact (Liste), featured (erste Karte hervorgehoben).
|
Redaktionelle Karten. Varianten: standard (Raster), compact (Liste), featured (erste Karte hervorgehoben).
|
||||||
Die ganze Karte ist über den Titellink klickbar (gestreckter Link); Bilder sind dekorativ. Ein Symbol steht über dem
|
Die ganze Karte ist über den Titellink klickbar (gestreckter Link) oder, wenn die Einstellung „Link unter dem Text“ gewählt ist, über diesen Link (dann ist der Titel kein eigener Link); Bilder sind dekorativ. Ein Symbol steht über dem
|
||||||
Titel (Zierde, aria-hidden). Ausrichtung und Symbolgröße kommen nur dann als Klasse an die Liste, wenn sie von der
|
Titel oder links bzw. rechts neben dem Text (Zierde, aria-hidden). Die Dachzeile steht über dem Titel, die Beschreibung
|
||||||
Vorgabe (links, mittel) abweichen; so bleibt die Ausgabe bestehender Seiten unverändert.
|
ist formatierter Text (ProseWidget::render). Alle Einstellungen kommen nur dann als Klasse an die Liste, wenn sie von der
|
||||||
|
Vorgabe abweichen; so bleibt die Ausgabe bestehender Seiten unverändert (CardsWidget::layout).
|
||||||
--}}
|
--}}
|
||||||
@php
|
@php
|
||||||
$variant = in_array($variant, ['standard', 'compact', 'featured'], true) ? $variant : 'standard';
|
$variant = in_array($variant, ['standard', 'compact', 'featured'], true) ? $variant : 'standard';
|
||||||
@@ -13,8 +14,14 @@
|
|||||||
'cards-'.($variant === 'standard' ? 'grid' : $variant),
|
'cards-'.($variant === 'standard' ? 'grid' : $variant),
|
||||||
'cards--'.$layout['align'] => $layout['align'] !== 'left',
|
'cards--'.$layout['align'] => $layout['align'] !== 'left',
|
||||||
'cards--size-'.$layout['size'] => $layout['size'] !== 'medium',
|
'cards--size-'.$layout['size'] => $layout['size'] !== 'medium',
|
||||||
|
'cards--symbol-'.$layout['position'] => $layout['position'] !== 'top',
|
||||||
|
'cards--symbol-v-'.$layout['valign'] => $layout['position'] !== 'top' && $layout['valign'] !== 'top',
|
||||||
|
'cards--spaced' => $layout['distribution'] === 'space',
|
||||||
|
'cards--lines' => $layout['divider'] && $variant !== 'compact',
|
||||||
|
'cards--hover' => $layout['hover'],
|
||||||
])>
|
])>
|
||||||
@foreach ($items as $item)
|
@foreach ($items as $item)
|
||||||
|
@php $side = $layout['position'] !== 'top' && $item['symbol'] !== null; @endphp
|
||||||
<li @class([
|
<li @class([
|
||||||
'card',
|
'card',
|
||||||
'card-with-image' => $item['imageUrl'],
|
'card-with-image' => $item['imageUrl'],
|
||||||
@@ -27,18 +34,36 @@
|
|||||||
</div>
|
</div>
|
||||||
@endif
|
@endif
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
@if ($item['symbol'] !== null)
|
@if ($item['symbol'] !== null && ! $side)
|
||||||
<x-brand.symbol :name="$item['symbol']" class="lf-card__symbol" preserveAspectRatio="xMinYMin meet" />
|
<x-brand.symbol :name="$item['symbol']" class="lf-card__symbol" preserveAspectRatio="xMinYMin meet" />
|
||||||
@endif
|
@endif
|
||||||
|
@if ($side)
|
||||||
|
<div class="card-row">
|
||||||
|
<x-brand.symbol :name="$item['symbol']" class="lf-card__symbol" preserveAspectRatio="xMinYMin meet" />
|
||||||
|
<div class="card-main">
|
||||||
|
@endif
|
||||||
|
@if ($item['eyebrow'] !== null)
|
||||||
|
<p class="card-eyebrow">{{ $item['eyebrow'] }}</p>
|
||||||
|
@endif
|
||||||
<h3 class="card-title">
|
<h3 class="card-title">
|
||||||
@if ($item['url'])
|
@if ($item['url'] && $layout['link'] === null)
|
||||||
<a href="{{ $item['url'] }}">{{ $item['title'] }}</a>
|
<a href="{{ $item['url'] }}">{{ $item['title'] }}</a>
|
||||||
@else
|
@else
|
||||||
{{ $item['title'] }}
|
{{ $item['title'] }}
|
||||||
@endif
|
@endif
|
||||||
</h3>
|
</h3>
|
||||||
@if (filled($item['text']))
|
@if ($layout['brush'])
|
||||||
<p>{{ $item['text'] }}</p>
|
<x-brand.symbol name="gelbe-unterstreichung" class="lf-heading-brush lf-card__brush" />
|
||||||
|
@endif
|
||||||
|
@if (filled($item['textHtml']))
|
||||||
|
<div class="prose card-text">{!! $item['textHtml'] !!}</div>
|
||||||
|
@endif
|
||||||
|
@if ($layout['link'] !== null && $item['url'])
|
||||||
|
<p class="card-more"><a class="card-link card-link--{{ $layout['link'] }}" href="{{ $item['url'] }}" aria-label="{{ $item['linkLabel'] }}: {{ $item['title'] }}">{{ $item['linkLabel'] }}</a></p>
|
||||||
|
@endif
|
||||||
|
@if ($side)
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
@endif
|
@endif
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
|
|||||||
@@ -0,0 +1,97 @@
|
|||||||
|
"""Erzeugt resources/css/components/lf-karten-verteilung.css: die ausgewogene Verteilung der redaktionellen Karten.
|
||||||
|
|
||||||
|
Die Karten umbrechen wie Text (Flex). Damit die Zeilen ausgewogen sind (fünf Karten als 3 + 2 statt 4 + 1), braucht jede
|
||||||
|
Zeile eine feste Zahl Karten. Sie hängt von der Zahl der Karten n und davon ab, wie viele Karten mit ihrer Mindestbreite
|
||||||
|
nebeneinander passen (m, abhängig von der Breite des Platzes, Container „slot“):
|
||||||
|
|
||||||
|
Zeilen = aufrunden(n / m); die Zeilen unterscheiden sich um höchstens eine Karte (zehn Karten bei m = 4: 4 + 3 + 3)
|
||||||
|
|
||||||
|
Die Zahl der Karten liest das Stylesheet aus der Liste selbst (:has(> .card:nth-child(n))), das Markup bleibt unverändert.
|
||||||
|
Mindestbreite: 15 rem, mit Symbol neben dem Text (Klassen cards--symbol-left/-right) 18 rem. Die Schwellen rechnen mit dem
|
||||||
|
größten Abstand zwischen den Karten (1,75 rem); ist er kleiner, werden die Karten eher breiter als zu schmal. Bis zu zwölf
|
||||||
|
Karten; bei der hervorgehobenen Variante zählt die erste Karte (sie füllt eine eigene Zeile) nicht mit.
|
||||||
|
Aufruf (Repository-Wurzel): python scripts/cards-balance-css.py
|
||||||
|
Ein Test (CmsEditorialCardsTest) prüft, dass die Datei zu dieser Formel passt.
|
||||||
|
"""
|
||||||
|
|
||||||
|
import math
|
||||||
|
import pathlib
|
||||||
|
|
||||||
|
GAP = 1.75
|
||||||
|
MAX_CARDS = 12
|
||||||
|
MAX_COLUMNS = 6
|
||||||
|
TARGET = pathlib.Path(__file__).resolve().parent.parent / "resources" / "css" / "components" / "lf-karten-verteilung.css"
|
||||||
|
|
||||||
|
# (Auswahl der Liste, Mindestbreite in rem, hervorgehoben)
|
||||||
|
SETS = [
|
||||||
|
(".cards:not(.cards-featured)", 15.0, False),
|
||||||
|
(".cards:not(.cards-featured):is(.cards--symbol-left, .cards--symbol-right)", 18.0, False),
|
||||||
|
(".cards.cards-featured", 15.0, True),
|
||||||
|
(".cards.cards-featured:is(.cards--symbol-left, .cards--symbol-right)", 18.0, True),
|
||||||
|
]
|
||||||
|
|
||||||
|
|
||||||
|
def columns_that_fit(width: float, minimum: float) -> int:
|
||||||
|
return max(1, min(MAX_COLUMNS, int((width + GAP) // (minimum + GAP))))
|
||||||
|
|
||||||
|
|
||||||
|
def layout(n: int, m: int) -> tuple[int, int, int]:
|
||||||
|
"""Karten je Zeile (große, kleine Zeilen) und die Zahl der Karten in den großen Zeilen."""
|
||||||
|
rows = math.ceil(n / m)
|
||||||
|
base, extra = divmod(n, rows)
|
||||||
|
return (base + 1, base, extra * (base + 1)) if extra else (base, base, 0)
|
||||||
|
|
||||||
|
|
||||||
|
def fmt(value: float) -> str:
|
||||||
|
return f"{value:g}"
|
||||||
|
|
||||||
|
|
||||||
|
def exactly(selector: str, children: int) -> str:
|
||||||
|
return f"{selector}:has(> .card:nth-child({children})):not(:has(> .card:nth-child({children + 1})))"
|
||||||
|
|
||||||
|
|
||||||
|
def main() -> None:
|
||||||
|
thresholds = sorted({round(k * (minimum + GAP) - GAP, 2) for _, minimum, _ in SETS for k in range(2, MAX_COLUMNS + 1)})
|
||||||
|
out = [
|
||||||
|
"/*",
|
||||||
|
" * Ausgewogene Verteilung der redaktionellen Karten (ERZEUGT mit scripts/cards-balance-css.py, nicht von Hand ändern).",
|
||||||
|
" * --cards-c ist je Karte die Zahl der Karten in ihrer Zeile, abhängig von der Zahl der Karten und der Breite des Platzes.",
|
||||||
|
" * Zeilen = aufrunden(n / m); die Zeilen unterscheiden sich um höchstens eine Karte (zehn Karten bei m = 4: 4 + 3 + 3).",
|
||||||
|
" * m = Karten, die mit Mindestbreite nebeneinander",
|
||||||
|
" * passen (15 rem, mit Symbol neben dem Text 18 rem). Bis zu zwölf Karten; bei der hervorgehobenen Variante zählt die",
|
||||||
|
" * erste Karte nicht mit.",
|
||||||
|
" */",
|
||||||
|
]
|
||||||
|
for selector, minimum, featured in SETS:
|
||||||
|
side = "cards--symbol" in selector
|
||||||
|
points = [0.0] + thresholds
|
||||||
|
previous: dict[int, int] = {}
|
||||||
|
for width in points:
|
||||||
|
m = columns_that_fit(width, minimum)
|
||||||
|
current = {n: layout(n, m) for n in range(2, MAX_CARDS + 1)}
|
||||||
|
# Ein schmaleres Raster (Symbol neben dem Text) hat höhere Spezifität und braucht an jeder Schwelle die volle
|
||||||
|
# Tabelle; die Grundtabelle nennt nur, was sich gegenüber der vorigen Schwelle ändert.
|
||||||
|
changed = current if side else {n: c for n, c in current.items() if previous.get(n, (1, 1, 0)) != c}
|
||||||
|
rules = []
|
||||||
|
for n, (big, small, first) in sorted(changed.items()):
|
||||||
|
shift = 1 if featured else 0
|
||||||
|
condition = exactly(selector, n + shift)
|
||||||
|
# Beide Regeln haben dieselbe Spezifität, damit spätere Schwellen die früheren ganz ersetzen.
|
||||||
|
rules.append(f"{condition} > .card:nth-child(n+1) {{ --cards-c: {big}; }}")
|
||||||
|
# Karten ab der ersten kleinen Zeile; ohne kleine Zeilen ist der Wert derselbe wie in der Grundregel.
|
||||||
|
rules.append(f"{condition} > .card:nth-child(n+{first + 1 + shift}) {{ --cards-c: {small}; }}")
|
||||||
|
if rules:
|
||||||
|
if width > 0:
|
||||||
|
out.append(f"@container slot (min-width: {fmt(width)}rem) {{")
|
||||||
|
out.extend(" " + r for r in rules)
|
||||||
|
out.append("}")
|
||||||
|
else:
|
||||||
|
out.extend(rules)
|
||||||
|
previous = current
|
||||||
|
out.append("")
|
||||||
|
TARGET.write_text("\n".join(out), encoding="utf-8", newline="\n")
|
||||||
|
print(TARGET, len(out), "Zeilen")
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
main()
|
||||||
@@ -0,0 +1,326 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Tests\Feature;
|
||||||
|
|
||||||
|
use App\Domain\Cms\Page;
|
||||||
|
use App\Domain\Cms\PageService;
|
||||||
|
use App\Domain\Cms\Widgets\Types\CardsWidget;
|
||||||
|
use App\Domain\Cms\Widgets\WidgetErrors;
|
||||||
|
use App\Domain\Cms\Widgets\WidgetRegistry;
|
||||||
|
use Filament\Forms\Components\Repeater;
|
||||||
|
use Filament\Forms\Components\RichEditor;
|
||||||
|
use Illuminate\Foundation\Testing\RefreshDatabase;
|
||||||
|
use Illuminate\Validation\ValidationException;
|
||||||
|
use Tests\TestCase;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Redaktionelle Karten, Version 2: Beschreibung als formatierter Text, Dachzeile, Verteilung, Lage und senkrechte Ausrichtung
|
||||||
|
* des Symbols, Pinselstrich, Trennstrich und Hervorhebung. Die bisherigen Einstellungen und die Ausgabe ohne neue
|
||||||
|
* Einstellungen bleiben unverändert.
|
||||||
|
*/
|
||||||
|
class CmsEditorialCardsTest extends TestCase
|
||||||
|
{
|
||||||
|
use RefreshDatabase;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param array<string, mixed> $data
|
||||||
|
* @param array<string, mixed> $settings
|
||||||
|
*/
|
||||||
|
private function publish(string $path, array $data, array $settings = [], string $variant = 'standard', int $version = 2): string
|
||||||
|
{
|
||||||
|
$page = Page::query()->create(['path' => $path]);
|
||||||
|
$service = app(PageService::class);
|
||||||
|
$sections = [['layout' => 'u4', 'style' => [], 'slots' => [['type' => 'cards', 'v' => $version, 'variant' => $variant, 'settings' => $settings, 'data' => $data]]]];
|
||||||
|
$service->publish($page, $service->saveRevision($page, $sections, null, null, null));
|
||||||
|
|
||||||
|
return $this->get($path)->assertOk()->getContent();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return array<string, mixed>
|
||||||
|
*/
|
||||||
|
private function card(array $extra = []): array
|
||||||
|
{
|
||||||
|
return ['items' => [['title' => 'Karte', 'url' => '/a'] + $extra]];
|
||||||
|
}
|
||||||
|
|
||||||
|
public function test_version_one_texts_are_lifted_to_formatted_text_with_paragraphs_and_line_breaks(): void
|
||||||
|
{
|
||||||
|
$widget = app(WidgetRegistry::class)->upcast(['type' => 'cards', 'v' => 1, 'variant' => 'standard', 'data' => ['items' => [
|
||||||
|
['title' => 'Eins', 'text' => "Erste Zeile\nzweite Zeile\n\nNeuer Absatz & <b>nicht fett</b>"],
|
||||||
|
['title' => 'Zwei', 'text' => null],
|
||||||
|
['title' => 'Drei'],
|
||||||
|
]]]);
|
||||||
|
|
||||||
|
$this->assertSame(2, $widget['v']);
|
||||||
|
$this->assertSame('<p>Erste Zeile<br>zweite Zeile</p><p>Neuer Absatz & <b>nicht fett</b></p>', $widget['data']['items'][0]['text']);
|
||||||
|
$this->assertNull($widget['data']['items'][1]['text']);
|
||||||
|
$this->assertArrayNotHasKey('text', $widget['data']['items'][2]);
|
||||||
|
}
|
||||||
|
|
||||||
|
public function test_the_description_is_rendered_as_formatted_text_and_empty_ones_are_dropped(): void
|
||||||
|
{
|
||||||
|
$html = $this->publish('/karten-text', ['items' => [
|
||||||
|
['title' => 'Mit Text', 'text' => '<p>Ein <strong>fetter</strong> Satz.</p><p style="text-align: center">Mitte</p><ul><li>Punkt</li></ul>'],
|
||||||
|
['title' => 'Leer', 'text' => '<p></p>'],
|
||||||
|
]]);
|
||||||
|
|
||||||
|
$this->assertStringContainsString('<div class="prose card-text"><p>Ein <strong>fetter</strong> Satz.</p><p class="ta-center">Mitte</p><ul><li><p>Punkt</p></li></ul></div>', $html);
|
||||||
|
$this->assertSame(1, substr_count($html, 'card-text'), 'Eine leere Beschreibung erzeugt keinen Block.');
|
||||||
|
}
|
||||||
|
|
||||||
|
public function test_the_description_field_is_the_website_editor_and_the_eyebrow_a_short_text_field(): void
|
||||||
|
{
|
||||||
|
$fields = app(WidgetRegistry::class)->get('cards')->dataFields();
|
||||||
|
$repeater = $fields[0];
|
||||||
|
$this->assertInstanceOf(Repeater::class, $repeater);
|
||||||
|
|
||||||
|
$children = collect($repeater->getDefaultChildComponents())->keyBy(fn ($field) => $field->getName());
|
||||||
|
$this->assertInstanceOf(RichEditor::class, $children['text']);
|
||||||
|
$this->assertSame(['eyebrow', 'title', 'symbol', 'text', 'url'], $children->keys()->take(5)->all());
|
||||||
|
}
|
||||||
|
|
||||||
|
public function test_the_eyebrow_stands_above_the_title_and_is_only_stored_when_filled(): void
|
||||||
|
{
|
||||||
|
$html = $this->publish('/karten-dachzeile', ['items' => [
|
||||||
|
['title' => 'Mit', 'eyebrow' => ' Thema ', 'url' => '/a'],
|
||||||
|
['title' => 'Ohne', 'eyebrow' => ' ', 'url' => '/b'],
|
||||||
|
]]);
|
||||||
|
|
||||||
|
$this->assertMatchesRegularExpression('~<p class="card-eyebrow">Thema</p>\s*<h3 class="card-title">\s*<a href="/a">Mit</a>~', $html);
|
||||||
|
$this->assertSame(1, substr_count($html, 'card-eyebrow'));
|
||||||
|
|
||||||
|
[$clean] = app(WidgetRegistry::class)->get('cards')->clean(['items' => [['title' => 'Ohne', 'eyebrow' => '', 'text' => '', 'url' => '']]], [], new WidgetErrors);
|
||||||
|
$this->assertSame(['title' => 'Ohne', 'text' => null, 'url' => null, 'image' => null], $clean['items'][0]);
|
||||||
|
}
|
||||||
|
|
||||||
|
public function test_without_new_settings_the_list_markup_is_unchanged(): void
|
||||||
|
{
|
||||||
|
$html = $this->publish('/karten-vorgabe', $this->card(['text' => '<p>Text</p>', 'symbol' => 'buch']));
|
||||||
|
|
||||||
|
$this->assertStringContainsString('<ul class="cards cards-grid">', $html);
|
||||||
|
$this->assertStringNotContainsString('card-row', $html);
|
||||||
|
$this->assertStringNotContainsString('card-eyebrow', $html);
|
||||||
|
$this->assertStringNotContainsString('lf-card__brush', $html);
|
||||||
|
$this->assertMatchesRegularExpression('~<div class="card-body">\s*<svg[^>]*class="brand-symbol lf-card__symbol"~s', $html);
|
||||||
|
}
|
||||||
|
|
||||||
|
public function test_each_new_setting_adds_its_class_only_when_it_deviates_from_the_default(): void
|
||||||
|
{
|
||||||
|
$cases = [
|
||||||
|
['distribution' => 'space', 'cards--spaced'],
|
||||||
|
['distribution' => 'grow', null],
|
||||||
|
['divider' => 'line', 'cards--lines'],
|
||||||
|
['hover' => 'lift', 'cards--hover'],
|
||||||
|
['symbol_position' => 'left', 'cards--symbol-left'],
|
||||||
|
['symbol_position' => 'right', 'cards--symbol-right'],
|
||||||
|
['symbol_position' => 'top', null],
|
||||||
|
];
|
||||||
|
|
||||||
|
foreach ($cases as $index => $case) {
|
||||||
|
$class = array_pop($case);
|
||||||
|
$html = $this->publish('/karten-einstellung-'.$index, $this->card(['symbol' => 'buch']), $case);
|
||||||
|
|
||||||
|
if ($class === null) {
|
||||||
|
$this->assertStringContainsString('<ul class="cards cards-grid">', $html, json_encode($case));
|
||||||
|
} else {
|
||||||
|
$this->assertStringContainsString($class, $html, json_encode($case));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public function test_the_symbol_beside_the_text_wraps_symbol_and_text_in_a_row_and_aligns_vertically(): void
|
||||||
|
{
|
||||||
|
$items = ['items' => [
|
||||||
|
['title' => 'Mit', 'eyebrow' => 'Thema', 'text' => '<p>Text</p>', 'symbol' => 'buch', 'url' => '/a'],
|
||||||
|
['title' => 'Ohne', 'url' => '/b'],
|
||||||
|
]];
|
||||||
|
|
||||||
|
$html = $this->publish('/karten-links', $items, ['symbol_position' => 'left', 'symbol_align' => 'center']);
|
||||||
|
$this->assertStringContainsString('<ul class="cards cards-grid cards--symbol-left cards--symbol-v-center">', $html);
|
||||||
|
$this->assertSame(1, substr_count($html, 'card-row'), 'Nur die Karte mit Symbol hat eine Zeile.');
|
||||||
|
$this->assertMatchesRegularExpression('~<div class="card-row">\s*<svg[^>]*lf-card__symbol[^>]*>.*?</svg>\s*<div class="card-main">\s*<p class="card-eyebrow">Thema</p>\s*<h3 class="card-title">.*?<div class="prose card-text"><p>Text</p></div>\s*</div>\s*</div>\s*</div>\s*</li>~s', $html);
|
||||||
|
|
||||||
|
$unaligned = $this->publish('/karten-links-oben', $items, ['symbol_position' => 'right']);
|
||||||
|
$this->assertStringContainsString('<ul class="cards cards-grid cards--symbol-right">', $unaligned, 'Oben ist die Vorgabe und braucht keine Klasse.');
|
||||||
|
|
||||||
|
$above = $this->publish('/karten-oben-mittig', $items, ['symbol_align' => 'center']);
|
||||||
|
$this->assertStringNotContainsString('symbol-v-', $above, 'Die senkrechte Lage wirkt nur neben dem Text.');
|
||||||
|
}
|
||||||
|
|
||||||
|
public function test_a_visible_link_below_the_text_replaces_the_title_link_as_the_card_link(): void
|
||||||
|
{
|
||||||
|
$data = ['items' => [
|
||||||
|
['title' => 'Mit Link', 'text' => '<p>Text</p>', 'url' => '/a', 'link_label' => 'Zum Angebot'],
|
||||||
|
['title' => 'Standardtext', 'url' => '/b'],
|
||||||
|
['title' => 'Ohne Ziel', 'link_label' => 'Verwaist'],
|
||||||
|
]];
|
||||||
|
|
||||||
|
$text = $this->publish('/karten-link-text', $data, ['link_style' => 'text']);
|
||||||
|
$this->assertStringContainsString('<p class="card-more"><a class="card-link card-link--text" href="/a" aria-label="Zum Angebot: Mit Link">Zum Angebot</a></p>', $text);
|
||||||
|
$this->assertStringContainsString('aria-label="Mehr erfahren: Standardtext">Mehr erfahren</a>', $text);
|
||||||
|
$this->assertSame(2, substr_count($text, 'card-more'), 'Eine Karte ohne Linkziel zeigt keinen Link.');
|
||||||
|
$this->assertStringNotContainsString('Verwaist', $text, 'Ein Linktext ohne Linkziel wird verworfen.');
|
||||||
|
$this->assertDoesNotMatchRegularExpression('~<h3 class="card-title">\s*<a~', $text, 'Der Titel ist dann kein eigener Link.');
|
||||||
|
|
||||||
|
$this->assertStringContainsString('card-link card-link--pill', $this->publish('/karten-link-pille', $data, ['link_style' => 'pill']));
|
||||||
|
|
||||||
|
$without = $this->publish('/karten-link-ohne', $data);
|
||||||
|
$this->assertStringNotContainsString('card-more', $without);
|
||||||
|
$this->assertMatchesRegularExpression('~<h3 class="card-title">\s*<a href="/a">Mit Link</a>~', $without, 'Ohne Einstellung bleibt der Titel der Link der Karte.');
|
||||||
|
}
|
||||||
|
|
||||||
|
public function test_the_brush_stands_under_each_title(): void
|
||||||
|
{
|
||||||
|
$html = $this->publish('/karten-pinsel', ['items' => [['title' => 'Eins', 'url' => '/a'], ['title' => 'Zwei', 'url' => '/b']]], ['accent' => 'brush']);
|
||||||
|
|
||||||
|
$this->assertSame(2, substr_count($html, 'lf-card__brush'));
|
||||||
|
$this->assertMatchesRegularExpression('~</h3>\s*<svg[^>]*lf-heading-brush lf-card__brush~', $html);
|
||||||
|
}
|
||||||
|
|
||||||
|
public function test_the_divider_is_not_offered_to_the_compact_list(): void
|
||||||
|
{
|
||||||
|
$data = ['items' => [['title' => 'Eins'], ['title' => 'Zwei']]];
|
||||||
|
|
||||||
|
$this->assertStringContainsString('cards--lines', $this->publish('/karten-linien', $data, ['divider' => 'line']));
|
||||||
|
$this->assertStringNotContainsString('cards--lines', $this->publish('/karten-linien-liste', $data, ['divider' => 'line'], 'compact'));
|
||||||
|
}
|
||||||
|
|
||||||
|
public function test_the_layout_ignores_invalid_values(): void
|
||||||
|
{
|
||||||
|
$layout = CardsWidget::layout(['distribution' => 'wild', 'symbol_position' => 'oben', 'symbol_align' => 'mitte', 'divider' => 'dick', 'hover' => 'zoom', 'accent' => 'bunt', 'link_style' => 'knopf']);
|
||||||
|
|
||||||
|
$this->assertSame(['align' => 'left', 'size' => 'medium', 'position' => 'top', 'valign' => 'top', 'distribution' => 'grow', 'divider' => false, 'brush' => false, 'hover' => false, 'link' => null], $layout);
|
||||||
|
}
|
||||||
|
|
||||||
|
public function test_unknown_values_are_rejected_when_saving(): void
|
||||||
|
{
|
||||||
|
foreach ([['distribution' => 'wild'], ['symbol_position' => 'unten'], ['symbol_align' => 'mitte'], ['hover' => 'zoom'], ['link_style' => 'knopf']] as $index => $settings) {
|
||||||
|
try {
|
||||||
|
$this->publish('/karten-falsch-'.$index, $this->card(), $settings);
|
||||||
|
$this->fail("Fall $index wurde angenommen.");
|
||||||
|
} catch (ValidationException $exception) {
|
||||||
|
$this->assertNotEmpty($exception->errors(), "Fall $index");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public function test_the_stylesheet_keeps_links_clickable_and_colors_readable_on_light_cards(): void
|
||||||
|
{
|
||||||
|
$css = (string) file_get_contents(resource_path('css/widgets.css'));
|
||||||
|
|
||||||
|
// Der gestreckte Titellink legt sich über die Karte; Links in der Beschreibung müssen darüber liegen.
|
||||||
|
$this->assertMatchesRegularExpression('/\.card \.prose a \{\s*position: relative;\s*z-index: 1;/', $css);
|
||||||
|
// Die Karte bleibt auf dunklen und grünen Abschnitten hell; die aufgehellten Textfarben dürfen dort nicht gelten.
|
||||||
|
$this->assertMatchesRegularExpression('/\.cards:not\(\.cards-compact, \.cards--lines\) \.card \.prose \{\s*--tc-marine: var\(--lf-navy\);/', $css);
|
||||||
|
// Beide Verteilungen behalten gleich breite Spalten, damit die Trennstriche in der Mitte der Lücke liegen.
|
||||||
|
$this->assertStringNotContainsString('justify-content: space-between', substr($css, (int) strpos($css, 'Redaktionelle Karten: Dachzeile')));
|
||||||
|
$this->assertStringContainsString(':is(.widget-prose, .widget-heading, .widget-cards) .prose p', $css);
|
||||||
|
$this->assertStringContainsString('prefers-reduced-motion', substr($css, (int) strpos($css, '.cards--hover .card {')));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Wertet die erzeugte Tabelle (lf-karten-verteilung.css) wie der Browser aus: je Zahl der Karten, Breite des Platzes (rem)
|
||||||
|
* und Karte die Zahl der Karten in ihrer Zeile. Spätere Regeln gewinnen bei gleicher Spezifität; die Tabelle für Symbole
|
||||||
|
* neben dem Text hat die höhere.
|
||||||
|
*
|
||||||
|
* @return array<int, int> Karte (1-basiert, ohne die hervorgehobene erste) => Karten in ihrer Zeile
|
||||||
|
*/
|
||||||
|
private function rowSizes(string $css, int $cards, float $width, bool $side, bool $featured): array
|
||||||
|
{
|
||||||
|
$current = [];
|
||||||
|
$threshold = 0.0;
|
||||||
|
|
||||||
|
foreach (preg_split('/\R/', $css) as $line) {
|
||||||
|
if (preg_match('/^@container slot \(min-width: ([\d.]+)rem\)/', $line, $match)) {
|
||||||
|
$threshold = (float) $match[1];
|
||||||
|
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (str_starts_with($line, '}')) {
|
||||||
|
$threshold = 0.0;
|
||||||
|
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (! preg_match('/^\s*(\.cards[^{]*?) > \.card:nth-child\(n\+(\d+)\) \{ --cards-c: (\d+); \}$/', $line, $match) || $threshold > $width) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
[, $selector, $from, $value] = $match;
|
||||||
|
$isSide = str_contains($selector, 'cards--symbol-left');
|
||||||
|
$isFeatured = str_contains($selector, '.cards.cards-featured');
|
||||||
|
|
||||||
|
if ($isFeatured !== $featured || ($isSide && ! $side) || ! str_contains($selector, ':nth-child('.($cards + ($featured ? 1 : 0)).')):not(')) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
for ($child = (int) $from; $child <= $cards + ($featured ? 1 : 0); $child++) {
|
||||||
|
$card = $child - ($featured ? 1 : 0);
|
||||||
|
if ($card >= 1 && (($current[$card]['side'] ?? false) <= $isSide)) {
|
||||||
|
$current[$card] = ['side' => $isSide, 'value' => (int) $value];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return array_map(fn (array $entry): int => $entry['value'], $current);
|
||||||
|
}
|
||||||
|
|
||||||
|
public function test_the_balance_table_gives_even_rows_for_one_to_twelve_cards_at_every_width(): void
|
||||||
|
{
|
||||||
|
$css = (string) file_get_contents(resource_path('css/components/lf-karten-verteilung.css'));
|
||||||
|
|
||||||
|
foreach ([false, true] as $featured) {
|
||||||
|
foreach ([false, true] as $side) {
|
||||||
|
$minimum = $side ? 18.0 : 15.0;
|
||||||
|
|
||||||
|
foreach ([20.0, 31.75, 36.0, 40.0, 48.5, 57.5, 65.25, 70.0, 77.25, 82.0, 98.75, 120.0] as $width) {
|
||||||
|
$columns = max(1, min(6, (int) floor(($width + 1.75) / ($minimum + 1.75))));
|
||||||
|
|
||||||
|
foreach (range(2, 12) as $cards) {
|
||||||
|
$rows = (int) ceil($cards / $columns);
|
||||||
|
$base = intdiv($cards, $rows);
|
||||||
|
$extra = $cards % $rows;
|
||||||
|
$expected = array_merge(array_fill(0, $extra * ($base + 1), $base + 1), array_fill(0, $cards - $extra * ($base + 1), $base));
|
||||||
|
|
||||||
|
$sizes = $this->rowSizes($css, $cards, $width, $side, $featured);
|
||||||
|
// Fehlende Karten: keine Regel gilt, also eine Karte je Zeile (Vorgabe --cards-c: 1).
|
||||||
|
$actual = array_map(fn (int $card): int => $sizes[$card] ?? 1, range(1, $cards));
|
||||||
|
|
||||||
|
$this->assertSame(array_values($expected), $actual, sprintf('%d Karten, Platz %srem, Symbol neben dem Text: %s, hervorgehoben: %s', $cards, $width, $side ? 'ja' : 'nein', $featured ? 'ja' : 'nein'));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public function test_the_cards_wrap_at_the_minimum_width_and_stay_in_flex_rows(): void
|
||||||
|
{
|
||||||
|
$css = (string) file_get_contents(resource_path('css/widgets.css'));
|
||||||
|
|
||||||
|
$this->assertStringContainsString('min-inline-size: min(var(--card-min), 100%);', $css);
|
||||||
|
$this->assertStringContainsString('--card-min: 15rem;', $css);
|
||||||
|
$this->assertStringContainsString('--card-min: 18rem;', $css);
|
||||||
|
$this->assertMatchesRegularExpression('/\.cards-grid,\s*\.cards-featured \{[^}]*display: flex;[^}]*flex-wrap: wrap;/s', $css);
|
||||||
|
$this->assertStringContainsString("@import './components/lf-karten-verteilung.css';", (string) file_get_contents(resource_path('css/app.css')));
|
||||||
|
}
|
||||||
|
|
||||||
|
public function test_the_symbol_field_survives_duplicating_a_card(): void
|
||||||
|
{
|
||||||
|
// Beim Duplizieren wertet das Feld die Vorschau aus, bevor die Vorlage als Referenz bereitsteht (Skriptfehler
|
||||||
|
// „Cannot read properties of undefined (reading 'innerHTML')“). Der Zugriff darf deshalb nicht auf $refs.start allein beruhen.
|
||||||
|
$view = (string) file_get_contents(resource_path('views/filament/cms/symbol-feld.blade.php'));
|
||||||
|
|
||||||
|
$this->assertStringNotContainsString('this.$refs.start.innerHTML', $view);
|
||||||
|
$this->assertStringContainsString("this.\$root.querySelector('template')", $view);
|
||||||
|
}
|
||||||
|
|
||||||
|
public function test_the_summary_and_media_paths_are_unchanged(): void
|
||||||
|
{
|
||||||
|
$type = app(WidgetRegistry::class)->get('cards');
|
||||||
|
|
||||||
|
$this->assertSame('2 Karten: Eins, Zwei', $type->summary(['data' => ['items' => [['title' => 'Eins'], ['title' => 'Zwei']]]]));
|
||||||
|
$this->assertSame(2, $type->version());
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -109,7 +109,7 @@ public function test_the_stylesheet_formats_the_intro_like_the_prose_widget(): v
|
|||||||
$css = (string) file_get_contents(resource_path('css/widgets.css'));
|
$css = (string) file_get_contents(resource_path('css/widgets.css'));
|
||||||
|
|
||||||
foreach (["span[data-size='xlarge']", "span.color[data-color='gruen']", '.ta-center', 'blockquote', 'p {', 'h3,'] as $needle) {
|
foreach (["span[data-size='xlarge']", "span.color[data-color='gruen']", '.ta-center', 'blockquote', 'p {', 'h3,'] as $needle) {
|
||||||
$this->assertStringContainsString(':is(.widget-prose, .widget-heading) .prose '.$needle, $css, $needle);
|
$this->assertStringContainsString(':is(.widget-prose, .widget-heading, .widget-cards) .prose '.$needle, $css, $needle);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||