Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9e2d64a4a9 | ||
|
|
a12818b752 | ||
|
|
2393000468 | ||
|
|
333e2975d5 | ||
|
|
ef876465f0 | ||
|
|
510ae7944c | ||
|
|
c8d44caa75 | ||
|
|
cbc6b30a6d | ||
|
|
bd6b62b4e3 | ||
|
|
010b4fedd4 | ||
|
|
c5d93737ec | ||
|
|
e29014a8a1 | ||
|
|
c33e47fadd | ||
|
|
04a9a4f83f | ||
|
|
6b43fbb7d1 | ||
|
|
6172364bf8 | ||
|
|
ed53bb1669 | ||
|
|
3a37e8a7a1 |
No files matched your search
@@ -0,0 +1,131 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Domain\Cms;
|
||||||
|
|
||||||
|
use App\Domain\Cms\Sections\PageSections;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Interne Linkziele für die Auswahl im CMS: Seiten mit ihrem Veröffentlichungszustand und die Sprungmarken ihrer
|
||||||
|
* Abschnitte. Rein lesend; das Ergebnis ist eine Adresse, die in ein Linkfeld oder einen Menüeintrag geschrieben wird.
|
||||||
|
*
|
||||||
|
* Adressformen: „/pfad“, „/pfad#marke“ (andere Seite) und „#marke“ (dieselbe Seite). Sie bestehen SafeUrl.
|
||||||
|
*/
|
||||||
|
class LinkTargets
|
||||||
|
{
|
||||||
|
public function __construct(private readonly PageSections $sections) {}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Seiten für die Auswahl, nach Adresse sortiert. Suche in Titel und Adresse.
|
||||||
|
*
|
||||||
|
* @return list<array{id: int, titel: string, pfad: string, zustand: array{label: string, ton: string}, marken: int}>
|
||||||
|
*/
|
||||||
|
public function pages(string $search = '', ?int $exceptId = null): array
|
||||||
|
{
|
||||||
|
$needle = mb_strtolower(trim($search));
|
||||||
|
|
||||||
|
return Page::query()->with(['latestRevision', 'publishedRevision'])->orderBy('path')->get()
|
||||||
|
->reject(fn (Page $page): bool => $page->getKey() === $exceptId)
|
||||||
|
->map(fn (Page $page): array => [
|
||||||
|
'id' => (int) $page->getKey(),
|
||||||
|
'titel' => $page->latestRevision?->contentTitle() ?: $page->path,
|
||||||
|
'pfad' => $page->path,
|
||||||
|
'zustand' => $this->state($page),
|
||||||
|
'marken' => count($this->anchorsOf($page->latestRevision?->sections() ?? [])),
|
||||||
|
])
|
||||||
|
->filter(fn (array $page): bool => $needle === '' || str_contains(mb_strtolower($page['titel'].' '.$page['pfad']), $needle))
|
||||||
|
->values()
|
||||||
|
->all();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return array{label: string, ton: string}
|
||||||
|
*/
|
||||||
|
public function state(Page $page): array
|
||||||
|
{
|
||||||
|
if ($page->published_revision_id === null) {
|
||||||
|
return ['label' => 'Nur Entwurf, öffentlich nicht erreichbar', 'ton' => 'offen'];
|
||||||
|
}
|
||||||
|
|
||||||
|
return $page->latestRevision !== null && $page->latestRevision->id !== $page->published_revision_id
|
||||||
|
? ['label' => 'Veröffentlicht · Entwurf neuer', 'ton' => 'gut']
|
||||||
|
: ['label' => 'Veröffentlicht', 'ton' => 'gut'];
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sprungmarken einer gespeicherten Seite: die des neuesten Entwurfs, je mit dem Hinweis, ob sie schon
|
||||||
|
* veröffentlicht sind und ob der Abschnitt ausgeblendet ist.
|
||||||
|
*
|
||||||
|
* @return list<array{anchor: string, label: string, hidden: bool, published: bool}>
|
||||||
|
*/
|
||||||
|
public function anchorsForPage(Page $page): array
|
||||||
|
{
|
||||||
|
$published = collect($this->anchorsOf($page->publishedRevision?->sections() ?? []))
|
||||||
|
->filter(fn (array $anchor): bool => ! $anchor['hidden'])
|
||||||
|
->pluck('anchor')
|
||||||
|
->all();
|
||||||
|
|
||||||
|
return array_map(
|
||||||
|
fn (array $anchor): array => $anchor + ['published' => in_array($anchor['anchor'], $published, true)],
|
||||||
|
$this->anchorsOf($page->latestRevision?->sections() ?? $page->publishedRevision?->sections() ?? []),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sprungmarken der Abschnitte im Editor, auch ungespeicherte. Für „diese Seite“.
|
||||||
|
*
|
||||||
|
* @param list<array<string, mixed>> $sections Abschnitte im Modell (nach SectionEditor::fromEditorState)
|
||||||
|
* @return list<array{anchor: string, label: string, hidden: bool, published: bool}>
|
||||||
|
*/
|
||||||
|
public function anchorsInEditor(array $sections): array
|
||||||
|
{
|
||||||
|
return array_map(fn (array $anchor): array => $anchor + ['published' => false], $this->anchorsOf($sections));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param list<array<string, mixed>> $sections
|
||||||
|
* @return list<array{anchor: string, label: string, hidden: bool}>
|
||||||
|
*/
|
||||||
|
public function anchorsOf(array $sections): array
|
||||||
|
{
|
||||||
|
$anchors = [];
|
||||||
|
|
||||||
|
foreach (array_values($sections) as $position => $section) {
|
||||||
|
$anchor = PageSections::cleanAnchor($section['anchor'] ?? null);
|
||||||
|
|
||||||
|
if ($anchor === null) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
$name = PageSections::cleanName($section['name'] ?? null);
|
||||||
|
$anchors[] = [
|
||||||
|
'anchor' => $anchor,
|
||||||
|
'label' => $name ?? 'Abschnitt '.($position + 1),
|
||||||
|
'hidden' => PageSections::isHidden($section['hidden'] ?? false),
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
||||||
|
return $anchors;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Adresse für ein Linkfeld: „/pfad“, „/pfad#marke“ oder (dieselbe Seite) „#marke“.
|
||||||
|
*/
|
||||||
|
public function href(?string $path, ?string $anchor): ?string
|
||||||
|
{
|
||||||
|
$anchor = $anchor !== null && $anchor !== '' ? PageSections::cleanAnchor($anchor) : null;
|
||||||
|
|
||||||
|
if ($path === null) {
|
||||||
|
return $anchor !== null ? '#'.$anchor : null;
|
||||||
|
}
|
||||||
|
|
||||||
|
return $path.($anchor !== null ? '#'.$anchor : '');
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Vollständige öffentliche Adresse mit Sprungmarke, für Verweise von außen.
|
||||||
|
*/
|
||||||
|
public function publicUrl(Page $page, ?string $anchor = null): string
|
||||||
|
{
|
||||||
|
return $page->publicUrl().($anchor !== null && $anchor !== '' ? '#'.$anchor : '');
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
namespace App\Domain\Cms;
|
namespace App\Domain\Cms;
|
||||||
|
|
||||||
|
use App\Domain\Cms\Sections\PageSections;
|
||||||
use App\Domain\Cms\Widgets\Support\SafeUrl;
|
use App\Domain\Cms\Widgets\Support\SafeUrl;
|
||||||
use App\Domain\Commerce\Shop;
|
use App\Domain\Commerce\Shop;
|
||||||
use Illuminate\Database\Eloquent\Builder;
|
use Illuminate\Database\Eloquent\Builder;
|
||||||
@@ -32,6 +33,7 @@ class NavigationItem extends Model
|
|||||||
'label',
|
'label',
|
||||||
'page_id',
|
'page_id',
|
||||||
'url',
|
'url',
|
||||||
|
'anchor',
|
||||||
'placement',
|
'placement',
|
||||||
'sort_order',
|
'sort_order',
|
||||||
'is_visible',
|
'is_visible',
|
||||||
@@ -86,7 +88,9 @@ public function href(): ?string
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($this->page !== null) {
|
if ($this->page !== null) {
|
||||||
return $this->page->path === '/' ? url('/') : url($this->page->path);
|
$anchor = PageSections::cleanAnchor($this->anchor);
|
||||||
|
|
||||||
|
return ($this->page->path === '/' ? url('/') : url($this->page->path)).($anchor !== null ? '#'.$anchor : '');
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->url === null || $this->url === '' || ! SafeUrl::isSafe($this->url)) {
|
if ($this->url === null || $this->url === '' || ! SafeUrl::isSafe($this->url)) {
|
||||||
|
|||||||
@@ -18,6 +18,13 @@
|
|||||||
* Version 2 (Abstände): oben, unten und Widget-Abstand sind drei unabhängige Werte. Hüllen der Version 1 werden beim
|
* Version 2 (Abstände): oben, unten und Widget-Abstand sind drei unabhängige Werte. Hüllen der Version 1 werden beim
|
||||||
* Lesen übersetzt (SectionStyle::migrateSpacing), ohne die Darstellung zu ändern; gespeicherte Revisionen bleiben.
|
* Lesen übersetzt (SectionStyle::migrateSpacing), ohne die Darstellung zu ändern; gespeicherte Revisionen bleiben.
|
||||||
*
|
*
|
||||||
|
* Optionale Felder des Abschnitts (abwärtskompatibel, fehlen in älteren Revisionen):
|
||||||
|
* - name: interner Name zur Orientierung im Seitenaufbau (nie öffentlich), höchstens 80 Zeichen;
|
||||||
|
* - anchor: Sprungmarke, wird als Element-Kennung des Abschnitts ausgegeben (Link „#marke“ oder „/pfad#marke“),
|
||||||
|
* je Seite eindeutig, nur Kleinbuchstaben, Ziffern und Bindestriche;
|
||||||
|
* - hidden: true blendet den Abschnitt auf der Website aus; er bleibt im Entwurf und in den Revisionen erhalten.
|
||||||
|
* Ältere Programmstände kennen „hidden“ nicht und würden einen ausgeblendeten Abschnitt zeigen (siehe Release-Vorbereitung).
|
||||||
|
*
|
||||||
* Jeder Slot enthält höchstens ein Widget aus dem zentralen Widget-Register. Abschnitte sind nicht verschachtelbar.
|
* Jeder Slot enthält höchstens ein Widget aus dem zentralen Widget-Register. Abschnitte sind nicht verschachtelbar.
|
||||||
* Revisionen ohne Abschnitte (Bestand vor dieser Fassung) werden beim Lesen als einspaltige Abschnitte gelesen.
|
* Revisionen ohne Abschnitte (Bestand vor dieser Fassung) werden beim Lesen als einspaltige Abschnitte gelesen.
|
||||||
*/
|
*/
|
||||||
@@ -29,6 +36,20 @@ class PageSections
|
|||||||
|
|
||||||
public const MAX_WIDGETS = 60;
|
public const MAX_WIDGETS = 60;
|
||||||
|
|
||||||
|
public const MAX_NAME = 80;
|
||||||
|
|
||||||
|
public const MAX_ANCHOR = 60;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Kennungen, die im Seitengerüst schon vergeben sind (Hauptbereich, Navigation, Fuß) oder als Vorgabe dienen.
|
||||||
|
* Eine Sprungmarke darf sie nicht wiederholen.
|
||||||
|
*
|
||||||
|
* @var list<string>
|
||||||
|
*/
|
||||||
|
public const RESERVED_ANCHORS = ['inhalt', 'main', 'top', 'site-nav', 'fuss-themen', 'mb-account-menu'];
|
||||||
|
|
||||||
|
public const ANCHOR_PATTERN = '/^[a-z0-9]+(?:-[a-z0-9]+)*$/';
|
||||||
|
|
||||||
public function __construct(private readonly WidgetRegistry $widgets) {}
|
public function __construct(private readonly WidgetRegistry $widgets) {}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -36,7 +57,7 @@ public function __construct(private readonly WidgetRegistry $widgets) {}
|
|||||||
*
|
*
|
||||||
* @param array<int|string, mixed>|null $sections gespeicherte Abschnitte (Spalte sections)
|
* @param array<int|string, mixed>|null $sections gespeicherte Abschnitte (Spalte sections)
|
||||||
* @param array<int|string, mixed>|null $blocks flache Bausteinliste (Spalte blocks), nur ohne Abschnitte verwendet
|
* @param array<int|string, mixed>|null $blocks flache Bausteinliste (Spalte blocks), nur ohne Abschnitte verwendet
|
||||||
* @return list<array{id: ?string, v: int, layout: string, style: array<string, mixed>, slots: list<array<string, mixed>|null>}>
|
* @return list<array{id: ?string, v: int, name: ?string, anchor: ?string, hidden: bool, layout: string, style: array<string, mixed>, slots: list<array<string, mixed>|null>}>
|
||||||
*/
|
*/
|
||||||
public function read(?array $sections, ?array $blocks = null): array
|
public function read(?array $sections, ?array $blocks = null): array
|
||||||
{
|
{
|
||||||
@@ -59,7 +80,7 @@ public function read(?array $sections, ?array $blocks = null): array
|
|||||||
* „sections.N.layout“, „sections.N.style.image“, „sections.N.slots“, „sections.N.slots.M.data.feld“.
|
* „sections.N.layout“, „sections.N.style.image“, „sections.N.slots“, „sections.N.slots.M.data.feld“.
|
||||||
*
|
*
|
||||||
* @param array<int|string, mixed> $content
|
* @param array<int|string, mixed> $content
|
||||||
* @return list<array{id: string, v: int, layout: string, style: array<string, mixed>, slots: list<array<string, mixed>|null>}>
|
* @return list<array{id: string, v: int, name: ?string, anchor: ?string, hidden: bool, layout: string, style: array<string, mixed>, slots: list<array<string, mixed>|null>}>
|
||||||
*/
|
*/
|
||||||
public function normalize(array $content): array
|
public function normalize(array $content): array
|
||||||
{
|
{
|
||||||
@@ -75,6 +96,7 @@ public function normalize(array $content): array
|
|||||||
$sections = [];
|
$sections = [];
|
||||||
$seenSectionIds = [];
|
$seenSectionIds = [];
|
||||||
$seenWidgetIds = [];
|
$seenWidgetIds = [];
|
||||||
|
$seenAnchors = [];
|
||||||
$widgetCount = 0;
|
$widgetCount = 0;
|
||||||
|
|
||||||
// Eingaben mit Abständen der Version 1 (zum Beispiel ältere Aufrufer) werden wie beim Lesen übersetzt.
|
// Eingaben mit Abständen der Version 1 (zum Beispiel ältere Aufrufer) werden wie beim Lesen übersetzt.
|
||||||
@@ -96,7 +118,7 @@ public function normalize(array $content): array
|
|||||||
$item['style'] = $migrated[$index]['style'] ?? ($item['style'] ?? []);
|
$item['style'] = $migrated[$index]['style'] ?? ($item['style'] ?? []);
|
||||||
}
|
}
|
||||||
|
|
||||||
$sections[] = $this->normalizeSection($item, $index, $errors, $seenSectionIds, $seenWidgetIds, $widgetCount);
|
$sections[] = $this->normalizeSection($item, $index, $errors, $seenSectionIds, $seenWidgetIds, $widgetCount, $seenAnchors);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($widgetCount > self::MAX_WIDGETS) {
|
if ($widgetCount > self::MAX_WIDGETS) {
|
||||||
@@ -164,12 +186,14 @@ public function mediaPaths(array $sections): array
|
|||||||
*/
|
*/
|
||||||
public function pageTitle(array $sections): ?string
|
public function pageTitle(array $sections): ?string
|
||||||
{
|
{
|
||||||
return $this->widgets->pageTitle($this->flatten($sections));
|
// Ein ausgeblendeter Abschnitt liefert keinen Seitentitel; seine Medien bleiben dagegen erfasst (mediaPaths),
|
||||||
|
// damit ihre Bilder nicht als ungenutzt gelten.
|
||||||
|
return $this->widgets->pageTitle($this->flatten(array_values(array_filter($sections, fn (array $section): bool => ! ($section['hidden'] ?? false)))));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param array<int|string, mixed> $blocks
|
* @param array<int|string, mixed> $blocks
|
||||||
* @return list<array{id: ?string, v: int, layout: string, style: array<string, mixed>, slots: list<array<string, mixed>|null>}>
|
* @return list<array{id: ?string, v: int, name: ?string, anchor: ?string, hidden: bool, layout: string, style: array<string, mixed>, slots: list<array<string, mixed>|null>}>
|
||||||
*/
|
*/
|
||||||
private function wrapWidgets(array $blocks): array
|
private function wrapWidgets(array $blocks): array
|
||||||
{
|
{
|
||||||
@@ -179,6 +203,9 @@ private function wrapWidgets(array $blocks): array
|
|||||||
$sections[] = [
|
$sections[] = [
|
||||||
'id' => null,
|
'id' => null,
|
||||||
'v' => self::VERSION,
|
'v' => self::VERSION,
|
||||||
|
'name' => null,
|
||||||
|
'anchor' => null,
|
||||||
|
'hidden' => false,
|
||||||
'layout' => SectionLayouts::DEFAULT,
|
'layout' => SectionLayouts::DEFAULT,
|
||||||
// Bestand vor dem Raster stand in einem durchgehenden Blatt: kompakte Abstände, zwischen den Widgets
|
// Bestand vor dem Raster stand in einem durchgehenden Blatt: kompakte Abstände, zwischen den Widgets
|
||||||
// nur einmal (oben kein Abstand ab dem zweiten), wie bisher.
|
// nur einmal (oben kein Abstand ab dem zweiten), wie bisher.
|
||||||
@@ -192,7 +219,7 @@ private function wrapWidgets(array $blocks): array
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @param array<string, mixed> $section
|
* @param array<string, mixed> $section
|
||||||
* @return array{id: ?string, v: int, layout: string, style: array<string, mixed>, slots: list<array<string, mixed>|null>}
|
* @return array{id: ?string, v: int, name: ?string, anchor: ?string, hidden: bool, layout: string, style: array<string, mixed>, slots: list<array<string, mixed>|null>}
|
||||||
*/
|
*/
|
||||||
private function upcastSection(array $section): array
|
private function upcastSection(array $section): array
|
||||||
{
|
{
|
||||||
@@ -210,6 +237,9 @@ private function upcastSection(array $section): array
|
|||||||
return [
|
return [
|
||||||
'id' => is_string($section['id'] ?? null) ? $section['id'] : null,
|
'id' => is_string($section['id'] ?? null) ? $section['id'] : null,
|
||||||
'v' => self::VERSION,
|
'v' => self::VERSION,
|
||||||
|
'name' => self::cleanName($section['name'] ?? null),
|
||||||
|
'anchor' => self::cleanAnchor($section['anchor'] ?? null),
|
||||||
|
'hidden' => self::isHidden($section['hidden'] ?? false),
|
||||||
'layout' => $layout,
|
'layout' => $layout,
|
||||||
'style' => SectionStyle::fromStored($section['style'] ?? []),
|
'style' => SectionStyle::fromStored($section['style'] ?? []),
|
||||||
'slots' => $slots,
|
'slots' => $slots,
|
||||||
@@ -221,9 +251,9 @@ private function upcastSection(array $section): array
|
|||||||
* @param array<string, list<string>> $errors
|
* @param array<string, list<string>> $errors
|
||||||
* @param array<string, true> $seenSectionIds
|
* @param array<string, true> $seenSectionIds
|
||||||
* @param array<string, true> $seenWidgetIds
|
* @param array<string, true> $seenWidgetIds
|
||||||
* @return array{id: string, v: int, layout: string, style: array<string, mixed>, slots: list<array<string, mixed>|null>}
|
* @return array{id: string, v: int, name: ?string, anchor: ?string, hidden: bool, layout: string, style: array<string, mixed>, slots: list<array<string, mixed>|null>}
|
||||||
*/
|
*/
|
||||||
private function normalizeSection(array $section, int $index, array &$errors, array &$seenSectionIds, array &$seenWidgetIds, int &$widgetCount): array
|
private function normalizeSection(array $section, int $index, array &$errors, array &$seenSectionIds, array &$seenWidgetIds, int &$widgetCount, array &$seenAnchors): array
|
||||||
{
|
{
|
||||||
$prefix = "sections.$index";
|
$prefix = "sections.$index";
|
||||||
|
|
||||||
@@ -294,15 +324,90 @@ private function normalizeSection(array $section, int $index, array &$errors, ar
|
|||||||
}
|
}
|
||||||
$seenSectionIds[$id] = true;
|
$seenSectionIds[$id] = true;
|
||||||
|
|
||||||
|
[$name, $anchor] = $this->normalizeLabels($section, $prefix, $errors, $seenAnchors);
|
||||||
|
|
||||||
return [
|
return [
|
||||||
'id' => $id,
|
'id' => $id,
|
||||||
'v' => self::VERSION,
|
'v' => self::VERSION,
|
||||||
|
'name' => $name,
|
||||||
|
'anchor' => $anchor,
|
||||||
|
'hidden' => self::isHidden($section['hidden'] ?? false),
|
||||||
'layout' => $layout,
|
'layout' => $layout,
|
||||||
'style' => $style,
|
'style' => $style,
|
||||||
'slots' => $slots,
|
'slots' => $slots,
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Name und Sprungmarke eines Abschnitts. Fehler: „sections.N.name“ und „sections.N.anchor“.
|
||||||
|
*
|
||||||
|
* @param array<string, mixed> $section
|
||||||
|
* @param array<string, list<string>> $errors
|
||||||
|
* @param array<string, true> $seenAnchors
|
||||||
|
* @return array{0: ?string, 1: ?string}
|
||||||
|
*/
|
||||||
|
private function normalizeLabels(array $section, string $prefix, array &$errors, array &$seenAnchors): array
|
||||||
|
{
|
||||||
|
$name = null;
|
||||||
|
$rawName = $section['name'] ?? null;
|
||||||
|
|
||||||
|
if (is_string($rawName) && trim($rawName) !== '') {
|
||||||
|
$name = self::cleanName($rawName);
|
||||||
|
|
||||||
|
if ($name === null) {
|
||||||
|
$errors["$prefix.name"] = ['Der Name darf höchstens '.self::MAX_NAME.' Zeichen lang sein.'];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
$anchor = null;
|
||||||
|
$rawAnchor = $section['anchor'] ?? null;
|
||||||
|
|
||||||
|
if (is_string($rawAnchor) && trim($rawAnchor) !== '') {
|
||||||
|
$candidate = mb_strtolower(trim($rawAnchor));
|
||||||
|
|
||||||
|
if (strlen($candidate) > self::MAX_ANCHOR || preg_match(self::ANCHOR_PATTERN, $candidate) !== 1) {
|
||||||
|
$errors["$prefix.anchor"] = ['Eine Sprungmarke besteht aus Kleinbuchstaben, Ziffern und einzelnen Bindestrichen (höchstens '.self::MAX_ANCHOR.' Zeichen), zum Beispiel „anmeldung“.'];
|
||||||
|
} elseif (in_array($candidate, self::RESERVED_ANCHORS, true) || str_starts_with($candidate, 'bereich-')) {
|
||||||
|
$errors["$prefix.anchor"] = ['Diese Sprungmarke ist im Seitengerüst schon vergeben. Bitte eine andere wählen.'];
|
||||||
|
} elseif (isset($seenAnchors[$candidate])) {
|
||||||
|
$errors["$prefix.anchor"] = ['Diese Sprungmarke gibt es auf der Seite schon. Jede Sprungmarke darf nur einmal vorkommen.'];
|
||||||
|
} else {
|
||||||
|
$seenAnchors[$candidate] = true;
|
||||||
|
$anchor = $candidate;
|
||||||
|
}
|
||||||
|
} elseif ($rawAnchor !== null && ! is_string($rawAnchor)) {
|
||||||
|
$errors["$prefix.anchor"] = ['Die Sprungmarke ist ungültig.'];
|
||||||
|
}
|
||||||
|
|
||||||
|
return [$name, $anchor];
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Interner Name: Leerraum vereinheitlicht, ohne Steuerzeichen; leer oder über 80 Zeichen ergibt null. */
|
||||||
|
public static function cleanName(mixed $value): ?string
|
||||||
|
{
|
||||||
|
if (! is_string($value)) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
$name = trim((string) preg_replace('/\s+/u', ' ', (string) preg_replace('/[\x00-\x1F\x7F]/u', ' ', $value)));
|
||||||
|
|
||||||
|
return $name === '' || mb_strlen($name) > self::MAX_NAME ? null : $name;
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Lesepfad: eine gespeicherte Sprungmarke nur, wenn sie der Form entspricht. */
|
||||||
|
public static function cleanAnchor(mixed $value): ?string
|
||||||
|
{
|
||||||
|
return is_string($value) && strlen($value) <= self::MAX_ANCHOR && preg_match(self::ANCHOR_PATTERN, $value) === 1
|
||||||
|
&& ! in_array($value, self::RESERVED_ANCHORS, true) && ! str_starts_with($value, 'bereich-')
|
||||||
|
? $value
|
||||||
|
: null;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static function isHidden(mixed $value): bool
|
||||||
|
{
|
||||||
|
return $value === true || $value === 1 || $value === '1' || $value === 'true';
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param array<string, mixed> $style
|
* @param array<string, mixed> $style
|
||||||
* @param array<string, list<string>> $errors
|
* @param array<string, list<string>> $errors
|
||||||
|
|||||||
@@ -17,6 +17,9 @@
|
|||||||
* - Ein Abschnitt ohne darstellbares Widget entfällt samt Hintergrund und Trenner.
|
* - Ein Abschnitt ohne darstellbares Widget entfällt samt Hintergrund und Trenner.
|
||||||
* - Das erste dargestellte Widget der Seite ist der Seiteneinstieg (Überschrift erster Ordnung).
|
* - Das erste dargestellte Widget der Seite ist der Seiteneinstieg (Überschrift erster Ordnung).
|
||||||
* - Trenner stehen zwischen Abschnitten, nie nach dem letzten.
|
* - Trenner stehen zwischen Abschnitten, nie nach dem letzten.
|
||||||
|
* - Ein ausgeblendeter Abschnitt („hidden“) erscheint nie auf der Website und zählt weder für das erste Widget noch für
|
||||||
|
* Trenner. Nur die Vorschau zeigt an seiner Stelle einen schmalen Hinweis (ohne Inhalt).
|
||||||
|
* - Eine Sprungmarke („anchor“) ist die Element-Kennung des Abschnitts; ohne Sprungmarke gilt „bereich-<Kennung>“.
|
||||||
*/
|
*/
|
||||||
class SectionRenderer
|
class SectionRenderer
|
||||||
{
|
{
|
||||||
@@ -31,6 +34,14 @@ public function renderAll(array $sections, RenderContext $context): HtmlString
|
|||||||
$first = true;
|
$first = true;
|
||||||
|
|
||||||
foreach ($sections as $section) {
|
foreach ($sections as $section) {
|
||||||
|
if ($section['hidden'] ?? false) {
|
||||||
|
if ($context->preview) {
|
||||||
|
$rendered[] = ['note' => $this->hiddenNote($section)];
|
||||||
|
}
|
||||||
|
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
$cells = [];
|
$cells = [];
|
||||||
$shown = false;
|
$shown = false;
|
||||||
$units = SectionLayouts::units($section['layout']);
|
$units = SectionLayouts::units($section['layout']);
|
||||||
@@ -54,13 +65,28 @@ public function renderAll(array $sections, RenderContext $context): HtmlString
|
|||||||
}
|
}
|
||||||
|
|
||||||
$html = '';
|
$html = '';
|
||||||
$last = count($rendered) - 1;
|
$last = -1;
|
||||||
|
|
||||||
|
foreach ($rendered as $position => $item) {
|
||||||
|
if (isset($item['section'])) {
|
||||||
|
$last = $position;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
$index = 0;
|
||||||
|
|
||||||
|
foreach ($rendered as $position => $item) {
|
||||||
|
if (! isset($item['section'])) {
|
||||||
|
$html .= $item['note'];
|
||||||
|
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
foreach ($rendered as $index => $item) {
|
|
||||||
$html .= $this->renderSection($item['section'], $item['cells'], $index, $context);
|
$html .= $this->renderSection($item['section'], $item['cells'], $index, $context);
|
||||||
|
$index++;
|
||||||
|
|
||||||
$divider = $item['section']['style']['divider'] ?? 'none';
|
$divider = $item['section']['style']['divider'] ?? 'none';
|
||||||
if ($index < $last && in_array($divider, ['line', 'accent'], true)) {
|
if ($position < $last && in_array($divider, ['line', 'accent'], true)) {
|
||||||
$html .= '<div class="section-divider section-divider-'.$divider.'" aria-hidden="true"><span></span></div>';
|
$html .= '<div class="section-divider section-divider-'.$divider.'" aria-hidden="true"><span></span></div>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -68,6 +94,18 @@ public function renderAll(array $sections, RenderContext $context): HtmlString
|
|||||||
return new HtmlString($html);
|
return new HtmlString($html);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Hinweis der Vorschau an der Stelle eines ausgeblendeten Abschnitts.
|
||||||
|
*
|
||||||
|
* @param array<string, mixed> $section
|
||||||
|
*/
|
||||||
|
private function hiddenNote(array $section): string
|
||||||
|
{
|
||||||
|
$name = is_string($section['name'] ?? null) && $section['name'] !== '' ? '„'.$section['name'].'“ ' : '';
|
||||||
|
|
||||||
|
return '<div class="section-hidden-note" role="note">Abschnitt '.e($name).'ist für die Website ausgeblendet und erscheint hier nur als Hinweis.</div>';
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param array<string, mixed> $section
|
* @param array<string, mixed> $section
|
||||||
* @param list<array{units: int, html: string}> $cells alle Plätze des Rasters in ihrer Reihenfolge; html '' = leer
|
* @param list<array{units: int, html: string}> $cells alle Plätze des Rasters in ihrer Reihenfolge; html '' = leer
|
||||||
@@ -106,7 +144,11 @@ private function renderSection(array $section, array $cells, int $index, RenderC
|
|||||||
$classes[] = $scope;
|
$classes[] = $scope;
|
||||||
}
|
}
|
||||||
|
|
||||||
$id = is_string($section['id'] ?? null) ? ' id="bereich-'.e($section['id']).'"' : '';
|
// Die Sprungmarke ist die Kennung, die ein Link „#marke“ anspringt; ohne sie bleibt die bisherige Kennung.
|
||||||
|
$anchor = PageSections::cleanAnchor($section['anchor'] ?? null);
|
||||||
|
$id = $anchor !== null
|
||||||
|
? ' id="'.e($anchor).'"'
|
||||||
|
: (is_string($section['id'] ?? null) ? ' id="bereich-'.e($section['id']).'"' : '');
|
||||||
$html = '<div class="'.e(implode(' ', $classes)).'"'.$id.'>';
|
$html = '<div class="'.e(implode(' ', $classes)).'"'.$id.'>';
|
||||||
|
|
||||||
if ($hasImage) {
|
if ($hasImage) {
|
||||||
|
|||||||
@@ -0,0 +1,30 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Domain\Cms\Widgets\Support;
|
||||||
|
|
||||||
|
use Filament\Actions\Action;
|
||||||
|
use Filament\Forms\Components\TextInput;
|
||||||
|
use Illuminate\Support\Js;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Linkfeld für alle Widgets: Die Adresse lässt sich frei eintippen (Seitenpfad, #Sprungmarke oder http(s)-Adresse) oder
|
||||||
|
* über den Dialog „Interne Seite oder Sprungmarke wählen“ aus den Seiten der Website übernehmen
|
||||||
|
* (ChoosesLinkTargets). Der Knopf ruft den Dialog direkt auf; ein Aktionsdialog im Bausteindialog entsteht nicht. Wo die
|
||||||
|
* Seite den Dialog nicht kennt, fehlt der Knopf und das Feld bleibt ein Textfeld.
|
||||||
|
*/
|
||||||
|
final class LinkField
|
||||||
|
{
|
||||||
|
public static function make(string $name, string $label = 'Linkziel'): TextInput
|
||||||
|
{
|
||||||
|
return TextInput::make($name)
|
||||||
|
->label($label)
|
||||||
|
->maxLength(500)
|
||||||
|
->rule(SafeUrl::rule())
|
||||||
|
->suffixAction(Action::make('linkWaehlen')
|
||||||
|
->label('Interne Seite oder Sprungmarke wählen')
|
||||||
|
->tooltip('Interne Seite oder Sprungmarke wählen')
|
||||||
|
->icon('heroicon-o-link')
|
||||||
|
->visible(fn ($livewire): bool => is_object($livewire) && method_exists($livewire, 'openLinkPicker'))
|
||||||
|
->actionJs(fn ($component): string => '$wire.openLinkPicker('.Js::from($component->getStatePath()).')'));
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -53,10 +53,7 @@ public static function eyebrowField(): TextInput
|
|||||||
|
|
||||||
public static function ctaFields(): Grid
|
public static function ctaFields(): Grid
|
||||||
{
|
{
|
||||||
$url = fn (string $name, string $label, string $pair) => TextInput::make($name)
|
$url = fn (string $name, string $label, string $pair) => LinkField::make($name, $label)
|
||||||
->label($label)
|
|
||||||
->maxLength(500)
|
|
||||||
->rule(SafeUrl::rule())
|
|
||||||
->requiredWith($pair)
|
->requiredWith($pair)
|
||||||
->live(onBlur: true)
|
->live(onBlur: true)
|
||||||
->placeholder('/programme');
|
->placeholder('/programme');
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
final class RichText
|
final class RichText
|
||||||
{
|
{
|
||||||
/** Werkzeugleiste des Editors; muss zur Erlaubnisliste unten passen. */
|
/** Werkzeugleiste des Editors; muss zur Erlaubnisliste unten passen. */
|
||||||
public const TOOLBAR = [['bold', 'italic', 'link'], ['bulletList', 'orderedList'], ['undo', 'redo']];
|
public const TOOLBAR = [['bold', 'italic', 'link', 'interneSeite'], ['bulletList', 'orderedList'], ['undo', 'redo']];
|
||||||
|
|
||||||
private static ?HtmlSanitizer $sanitizer = null;
|
private static ?HtmlSanitizer $sanitizer = null;
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,8 @@
|
|||||||
use Illuminate\Contracts\Validation\ValidationRule;
|
use Illuminate\Contracts\Validation\ValidationRule;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Zulässige Linkziele in redaktionellen Inhalten: Seitenpfade ("/...") oder http(s)-Adressen.
|
* Zulässige Linkziele in redaktionellen Inhalten: Seitenpfade ("/...", auch mit "#marke"), Sprungmarken auf der
|
||||||
|
* eigenen Seite ("#marke") oder http(s)-Adressen. Eine Sprungmarke besteht aus Buchstaben, Ziffern, Bindestrich und Unterstrich.
|
||||||
*/
|
*/
|
||||||
final class SafeUrl implements ValidationRule
|
final class SafeUrl implements ValidationRule
|
||||||
{
|
{
|
||||||
@@ -16,6 +17,10 @@ public static function isSafe(mixed $url): bool
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (str_starts_with($url, '#')) {
|
||||||
|
return preg_match('/^#[A-Za-z0-9_-]{1,80}$/', $url) === 1;
|
||||||
|
}
|
||||||
|
|
||||||
$isRelative = str_starts_with($url, '/') && ! str_starts_with($url, '//') && ! str_starts_with($url, '/\\');
|
$isRelative = str_starts_with($url, '/') && ! str_starts_with($url, '//') && ! str_starts_with($url, '/\\');
|
||||||
$isAbsolute = preg_match('#^https?://[^/\s]+#i', $url) === 1;
|
$isAbsolute = preg_match('#^https?://[^/\s]+#i', $url) === 1;
|
||||||
|
|
||||||
@@ -24,7 +29,7 @@ public static function isSafe(mixed $url): bool
|
|||||||
|
|
||||||
public static function message(): string
|
public static function message(): string
|
||||||
{
|
{
|
||||||
return 'Erlaubt sind Seitenpfade (beginnend mit /) oder http(s)-Adressen.';
|
return 'Erlaubt sind Seitenpfade (beginnend mit /), Sprungmarken (#marke) oder http(s)-Adressen.';
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
namespace App\Domain\Cms\Widgets\Types;
|
namespace App\Domain\Cms\Widgets\Types;
|
||||||
|
|
||||||
use App\Domain\Cms\Widgets\Support\HeadingAccent;
|
use App\Domain\Cms\Widgets\Support\HeadingAccent;
|
||||||
|
use App\Domain\Cms\Widgets\Support\LinkField;
|
||||||
use App\Domain\Cms\Widgets\Support\SafeUrl;
|
use App\Domain\Cms\Widgets\Support\SafeUrl;
|
||||||
use App\Domain\Cms\Widgets\WidgetErrors;
|
use App\Domain\Cms\Widgets\WidgetErrors;
|
||||||
use App\Domain\Cms\Widgets\WidgetType;
|
use App\Domain\Cms\Widgets\WidgetType;
|
||||||
@@ -82,12 +83,9 @@ public function dataFields(): array
|
|||||||
TextInput::make('heading')->label('Überschrift')->required()->maxLength(200),
|
TextInput::make('heading')->label('Überschrift')->required()->maxLength(200),
|
||||||
Textarea::make('text')->label('Text')->rows(3)->maxLength(1000),
|
Textarea::make('text')->label('Text')->rows(3)->maxLength(1000),
|
||||||
TextInput::make('label')->label('Beschriftung der Schaltfläche')->required()->maxLength(80),
|
TextInput::make('label')->label('Beschriftung der Schaltfläche')->required()->maxLength(80),
|
||||||
TextInput::make('url')
|
LinkField::make('url')
|
||||||
->label('Linkziel')
|
|
||||||
->required()
|
->required()
|
||||||
->maxLength(500)
|
->helperText('Seitenpfad wie /angebote, Sprungmarke wie #kurse oder eine vollständige http(s)-Adresse; oder über das Linksymbol eine Seite oder Sprungmarke wählen.'),
|
||||||
->rule(SafeUrl::rule())
|
|
||||||
->helperText('Seitenpfad wie /angebote oder eine vollständige http(s)-Adresse.'),
|
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,28 +2,79 @@
|
|||||||
|
|
||||||
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;
|
||||||
|
use App\Domain\Cms\Widgets\Support\LinkField;
|
||||||
use App\Domain\Cms\Widgets\Support\PublicMedia;
|
use App\Domain\Cms\Widgets\Support\PublicMedia;
|
||||||
use App\Domain\Cms\Widgets\Support\SafeUrl;
|
use App\Domain\Cms\Widgets\Support\SafeUrl;
|
||||||
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';
|
||||||
@@ -36,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
|
||||||
@@ -46,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
|
||||||
@@ -58,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',
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -85,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'],
|
||||||
@@ -97,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.'],
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -123,15 +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)
|
||||||
TextInput::make('url')
|
->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.'),
|
||||||
->label('Linkziel')
|
LinkField::make('url')
|
||||||
->maxLength(500)
|
->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.'),
|
||||||
->rule(SafeUrl::rule())
|
TextInput::make('link_label')
|
||||||
->helperText('Seitenpfad wie /praevention oder eine http(s)-Adresse. Leer lassen für eine Karte ohne Link.'),
|
->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,
|
||||||
@@ -146,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) {
|
||||||
@@ -155,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'],
|
||||||
];
|
];
|
||||||
@@ -180,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),
|
||||||
];
|
];
|
||||||
@@ -194,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),
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,6 +4,7 @@
|
|||||||
|
|
||||||
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\LinkField;
|
||||||
use App\Domain\Cms\Widgets\Support\SafeUrl;
|
use App\Domain\Cms\Widgets\Support\SafeUrl;
|
||||||
use App\Domain\Cms\Widgets\WidgetErrors;
|
use App\Domain\Cms\Widgets\WidgetErrors;
|
||||||
use App\Domain\Cms\Widgets\WidgetType;
|
use App\Domain\Cms\Widgets\WidgetType;
|
||||||
@@ -157,11 +158,8 @@ public function dataFields(): array
|
|||||||
SymbolField::make('symbol', 'Symbol', required: true),
|
SymbolField::make('symbol', 'Symbol', required: true),
|
||||||
TextInput::make('title')->label('Kurztitel')->required()->maxLength(60),
|
TextInput::make('title')->label('Kurztitel')->required()->maxLength(60),
|
||||||
Textarea::make('text')->label('Satz')->rows(2)->maxLength(200),
|
Textarea::make('text')->label('Satz')->rows(2)->maxLength(200),
|
||||||
TextInput::make('url')
|
LinkField::make('url', 'Linkziel (optional)')
|
||||||
->label('Linkziel (optional)')
|
->helperText('Seitenpfad wie /materialien, Sprungmarke wie #kurse oder eine http(s)-Adresse; oder über das Linksymbol wählen. Leer lassen für ein Merkmal ohne Link.'),
|
||||||
->maxLength(500)
|
|
||||||
->rule(SafeUrl::rule())
|
|
||||||
->helperText('Seitenpfad wie /materialien oder eine http(s)-Adresse. Leer lassen für ein Merkmal ohne Link.'),
|
|
||||||
TextInput::make('link_label')
|
TextInput::make('link_label')
|
||||||
->label('Linktext')
|
->label('Linktext')
|
||||||
->maxLength(60)
|
->maxLength(60)
|
||||||
|
|||||||
@@ -12,6 +12,7 @@
|
|||||||
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\InternalLinkPlugin;
|
||||||
use Filament\Forms\Components\RichEditor;
|
use Filament\Forms\Components\RichEditor;
|
||||||
use Filament\Forms\Components\TextInput;
|
use Filament\Forms\Components\TextInput;
|
||||||
use Filament\Forms\Components\ViewField;
|
use Filament\Forms\Components\ViewField;
|
||||||
@@ -222,6 +223,7 @@ public function dataFields(): array
|
|||||||
->label('Text')
|
->label('Text')
|
||||||
->helperText('Leer lassen, wenn nur das Bild gezeigt werden soll. Ohne Text, Überschrift, Label und Schaltflächen füllt das Bild die ganze Breite.')
|
->helperText('Leer lassen, wenn nur das Bild gezeigt werden soll. Ohne Text, Überschrift, Label und Schaltflächen füllt das Bild die ganze Breite.')
|
||||||
->live(onBlur: true)
|
->live(onBlur: true)
|
||||||
|
->plugins([new InternalLinkPlugin])
|
||||||
->toolbarButtons(RichText::TOOLBAR),
|
->toolbarButtons(RichText::TOOLBAR),
|
||||||
PremiumFields::ctaFields(),
|
PremiumFields::ctaFields(),
|
||||||
PremiumFields::altField(),
|
PremiumFields::altField(),
|
||||||
|
|||||||
@@ -0,0 +1,291 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Domain\Cms\Widgets\Types;
|
||||||
|
|
||||||
|
use App\Domain\Catalog\FormattedText;
|
||||||
|
use App\Domain\Cms\Widgets\RenderContext;
|
||||||
|
use App\Domain\Cms\Widgets\Support\HeadingAccent;
|
||||||
|
use App\Domain\Cms\Widgets\WidgetErrors;
|
||||||
|
use App\Domain\Cms\Widgets\WidgetType;
|
||||||
|
use App\Filament\Support\RichField;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Hinweiszeile: ein kompakter Hinweis (zum Beispiel „Dieses Bild wurde mit KI erzeugt“) mit formatiertem Text und
|
||||||
|
* optionalem Symbol, wahlweise mit aufklappbarer Kurzdarstellung.
|
||||||
|
*
|
||||||
|
* Drei Darstellungsmodi (Einstellung `mode`), der Text steht immer in beiden Fassungen gespeichert, ein Wechsel des Modus
|
||||||
|
* verliert also nichts:
|
||||||
|
* - full (Vorgabe): der vollständige Hinweis, immer sichtbar, ohne Aufklappen.
|
||||||
|
* - responsive: breit der volle Text; unter einer Widgetbreite (Einstellung `narrow`) die Kurzdarstellung, auf Wunsch erst
|
||||||
|
* dann, wenn der Volltext mehr Zeilen braucht als die Zeilengrenze (`line_limit`). Beim Laden eingeklappt.
|
||||||
|
* - collapsed: immer zuerst die Kurzdarstellung, auf jeder Breite; ein Klick zeigt den vollständigen Text. Breite und
|
||||||
|
* Zeilengrenze bleiben unberücksichtigt.
|
||||||
|
* Ohne Kurztext gibt es nichts einzuklappen: Der Hinweis erscheint dann wie im Modus „Volltext“.
|
||||||
|
*/
|
||||||
|
class NoticeWidget extends WidgetType
|
||||||
|
{
|
||||||
|
/** Größtes zulässiges Maß des gespeicherten HTML je Text. */
|
||||||
|
public const TEXT_MAX_LENGTH = 10000;
|
||||||
|
|
||||||
|
public const SHORT_MAX_LENGTH = 2000;
|
||||||
|
|
||||||
|
/** @var array<string, string> */
|
||||||
|
public const MODE = [
|
||||||
|
'full' => 'Volltext: immer vollständig sichtbar',
|
||||||
|
'responsive' => 'Responsiv: auf schmalen Bildschirmen die Kurzdarstellung',
|
||||||
|
'collapsed' => 'Immer mit Kurzdarstellung starten',
|
||||||
|
];
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Auslösegrenze: Der Volltext braucht mehr Zeilen als die Grenze. Die Schlüssel sind keine Zahlen, damit sie als
|
||||||
|
* Zeichenketten erhalten bleiben (ADR-30: nur feste Werte).
|
||||||
|
*
|
||||||
|
* @var array<string, string>
|
||||||
|
*/
|
||||||
|
public const LINE_LIMIT = [
|
||||||
|
'l1' => 'Mehr als 1 Zeile',
|
||||||
|
'l2' => 'Mehr als 2 Zeilen',
|
||||||
|
'l3' => 'Mehr als 3 Zeilen',
|
||||||
|
'l4' => 'Mehr als 4 Zeilen',
|
||||||
|
'l5' => 'Mehr als 5 Zeilen',
|
||||||
|
'l6' => 'Mehr als 6 Zeilen',
|
||||||
|
];
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Breite des Widgets (nicht des Fensters), unter der „schmal“ gilt, in rem.
|
||||||
|
*
|
||||||
|
* @var array<string, float>
|
||||||
|
*/
|
||||||
|
public const NARROW_REM = ['narrow' => 30.0, 'medium' => 40.0, 'wide' => 56.0];
|
||||||
|
|
||||||
|
/** @var array<string, string> */
|
||||||
|
public const NARROW = [
|
||||||
|
'narrow' => 'Nur bei sehr wenig Platz (Widgetbreite unter 30 rem, etwa 480 px)',
|
||||||
|
'medium' => 'Bei wenig Platz (unter 40 rem, etwa 640 px)',
|
||||||
|
'wide' => 'Auch bei mittlerem Platz (unter 56 rem, etwa 900 px)',
|
||||||
|
];
|
||||||
|
|
||||||
|
/** Schriftgrößen: S, M und L sind die Stufen „klein“, „Text“ und „Einleitung“ des Designsystems, XS ist kleiner als diese. */
|
||||||
|
public const SIZE = ['xs' => 'XS (klein, 13 px)', 's' => 'S (Hinweistext des Designsystems)', 'm' => 'M (Fließtext)', 'l' => 'L (Einleitungstext)'];
|
||||||
|
|
||||||
|
/** @var array<string, string> */
|
||||||
|
public const SYMBOL_SIZE = ['xs' => 'Sehr klein (1 rem)', 's' => 'Klein (1,25 rem)', 'm' => 'Mittel (1,75 rem)', 'l' => 'Groß (2,5 rem)', 'xl' => 'Sehr groß (3,5 rem)'];
|
||||||
|
|
||||||
|
/** @var array<string, string> */
|
||||||
|
public const SURFACE = ['green' => 'Dezentes Grün', 'yellow' => 'Hinweisgelb', 'cream' => 'Creme'];
|
||||||
|
|
||||||
|
/** @var array<string, string> */
|
||||||
|
public const BORDER = ['line' => 'Feiner Rahmen'];
|
||||||
|
|
||||||
|
/** @var array<string, string> */
|
||||||
|
public const BAR = ['left' => 'Akzentlinie links', 'top' => 'Akzentlinie oben'];
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gültige Darstellungswerte; alles andere fällt auf die Vorgabe zurück (Volltext, ohne Grenze, mittlere Schwelle, S,
|
||||||
|
* linksbündig, Symbol klein und oben, ohne Fläche, Rahmen und Linie). Ohne Kurztext ist der Modus immer „full“.
|
||||||
|
*
|
||||||
|
* @param array<string, mixed> $settings
|
||||||
|
* @return array{mode: string, limit: ?int, narrow: float, size: string, align: string, symbol: ?string, symbolSize: string, symbolAlign: string, surface: ?string, border: bool, bar: ?string}
|
||||||
|
*/
|
||||||
|
public static function layout(array $settings, bool $hasShort = true): array
|
||||||
|
{
|
||||||
|
$pick = fn (string $key, array $allowed, ?string $default): ?string => is_string($settings[$key] ?? null) && array_key_exists($settings[$key], $allowed) ? $settings[$key] : $default;
|
||||||
|
|
||||||
|
$mode = $pick('mode', self::MODE, 'full');
|
||||||
|
$limit = $pick('line_limit', self::LINE_LIMIT, null);
|
||||||
|
|
||||||
|
return [
|
||||||
|
'mode' => $hasShort ? $mode : 'full',
|
||||||
|
'limit' => $limit === null ? null : (int) substr($limit, 1),
|
||||||
|
'narrow' => self::NARROW_REM[$pick('narrow', self::NARROW, 'medium')],
|
||||||
|
'size' => $pick('size', self::SIZE, 's'),
|
||||||
|
'align' => $pick('align', HeadingAccent::TEXT_ALIGN, 'left'),
|
||||||
|
'symbol' => HeadingAccent::symbol($settings),
|
||||||
|
'symbolSize' => $pick('symbol_size', self::SYMBOL_SIZE, 's'),
|
||||||
|
'symbolAlign' => $pick('symbol_align', HeadingAccent::ALIGN, 'top'),
|
||||||
|
'surface' => $pick('surface', self::SURFACE, null),
|
||||||
|
'border' => ($settings['border'] ?? null) === 'line',
|
||||||
|
'bar' => $pick('bar', self::BAR, null),
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Das Skript der Hinweiszeile (resources/js/notice.js) ohne Kommentare, zum Einbetten in die Seite. Es steht beim ersten
|
||||||
|
* Hinweis einer Seite inline im Quelltext und entscheidet dort über die Darstellung, bevor der Browser die folgenden
|
||||||
|
* Inhalte malt; sonst spränge ein Hinweis nach dem Laden vom vollen Text zur Kurzdarstellung. Dieselbe Datei läuft auch
|
||||||
|
* als Modul (app.js) für dynamisch eingefügte Hinweise.
|
||||||
|
*/
|
||||||
|
public static function bootScript(): string
|
||||||
|
{
|
||||||
|
$file = resource_path('js/notice.js');
|
||||||
|
|
||||||
|
// Fehlt die Datei im Abbild, bleibt die Seite lesbar: Das Modul (app.js) übernimmt, nur ein Sprung beim Laden ist möglich.
|
||||||
|
if (! is_readable($file)) {
|
||||||
|
return '';
|
||||||
|
}
|
||||||
|
|
||||||
|
$source = (string) file_get_contents($file);
|
||||||
|
$source = (string) preg_replace('#/\*.*?\*/#s', '', $source);
|
||||||
|
$source = (string) preg_replace('#^\s*//.*$#m', '', $source);
|
||||||
|
|
||||||
|
return trim((string) preg_replace('/\n\s*\n+/', "\n", $source));
|
||||||
|
}
|
||||||
|
|
||||||
|
public function key(): string
|
||||||
|
{
|
||||||
|
return 'notice';
|
||||||
|
}
|
||||||
|
|
||||||
|
public function label(): string
|
||||||
|
{
|
||||||
|
return 'Hinweiszeile';
|
||||||
|
}
|
||||||
|
|
||||||
|
public function description(): string
|
||||||
|
{
|
||||||
|
return 'Kompakter Hinweis mit formatiertem Text und Symbol, wahlweise mit aufklappbarer Kurzdarstellung.';
|
||||||
|
}
|
||||||
|
|
||||||
|
public function supportedUnits(): array
|
||||||
|
{
|
||||||
|
return [1, 2, 3, 4];
|
||||||
|
}
|
||||||
|
|
||||||
|
public function preferredUnits(): int
|
||||||
|
{
|
||||||
|
return 4;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function narrowBehavior(): string
|
||||||
|
{
|
||||||
|
return 'Der Text bricht um, nichts wird abgeschnitten. Je nach Modus wechselt der Hinweis bei geringer Widgetbreite zur aufklappbaren Kurzdarstellung; die Breite des Widgets entscheidet, nicht die des Fensters.';
|
||||||
|
}
|
||||||
|
|
||||||
|
public function stages(): array
|
||||||
|
{
|
||||||
|
return [
|
||||||
|
'narrow' => 'Modus „Responsiv“: Kurzdarstellung (bei Zeilengrenze nur, wenn der Volltext mehr Zeilen braucht)',
|
||||||
|
'wide' => 'vollständiger Text; im Modus „Immer mit Kurzdarstellung starten“ auch hier zuerst die Kurzdarstellung',
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
||||||
|
public function icon(): string
|
||||||
|
{
|
||||||
|
return 'heroicon-o-information-circle';
|
||||||
|
}
|
||||||
|
|
||||||
|
public function schematic(): array
|
||||||
|
{
|
||||||
|
return [[2, 11, 56, 14, 'line'], [2, 11, 2, 14, 'accent'], [8, 15, 30, 3, 'ink'], [8, 20, 44, 2, 'line']];
|
||||||
|
}
|
||||||
|
|
||||||
|
public function dataRules(): array
|
||||||
|
{
|
||||||
|
return [
|
||||||
|
'text' => ['required', 'string', 'max:'.self::TEXT_MAX_LENGTH],
|
||||||
|
'short' => ['nullable', 'string', 'max:'.self::SHORT_MAX_LENGTH],
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
||||||
|
public function dataFields(): array
|
||||||
|
{
|
||||||
|
return [
|
||||||
|
RichField::make('text', 'Vollständiger Text', website: true)
|
||||||
|
->required()
|
||||||
|
->helperText('Der ganze Hinweis. Wie beim Fließtext: fett, kursiv, Farbmarkierungen (Marine, Grün, Rot, Grau), Links, Listen und Ausrichtung. Im Modus „Volltext“ ist das der einzige Text, der angezeigt wird.'),
|
||||||
|
RichField::make('short', 'Kurztext (optional)', website: true)
|
||||||
|
->helperText('Die Kurzdarstellung für die Modi „Responsiv“ und „Immer mit Kurzdarstellung starten“, am besten ein Satz. Er wird gespeichert, auch wenn der Modus „Volltext“ gewählt ist, und geht beim Wechsel des Modus nicht verloren. Ohne Kurztext erscheint immer der vollständige Text.'),
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
||||||
|
public function clean(array $data, array $refs, WidgetErrors $errors): array
|
||||||
|
{
|
||||||
|
$text = FormattedText::canonical(is_string($data['text'] ?? null) ? $data['text'] : '', true);
|
||||||
|
$short = FormattedText::canonical(is_string($data['short'] ?? null) ? $data['short'] : '', true);
|
||||||
|
|
||||||
|
if ($text === '') {
|
||||||
|
$errors->add('data.text', 'Bitte den vollständigen Text eingeben.');
|
||||||
|
}
|
||||||
|
|
||||||
|
// Die Schlüssel stehen nur, wenn sie ausgefüllt sind; ein leerer Kurztext bleibt byteweise ohne Spur.
|
||||||
|
$data['text'] = $text;
|
||||||
|
|
||||||
|
if ($short === '') {
|
||||||
|
unset($data['short']);
|
||||||
|
} else {
|
||||||
|
$data['short'] = $short;
|
||||||
|
}
|
||||||
|
|
||||||
|
return [$data, $refs];
|
||||||
|
}
|
||||||
|
|
||||||
|
public function resolve(array $widget, RenderContext $context): array
|
||||||
|
{
|
||||||
|
$text = $widget['data']['text'] ?? null;
|
||||||
|
$short = $widget['data']['short'] ?? null;
|
||||||
|
$shortHtml = is_string($short) && trim($short) !== '' ? ProseWidget::render($short) : '';
|
||||||
|
$layout = self::layout($widget['settings'] ?? [], $shortHtml !== '');
|
||||||
|
|
||||||
|
return [
|
||||||
|
'textHtml' => is_string($text) && trim($text) !== '' ? ProseWidget::render($text) : '',
|
||||||
|
'shortHtml' => $shortHtml,
|
||||||
|
'layout' => $layout,
|
||||||
|
// Nur die Vorschau weist darauf hin, dass ein gewählter Modus ohne Kurztext nichts einklappen kann.
|
||||||
|
'notice' => $context->preview && $shortHtml === '' && self::layout($widget['settings'] ?? [])['mode'] !== 'full'
|
||||||
|
? 'Der gewählte Modus braucht einen Kurztext. Ohne ihn erscheint der vollständige Text immer.'
|
||||||
|
: null,
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
||||||
|
public function settings(): array
|
||||||
|
{
|
||||||
|
return [
|
||||||
|
'mode' => self::MODE,
|
||||||
|
'line_limit' => self::LINE_LIMIT,
|
||||||
|
'narrow' => self::NARROW,
|
||||||
|
'size' => self::SIZE,
|
||||||
|
'align' => HeadingAccent::TEXT_ALIGN,
|
||||||
|
'symbol' => HeadingAccent::symbols(),
|
||||||
|
'symbol_size' => self::SYMBOL_SIZE,
|
||||||
|
'symbol_align' => HeadingAccent::ALIGN,
|
||||||
|
'surface' => self::SURFACE,
|
||||||
|
'border' => self::BORDER,
|
||||||
|
'bar' => self::BAR,
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
||||||
|
public function settingGroups(): array
|
||||||
|
{
|
||||||
|
return [
|
||||||
|
'Darstellungsmodus' => ['mode', 'narrow', 'line_limit'],
|
||||||
|
'Text' => ['size', 'align'],
|
||||||
|
'Symbol' => ['symbol', 'symbol_size', 'symbol_align'],
|
||||||
|
'Fläche' => ['surface', 'border', 'bar'],
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
||||||
|
public function settingLabels(): array
|
||||||
|
{
|
||||||
|
return [
|
||||||
|
'mode' => ['Darstellungsmodus', 'Volltext (Vorgabe): Der ganze Hinweis ist immer sichtbar. Responsiv: Breit der ganze Text, bei wenig Platz die Kurzdarstellung mit Pfeil zum Aufklappen. Immer mit Kurzdarstellung starten: Auf jeder Breite zuerst der Kurztext, ein Klick zeigt den ganzen Text, ein weiterer Klick klappt wieder zu. Die Kurzdarstellung ist beim Laden immer eingeklappt. Beide Fassungen bleiben beim Wechsel erhalten; ohne Kurztext erscheint immer der vollständige Text.'],
|
||||||
|
'narrow' => ['Wann gilt „wenig Platz“?', 'Gemessen wird die Breite des Widgets, nicht die des Fensters: Ein Hinweis in einer schmalen Spalte klappt früher ein als derselbe Hinweis über die ganze Seite. Wirkt nur im Modus „Responsiv“. Vorgabe: unter 40 rem (etwa 640 px).'],
|
||||||
|
'line_limit' => ['Zeilengrenze', 'Nur bei wenig Platz und nur im Modus „Responsiv“: Die Kurzdarstellung erscheint, wenn der vollständige Text bei der tatsächlichen Breite mehr Zeilen braucht als gewählt (gezählt werden umgebrochene Textzeilen). Es werden nie Zeilen abgeschnitten. Ohne Grenze (Vorgabe) steht bei wenig Platz immer die Kurzdarstellung. Im Modus „Immer mit Kurzdarstellung starten“ wird die Grenze nicht berücksichtigt.'],
|
||||||
|
'size' => ['Schriftgröße', 'XS, S (Vorgabe), M und L. S, M und L sind die Stufen „klein“, „Text“ und „Einleitung“ des Designsystems; XS ist etwas kleiner (13 px) und nur für Randbemerkungen gedacht.'],
|
||||||
|
'align' => ['Ausrichtung', 'Richtet den Text aus. Vorgabe: linksbündig.'],
|
||||||
|
'symbol' => ['Symbol', 'Kleine Grafik aus dem Brand-Kit vor dem Text. Sie ist reine Zierde und wird von Hilfstechnik nicht vorgelesen. Vorgabe: kein Symbol.'],
|
||||||
|
'symbol_size' => ['Größe des Symbols', 'Unabhängig von der Schriftgröße: von sehr klein (1 rem) bis sehr groß (3,5 rem). Vorgabe: Klein. Wirkt nur, wenn ein Symbol gewählt ist.'],
|
||||||
|
'symbol_align' => ['Senkrechte Lage des Symbols', 'Oben (Vorgabe, auf Höhe der ersten Zeile), Mitte oder Unten. Wirkt nur, wenn ein Symbol gewählt ist.'],
|
||||||
|
'surface' => ['Hintergrundfläche', 'Eine dezente Fläche hinter dem Hinweis (Farben des Designsystems). Auf der Fläche ist die Schrift immer dunkel, auch auf dunklen Abschnitten. Vorgabe: ohne Fläche, der Hinweis steht auf dem Abschnitt.'],
|
||||||
|
'border' => ['Rahmen', 'Ein feiner Rahmen um den Hinweis. Vorgabe: ohne.'],
|
||||||
|
'bar' => ['Akzentlinie', 'Eine farbige Linie links oder oben am Hinweis. Vorgabe: ohne.'],
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
||||||
|
public function summary(array $widget): string
|
||||||
|
{
|
||||||
|
$html = FormattedText::canonical(is_string($widget['data']['text'] ?? null) ? $widget['data']['text'] : '', true);
|
||||||
|
$text = trim((string) preg_replace('/\s+/u', ' ', html_entity_decode(strip_tags((string) preg_replace('#</(?:p|li|blockquote)>#', ' $0', $html)), ENT_QUOTES | ENT_HTML5, 'UTF-8')));
|
||||||
|
|
||||||
|
return mb_strlen($text) > 120 ? rtrim(mb_substr($text, 0, 119)).'…' : $text;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -2,9 +2,11 @@
|
|||||||
|
|
||||||
namespace App\Filament\Pages;
|
namespace App\Filament\Pages;
|
||||||
|
|
||||||
|
use App\Domain\Cms\LinkTargets;
|
||||||
use App\Domain\Cms\NavigationItem;
|
use App\Domain\Cms\NavigationItem;
|
||||||
use App\Domain\Cms\Page as CmsPage;
|
use App\Domain\Cms\Page as CmsPage;
|
||||||
use App\Domain\Cms\PageService;
|
use App\Domain\Cms\PageService;
|
||||||
|
use App\Domain\Cms\Sections\PageSections;
|
||||||
use App\Domain\Cms\Widgets\Support\SafeUrl;
|
use App\Domain\Cms\Widgets\Support\SafeUrl;
|
||||||
use App\Filament\Resources\Pages\PageResource;
|
use App\Filament\Resources\Pages\PageResource;
|
||||||
use App\Filament\Support\Bestand;
|
use App\Filament\Support\Bestand;
|
||||||
@@ -74,7 +76,7 @@ class Webpraesenz extends Page
|
|||||||
/** Ausgewählter Eintrag (Schlüssel „e{id}“ oder „n{zähler}“ für neue Einträge). */
|
/** Ausgewählter Eintrag (Schlüssel „e{id}“ oder „n{zähler}“ für neue Einträge). */
|
||||||
public ?string $auswahl = null;
|
public ?string $auswahl = null;
|
||||||
|
|
||||||
/** @var array<string, array{id: ?int, label: string, page_id: ?int, url: string, placement: string, parent: ?string, is_visible: bool}> */
|
/** @var array<string, array{id: ?int, label: string, page_id: ?int, url: string, anchor: string, placement: string, parent: ?string, is_visible: bool}> */
|
||||||
public array $eintraege = [];
|
public array $eintraege = [];
|
||||||
|
|
||||||
/** Globale Reihenfolge der Schlüssel; entspricht sort_order. @var list<string> */
|
/** Globale Reihenfolge der Schlüssel; entspricht sort_order. @var list<string> */
|
||||||
@@ -103,6 +105,9 @@ class Webpraesenz extends Page
|
|||||||
/** Eintrag, dessen Ziel gerade gewählt wird. */
|
/** Eintrag, dessen Ziel gerade gewählt wird. */
|
||||||
public ?string $zielwahl = null;
|
public ?string $zielwahl = null;
|
||||||
|
|
||||||
|
/** Zweiter Schritt der Zielwahl: gewählte Seite, deren Sprungmarke noch zu wählen ist. */
|
||||||
|
public ?int $zielSeite = null;
|
||||||
|
|
||||||
public string $zielSuche = '';
|
public string $zielSuche = '';
|
||||||
|
|
||||||
public static function canAccess(): bool
|
public static function canAccess(): bool
|
||||||
@@ -327,6 +332,7 @@ public function ladeMenues(): void
|
|||||||
'label' => (string) $item->label,
|
'label' => (string) $item->label,
|
||||||
'page_id' => $item->page_id,
|
'page_id' => $item->page_id,
|
||||||
'url' => (string) ($item->url ?? ''),
|
'url' => (string) ($item->url ?? ''),
|
||||||
|
'anchor' => (string) ($item->anchor ?? ''),
|
||||||
'placement' => (string) $item->placement,
|
'placement' => (string) $item->placement,
|
||||||
'parent' => $item->parent_id !== null ? 'e'.$item->parent_id : null,
|
'parent' => $item->parent_id !== null ? 'e'.$item->parent_id : null,
|
||||||
'is_visible' => (bool) $item->is_visible,
|
'is_visible' => (bool) $item->is_visible,
|
||||||
@@ -364,6 +370,7 @@ private function bereichsStaende(): array
|
|||||||
trim($e['label']),
|
trim($e['label']),
|
||||||
$e['page_id'] !== null ? (int) $e['page_id'] : null,
|
$e['page_id'] !== null ? (int) $e['page_id'] : null,
|
||||||
trim($e['url']),
|
trim($e['url']),
|
||||||
|
trim($e['anchor'] ?? ''),
|
||||||
(bool) $e['is_visible'],
|
(bool) $e['is_visible'],
|
||||||
$this->elternVon($k),
|
$this->elternVon($k),
|
||||||
];
|
];
|
||||||
@@ -562,6 +569,7 @@ public function eintragHinzufuegen(): void
|
|||||||
'label' => '',
|
'label' => '',
|
||||||
'page_id' => null,
|
'page_id' => null,
|
||||||
'url' => '',
|
'url' => '',
|
||||||
|
'anchor' => '',
|
||||||
'placement' => $this->menue,
|
'placement' => $this->menue,
|
||||||
'parent' => null,
|
'parent' => null,
|
||||||
'is_visible' => true,
|
'is_visible' => true,
|
||||||
@@ -595,7 +603,7 @@ public function updatedEintraege(mixed $value, string $pfad): void
|
|||||||
match ($feld) {
|
match ($feld) {
|
||||||
'placement' => $this->bereichGeaendert($k),
|
'placement' => $this->bereichGeaendert($k),
|
||||||
'parent' => $this->elternGeaendert($k),
|
'parent' => $this->elternGeaendert($k),
|
||||||
'page_id' => $this->eintraege[$k]['page_id'] = blank($value) ? null : (int) $value,
|
'page_id' => $this->seiteGeaendert($k, $value),
|
||||||
'is_visible' => $this->eintraege[$k]['is_visible'] = (bool) $value,
|
'is_visible' => $this->eintraege[$k]['is_visible'] = (bool) $value,
|
||||||
default => null,
|
default => null,
|
||||||
};
|
};
|
||||||
@@ -673,10 +681,18 @@ private function ansEnde(string $k): void
|
|||||||
$this->folge = [...array_values(array_filter($this->folge, fn (string $x): bool => $x !== $k)), $k];
|
$this->folge = [...array_values(array_filter($this->folge, fn (string $x): bool => $x !== $k)), $k];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** Eine andere Zielseite hat eigene Sprungmarken: Die bisherige Marke entfällt. */
|
||||||
|
private function seiteGeaendert(string $k, mixed $value): void
|
||||||
|
{
|
||||||
|
$this->eintraege[$k]['page_id'] = blank($value) ? null : (int) $value;
|
||||||
|
$this->eintraege[$k]['anchor'] = '';
|
||||||
|
}
|
||||||
|
|
||||||
public function zielAdresseNutzen(string $k): void
|
public function zielAdresseNutzen(string $k): void
|
||||||
{
|
{
|
||||||
if (isset($this->eintraege[$k])) {
|
if (isset($this->eintraege[$k])) {
|
||||||
$this->eintraege[$k]['page_id'] = null;
|
$this->eintraege[$k]['page_id'] = null;
|
||||||
|
$this->eintraege[$k]['anchor'] = '';
|
||||||
$this->js("requestAnimationFrame(() => document.getElementById('menue-adresse')?.focus())");
|
$this->js("requestAnimationFrame(() => document.getElementById('menue-adresse')?.focus())");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -692,6 +708,7 @@ public function oeffneZielwahl(string $k): void
|
|||||||
public function schliesseZielwahl(): void
|
public function schliesseZielwahl(): void
|
||||||
{
|
{
|
||||||
$this->zielwahl = null;
|
$this->zielwahl = null;
|
||||||
|
$this->zielSeite = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function waehleZiel(int $seiteId): void
|
public function waehleZiel(int $seiteId): void
|
||||||
@@ -702,8 +719,48 @@ public function waehleZiel(int $seiteId): void
|
|||||||
|
|
||||||
$this->eintraege[$this->zielwahl]['page_id'] = $seiteId;
|
$this->eintraege[$this->zielwahl]['page_id'] = $seiteId;
|
||||||
$this->eintraege[$this->zielwahl]['url'] = '';
|
$this->eintraege[$this->zielwahl]['url'] = '';
|
||||||
|
$this->eintraege[$this->zielwahl]['anchor'] = '';
|
||||||
$this->resetErrorBag("eintraege.{$this->zielwahl}.url");
|
$this->resetErrorBag("eintraege.{$this->zielwahl}.url");
|
||||||
$this->zielwahl = null;
|
|
||||||
|
// Hat die Seite Sprungmarken, folgt als zweiter Schritt die Wahl der Marke; sonst ist die Auswahl fertig.
|
||||||
|
if ($this->zielMarken($seiteId) !== []) {
|
||||||
|
$this->zielSeite = $seiteId;
|
||||||
|
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
$this->schliesseZielwahl();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Zweiter Schritt von „Ziel ändern“: Sprungmarke der gewählten Seite übernehmen (leer = Seitenanfang).
|
||||||
|
*/
|
||||||
|
public function waehleMarke(?string $marke = null): void
|
||||||
|
{
|
||||||
|
if ($this->zielwahl === null || $this->zielSeite === null || ! isset($this->eintraege[$this->zielwahl])) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
$marke = filled($marke) ? $marke : null;
|
||||||
|
|
||||||
|
if ($marke !== null && ! in_array($marke, array_column($this->zielMarken($this->zielSeite), 'anchor'), true)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
$this->eintraege[$this->zielwahl]['anchor'] = $marke ?? '';
|
||||||
|
$this->schliesseZielwahl();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sprungmarken einer Seite für den zweiten Schritt.
|
||||||
|
*
|
||||||
|
* @return list<array{anchor: string, label: string, hidden: bool, published: bool}>
|
||||||
|
*/
|
||||||
|
public function zielMarken(int $seiteId): array
|
||||||
|
{
|
||||||
|
$seite = $this->seitenCache()->get($seiteId);
|
||||||
|
|
||||||
|
return $seite === null ? [] : app(LinkTargets::class)->anchorsForPage($seite);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -755,7 +812,7 @@ public function zielVon(string $k): array
|
|||||||
|
|
||||||
return $seite === null
|
return $seite === null
|
||||||
? ['art' => 'fehlt', 'titel' => null, 'pfad' => null, 'zustand' => ['label' => 'Zielseite nicht mehr vorhanden', 'ton' => 'achtung'], 'seite' => null]
|
? ['art' => 'fehlt', 'titel' => null, 'pfad' => null, 'zustand' => ['label' => 'Zielseite nicht mehr vorhanden', 'ton' => 'achtung'], 'seite' => null]
|
||||||
: ['art' => 'seite', 'titel' => $seite->latestRevision?->contentTitle() ?: $seite->path, 'pfad' => $seite->path, 'zustand' => $this->seitenZustand($seite), 'seite' => $seite];
|
: ['art' => 'seite', 'titel' => $seite->latestRevision?->contentTitle() ?: $seite->path, 'pfad' => $seite->path.(trim($e['anchor'] ?? '') !== '' ? '#'.trim($e['anchor']) : ''), 'zustand' => $this->seitenZustand($seite), 'seite' => $seite];
|
||||||
}
|
}
|
||||||
|
|
||||||
if (trim($e['url']) !== '') {
|
if (trim($e['url']) !== '') {
|
||||||
@@ -919,6 +976,7 @@ private function pruefen(): array
|
|||||||
|| $alt->label !== $e['label']
|
|| $alt->label !== $e['label']
|
||||||
|| $alt->page_id !== ($e['page_id'] !== null ? (int) $e['page_id'] : null)
|
|| $alt->page_id !== ($e['page_id'] !== null ? (int) $e['page_id'] : null)
|
||||||
|| (string) ($alt->url ?? '') !== $e['url']
|
|| (string) ($alt->url ?? '') !== $e['url']
|
||||||
|
|| (string) ($alt->anchor ?? '') !== trim($e['anchor'] ?? '')
|
||||||
|| $alt->placement !== $e['placement']
|
|| $alt->placement !== $e['placement']
|
||||||
|| ($alt->parent_id !== null ? 'e'.$alt->parent_id : null) !== $this->elternVon($k)
|
|| ($alt->parent_id !== null ? 'e'.$alt->parent_id : null) !== $this->elternVon($k)
|
||||||
|| (bool) $alt->is_visible !== (bool) $e['is_visible']
|
|| (bool) $alt->is_visible !== (bool) $e['is_visible']
|
||||||
@@ -936,16 +994,19 @@ private function pruefen(): array
|
|||||||
'placement' => $e['placement'],
|
'placement' => $e['placement'],
|
||||||
'page_id' => $e['page_id'],
|
'page_id' => $e['page_id'],
|
||||||
'url' => trim($e['url']) === '' ? null : trim($e['url']),
|
'url' => trim($e['url']) === '' ? null : trim($e['url']),
|
||||||
|
'anchor' => trim($e['anchor'] ?? '') === '' ? null : trim($e['anchor']),
|
||||||
], [
|
], [
|
||||||
'label' => ['required', 'string', 'max:80'],
|
'label' => ['required', 'string', 'max:80'],
|
||||||
'placement' => ['required', 'in:'.implode(',', array_keys(self::BEREICHE))],
|
'placement' => ['required', 'in:'.implode(',', array_keys(self::BEREICHE))],
|
||||||
'page_id' => ['nullable', 'integer', 'exists:pages,id'],
|
'page_id' => ['nullable', 'integer', 'exists:pages,id'],
|
||||||
'url' => ['nullable', 'string', 'max:500', SafeUrl::rule()],
|
'url' => ['nullable', 'string', 'max:500', SafeUrl::rule()],
|
||||||
|
'anchor' => ['nullable', 'string', 'max:'.PageSections::MAX_ANCHOR, 'regex:'.PageSections::ANCHOR_PATTERN],
|
||||||
], [
|
], [
|
||||||
'label.required' => 'Bitte einen Menütext eingeben.',
|
'label.required' => 'Bitte einen Menütext eingeben.',
|
||||||
'label.max' => 'Der Menütext hat höchstens 80 Zeichen.',
|
'label.max' => 'Der Menütext hat höchstens 80 Zeichen.',
|
||||||
'url.max' => 'Die Adresse hat höchstens 500 Zeichen.',
|
'url.max' => 'Die Adresse hat höchstens 500 Zeichen.',
|
||||||
'page_id.exists' => 'Diese Seite gibt es nicht mehr.',
|
'page_id.exists' => 'Diese Seite gibt es nicht mehr.',
|
||||||
|
'anchor.regex' => 'Die Sprungmarke ist ungültig. Bitte über „Ziel ändern“ eine vorhandene wählen.',
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$meldungen = $validator->errors()->toArray();
|
$meldungen = $validator->errors()->toArray();
|
||||||
@@ -1044,6 +1105,8 @@ private function schreiben(array $geaendert): array
|
|||||||
'label' => trim($e['label']),
|
'label' => trim($e['label']),
|
||||||
'page_id' => $e['page_id'] !== null ? (int) $e['page_id'] : null,
|
'page_id' => $e['page_id'] !== null ? (int) $e['page_id'] : null,
|
||||||
'url' => trim($e['url']) === '' ? null : trim($e['url']),
|
'url' => trim($e['url']) === '' ? null : trim($e['url']),
|
||||||
|
// Eine Sprungmarke gehört zur Zielseite; ohne Seite (freie Adresse) entfällt sie.
|
||||||
|
'anchor' => $e['page_id'] !== null && trim($e['anchor'] ?? '') !== '' ? trim($e['anchor']) : null,
|
||||||
'placement' => $e['placement'],
|
'placement' => $e['placement'],
|
||||||
'parent_id' => $eltern !== null ? ($ids[$eltern] ?? $this->eintraege[$eltern]['id']) : null,
|
'parent_id' => $eltern !== null ? ($ids[$eltern] ?? $this->eintraege[$eltern]['id']) : null,
|
||||||
'is_visible' => (bool) $e['is_visible'],
|
'is_visible' => (bool) $e['is_visible'],
|
||||||
|
|||||||
@@ -6,6 +6,7 @@
|
|||||||
use App\Domain\Cms\Page;
|
use App\Domain\Cms\Page;
|
||||||
use App\Domain\Cms\PageService;
|
use App\Domain\Cms\PageService;
|
||||||
use App\Filament\Resources\Pages\PageResource;
|
use App\Filament\Resources\Pages\PageResource;
|
||||||
|
use App\Filament\Support\ChoosesLinkTargets;
|
||||||
use App\Filament\Support\ChoosesWebsiteImages;
|
use App\Filament\Support\ChoosesWebsiteImages;
|
||||||
use App\Filament\Support\ReportsSectionErrors;
|
use App\Filament\Support\ReportsSectionErrors;
|
||||||
use App\Filament\Support\SectionEditor;
|
use App\Filament\Support\SectionEditor;
|
||||||
@@ -18,6 +19,7 @@
|
|||||||
|
|
||||||
class CreatePage extends CreateRecord
|
class CreatePage extends CreateRecord
|
||||||
{
|
{
|
||||||
|
use ChoosesLinkTargets;
|
||||||
use ChoosesWebsiteImages;
|
use ChoosesWebsiteImages;
|
||||||
use ReportsSectionErrors;
|
use ReportsSectionErrors;
|
||||||
|
|
||||||
|
|||||||
@@ -6,6 +6,7 @@
|
|||||||
use App\Domain\Cms\Page;
|
use App\Domain\Cms\Page;
|
||||||
use App\Domain\Cms\PageService;
|
use App\Domain\Cms\PageService;
|
||||||
use App\Filament\Resources\Pages\PageResource;
|
use App\Filament\Resources\Pages\PageResource;
|
||||||
|
use App\Filament\Support\ChoosesLinkTargets;
|
||||||
use App\Filament\Support\ChoosesWebsiteImages;
|
use App\Filament\Support\ChoosesWebsiteImages;
|
||||||
use App\Filament\Support\ReportsSectionErrors;
|
use App\Filament\Support\ReportsSectionErrors;
|
||||||
use App\Filament\Support\SectionEditor;
|
use App\Filament\Support\SectionEditor;
|
||||||
@@ -22,6 +23,7 @@
|
|||||||
|
|
||||||
class EditPage extends EditRecord
|
class EditPage extends EditRecord
|
||||||
{
|
{
|
||||||
|
use ChoosesLinkTargets;
|
||||||
use ChoosesWebsiteImages;
|
use ChoosesWebsiteImages;
|
||||||
use ReportsSectionErrors;
|
use ReportsSectionErrors;
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,215 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Filament\Support;
|
||||||
|
|
||||||
|
use App\Domain\Cms\LinkTargets;
|
||||||
|
use App\Domain\Cms\Page;
|
||||||
|
use App\Domain\Cms\Widgets\Support\SafeUrl;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Auswahl interner Linkziele im CMS über einen Dialog (filament.cms.link-picker): erst die Seite, dann auf Wunsch eine
|
||||||
|
* Sprungmarke. Ein Linkfeld (Widgets\Support\LinkField) öffnet den Dialog mit seinem Formularpfad; „übernehmen“ schreibt die Adresse in
|
||||||
|
* genau dieses Feld, auch im geöffneten Bausteindialog. Gespeichert wird weiterhin nur mit dem Seitenentwurf. Die
|
||||||
|
* Auswahl ändert keine Seite und veröffentlicht nichts.
|
||||||
|
*
|
||||||
|
* Die Sprungmarken der Seite, die gerade bearbeitet wird, stammen aus dem Formular und enthalten damit auch
|
||||||
|
* ungespeicherte Marken.
|
||||||
|
*/
|
||||||
|
trait ChoosesLinkTargets
|
||||||
|
{
|
||||||
|
/** Formularpfad des Linkfelds, in das die Adresse übernommen wird; null = Dialog geschlossen. */
|
||||||
|
public ?string $linkZiel = null;
|
||||||
|
|
||||||
|
public string $linkSuche = '';
|
||||||
|
|
||||||
|
/** Gewählte Seite im zweiten Schritt: „diese“ (Seite im Editor) oder die Kennung einer Seite. */
|
||||||
|
public ?string $linkSeite = null;
|
||||||
|
|
||||||
|
public function openLinkPicker(string $pfad): void
|
||||||
|
{
|
||||||
|
if (preg_match('/^(data|mountedActions\.\d+\.data)(\.[A-Za-z0-9_-]+)+$/', $pfad) !== 1) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
$this->linkZiel = $pfad;
|
||||||
|
$this->linkSuche = '';
|
||||||
|
$this->linkSeite = null;
|
||||||
|
$this->forceRenderForLinkPicker();
|
||||||
|
}
|
||||||
|
|
||||||
|
public function closeLinkPicker(): void
|
||||||
|
{
|
||||||
|
$this->linkZiel = null;
|
||||||
|
$this->linkSeite = null;
|
||||||
|
$this->linkSuche = '';
|
||||||
|
$this->forceRenderForLinkPicker();
|
||||||
|
}
|
||||||
|
|
||||||
|
public function chooseLinkPage(string $key): void
|
||||||
|
{
|
||||||
|
if ($this->linkZiel === null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($key === 'diese' ? ! $this->linkHasOwnPage() : ! Page::query()->whereKey((int) $key)->exists()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
$this->linkSeite = $key;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function backToLinkPages(): void
|
||||||
|
{
|
||||||
|
$this->linkSeite = null;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param ?string $anchor Sprungmarke; leer = Seitenanfang (nur für andere Seiten)
|
||||||
|
*/
|
||||||
|
public function applyLink(?string $anchor = null): void
|
||||||
|
{
|
||||||
|
if ($this->linkZiel === null || $this->linkSeite === null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
$targets = app(LinkTargets::class);
|
||||||
|
$anchor = filled($anchor) ? $anchor : null;
|
||||||
|
|
||||||
|
if ($this->linkSeite === 'diese') {
|
||||||
|
$known = array_column($targets->anchorsInEditor($this->linkEditorSections()), 'anchor');
|
||||||
|
|
||||||
|
if ($anchor === null || ! in_array($anchor, $known, true)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
$href = $targets->href(null, $anchor);
|
||||||
|
} else {
|
||||||
|
$page = Page::query()->with(['latestRevision', 'publishedRevision'])->find((int) $this->linkSeite);
|
||||||
|
|
||||||
|
if (! $page instanceof Page) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($anchor !== null && ! in_array($anchor, array_column($targets->anchorsForPage($page), 'anchor'), true)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
$href = $targets->href($page->path, $anchor);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (! SafeUrl::isSafe($href)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
data_set($this, $this->linkZiel, $href);
|
||||||
|
$this->closeLinkPicker();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Seiten im ersten Schritt (ohne die bearbeitete Seite, die als „Diese Seite“ oben steht).
|
||||||
|
*
|
||||||
|
* @return list<array<string, mixed>>
|
||||||
|
*/
|
||||||
|
public function linkPages(): array
|
||||||
|
{
|
||||||
|
return app(LinkTargets::class)->pages($this->linkSuche, $this->linkOwnPageId());
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Daten des zweiten Schritts: gewählte Seite, ihre Sprungmarken und die vollständige Adresse.
|
||||||
|
*
|
||||||
|
* @return array{titel: string, pfad: ?string, diese: bool, marken: list<array<string, mixed>>, offen: bool, adresse: ?string}|null
|
||||||
|
*/
|
||||||
|
public function linkChosen(): ?array
|
||||||
|
{
|
||||||
|
if ($this->linkSeite === null) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
$targets = app(LinkTargets::class);
|
||||||
|
|
||||||
|
if ($this->linkSeite === 'diese') {
|
||||||
|
$record = $this->linkOwnPage();
|
||||||
|
|
||||||
|
return [
|
||||||
|
'titel' => 'Diese Seite',
|
||||||
|
'pfad' => $record?->path,
|
||||||
|
'diese' => true,
|
||||||
|
'marken' => $targets->anchorsInEditor($this->linkEditorSections()),
|
||||||
|
'offen' => $record === null,
|
||||||
|
'adresse' => $record?->published_revision_id !== null ? $targets->publicUrl($record) : null,
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
||||||
|
$page = Page::query()->with(['latestRevision', 'publishedRevision'])->find((int) $this->linkSeite);
|
||||||
|
|
||||||
|
if (! $page instanceof Page) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
return [
|
||||||
|
'titel' => $page->latestRevision?->contentTitle() ?: $page->path,
|
||||||
|
'pfad' => $page->path,
|
||||||
|
'diese' => false,
|
||||||
|
'marken' => $targets->anchorsForPage($page),
|
||||||
|
'offen' => false,
|
||||||
|
'adresse' => $page->published_revision_id !== null ? $targets->publicUrl($page) : null,
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Hat die Seite im Editor schon Sprungmarken oder eine Adresse? Neue Seiten dürfen auf ihre eigenen Marken zeigen. */
|
||||||
|
public function linkHasOwnPage(): bool
|
||||||
|
{
|
||||||
|
return property_exists($this, 'data');
|
||||||
|
}
|
||||||
|
|
||||||
|
public function linkOwnPage(): ?Page
|
||||||
|
{
|
||||||
|
$record = property_exists($this, 'record') ? ($this->record ?? null) : null;
|
||||||
|
|
||||||
|
return $record instanceof Page ? $record : null;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sprungmarken der Seite im Editor (auch ungespeicherte).
|
||||||
|
*
|
||||||
|
* @return list<array<string, mixed>>
|
||||||
|
*/
|
||||||
|
public function linkOwnAnchors(): array
|
||||||
|
{
|
||||||
|
return $this->linkHasOwnPage() ? app(LinkTargets::class)->anchorsInEditor($this->linkEditorSections()) : [];
|
||||||
|
}
|
||||||
|
|
||||||
|
private function linkOwnPageId(): ?int
|
||||||
|
{
|
||||||
|
return $this->linkOwnPage()?->getKey();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return list<array<string, mixed>>
|
||||||
|
*/
|
||||||
|
private function linkEditorSections(): array
|
||||||
|
{
|
||||||
|
$state = is_array($this->data['sections'] ?? null) ? $this->data['sections'] : [];
|
||||||
|
|
||||||
|
return SectionEditor::fromEditorState($state);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Filament rendert bei offenen Aktionsdialogen nur den Dialogteil neu; der Auswahldialog liegt darüber und braucht
|
||||||
|
* die ganze Seite.
|
||||||
|
*/
|
||||||
|
public function hydrateChoosesLinkTargets(): void
|
||||||
|
{
|
||||||
|
if ($this->linkZiel !== null) {
|
||||||
|
$this->forceRenderForLinkPicker();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private function forceRenderForLinkPicker(): void
|
||||||
|
{
|
||||||
|
if (method_exists($this, 'forceRender')) {
|
||||||
|
$this->forceRender();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,159 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Filament\Support;
|
||||||
|
|
||||||
|
use App\Domain\Cms\LinkTargets;
|
||||||
|
use App\Domain\Cms\Page;
|
||||||
|
use App\Domain\Cms\Widgets\Support\SafeUrl;
|
||||||
|
use Filament\Actions\Action;
|
||||||
|
use Filament\Forms\Components\RichEditor;
|
||||||
|
use Filament\Forms\Components\RichEditor\EditorCommand;
|
||||||
|
use Filament\Forms\Components\RichEditor\Plugins\Contracts\RichContentPlugin;
|
||||||
|
use Filament\Forms\Components\RichEditor\RichEditorTool;
|
||||||
|
use Filament\Forms\Components\Select;
|
||||||
|
use Filament\Schemas\Components\Utilities\Get;
|
||||||
|
use Filament\Support\Enums\Width;
|
||||||
|
use Filament\Support\Icons\Heroicon;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Werkzeug „Interne Seite oder Sprungmarke verlinken“ für die Texte der Website: wählt eine Seite der Website und auf
|
||||||
|
* Wunsch eine Sprungmarke und setzt daraus den Link am markierten Text. Es ergänzt das Werkzeug „Link“ (freie Adresse),
|
||||||
|
* ersetzt es nicht. Gleiche Ziele wie der Linkdialog der Felder ({@see ChoosesLinkTargets}); gespeichert wird nur mit dem
|
||||||
|
* Seitenentwurf, veröffentlicht wird nichts.
|
||||||
|
*/
|
||||||
|
final class InternalLinkPlugin implements RichContentPlugin
|
||||||
|
{
|
||||||
|
public function getTipTapPhpExtensions(): array
|
||||||
|
{
|
||||||
|
return [];
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getTipTapJsExtensions(): array
|
||||||
|
{
|
||||||
|
return [];
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getEditorTools(): array
|
||||||
|
{
|
||||||
|
return [
|
||||||
|
RichEditorTool::make('interneSeite')
|
||||||
|
->label('Interne Seite oder Sprungmarke verlinken')
|
||||||
|
->icon(Heroicon::DocumentText)
|
||||||
|
->action(),
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getEditorActions(): array
|
||||||
|
{
|
||||||
|
return [
|
||||||
|
Action::make('interneSeite')
|
||||||
|
->label('Interne Seite oder Sprungmarke verlinken')
|
||||||
|
->modalHeading('Interne Seite oder Sprungmarke verlinken')
|
||||||
|
->modalDescription('Der markierte Text wird zum Link auf eine Seite dieser Website oder auf eine Sprungmarke. Eine freie Adresse setzt das Werkzeug „Link“.')
|
||||||
|
->modalWidth(Width::Large)
|
||||||
|
->modalSubmitActionLabel('Link setzen')
|
||||||
|
->schema([
|
||||||
|
Select::make('seite')
|
||||||
|
->label('Seite')
|
||||||
|
->options(fn ($livewire): array => self::pageOptions($livewire))
|
||||||
|
->searchable()
|
||||||
|
->required()
|
||||||
|
->live()
|
||||||
|
->afterStateUpdated(fn (callable $set) => $set('marke', null)),
|
||||||
|
Select::make('marke')
|
||||||
|
->label('Sprungmarke')
|
||||||
|
->placeholder('Seitenanfang (ohne Sprungmarke)')
|
||||||
|
->options(fn (Get $get, $livewire): array => self::anchorOptions($get('seite'), $livewire))
|
||||||
|
->required(fn (Get $get): bool => $get('seite') === 'diese')
|
||||||
|
->visible(fn (Get $get): bool => filled($get('seite')))
|
||||||
|
->helperText('Ausgeblendete Abschnitte sind gekennzeichnet; ein Link auf sie führt ins Leere.'),
|
||||||
|
])
|
||||||
|
->action(function (array $arguments, array $data, RichEditor $component): void {
|
||||||
|
$href = self::href((string) ($data['seite'] ?? ''), $data['marke'] ?? null, $component->getLivewire());
|
||||||
|
|
||||||
|
if ($href === null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
$collapsed = ($arguments['editorSelection']['head'] ?? null) === ($arguments['editorSelection']['anchor'] ?? null);
|
||||||
|
|
||||||
|
$component->runCommands([
|
||||||
|
...($collapsed ? [EditorCommand::make('extendMarkRange', arguments: ['link'])] : []),
|
||||||
|
EditorCommand::make('setLink', arguments: [['href' => $href, 'target' => null]]),
|
||||||
|
], editorSelection: $arguments['editorSelection']);
|
||||||
|
}),
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return array<string, string>
|
||||||
|
*/
|
||||||
|
private static function pageOptions(mixed $livewire): array
|
||||||
|
{
|
||||||
|
$options = [];
|
||||||
|
|
||||||
|
if (self::editsPage($livewire)) {
|
||||||
|
$options['diese'] = 'Diese Seite';
|
||||||
|
}
|
||||||
|
|
||||||
|
$own = is_object($livewire) && method_exists($livewire, 'linkOwnPage') ? $livewire->linkOwnPage() : null;
|
||||||
|
|
||||||
|
foreach (app(LinkTargets::class)->pages('', $own?->getKey()) as $page) {
|
||||||
|
$options[(string) $page['id']] = $page['titel'].' ('.$page['pfad'].')';
|
||||||
|
}
|
||||||
|
|
||||||
|
return $options;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return array<string, string>
|
||||||
|
*/
|
||||||
|
private static function anchorOptions(mixed $seite, mixed $livewire): array
|
||||||
|
{
|
||||||
|
$anchors = self::anchorsOf((string) $seite, $livewire);
|
||||||
|
|
||||||
|
return collect($anchors)->mapWithKeys(fn (array $anchor): array => [
|
||||||
|
$anchor['anchor'] => $anchor['label'].' (#'.$anchor['anchor'].')'.($anchor['hidden'] ? ' – ausgeblendet' : ''),
|
||||||
|
])->all();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return list<array{anchor: string, label: string, hidden: bool}>
|
||||||
|
*/
|
||||||
|
private static function anchorsOf(string $seite, mixed $livewire): array
|
||||||
|
{
|
||||||
|
$targets = app(LinkTargets::class);
|
||||||
|
|
||||||
|
if ($seite === 'diese') {
|
||||||
|
return self::editsPage($livewire) ? $targets->anchorsInEditor(SectionEditor::fromEditorState(is_array($livewire->data['sections'] ?? null) ? $livewire->data['sections'] : [])) : [];
|
||||||
|
}
|
||||||
|
|
||||||
|
$page = Page::query()->with(['latestRevision', 'publishedRevision'])->find((int) $seite);
|
||||||
|
|
||||||
|
return $page instanceof Page ? $targets->anchorsForPage($page) : [];
|
||||||
|
}
|
||||||
|
|
||||||
|
private static function editsPage(mixed $livewire): bool
|
||||||
|
{
|
||||||
|
return is_object($livewire) && method_exists($livewire, 'linkOwnAnchors');
|
||||||
|
}
|
||||||
|
|
||||||
|
private static function href(string $seite, mixed $anchor, mixed $livewire): ?string
|
||||||
|
{
|
||||||
|
$targets = app(LinkTargets::class);
|
||||||
|
$anchor = is_string($anchor) && $anchor !== '' ? $anchor : null;
|
||||||
|
|
||||||
|
if ($anchor !== null && ! in_array($anchor, array_column(self::anchorsOf($seite, $livewire), 'anchor'), true)) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($seite === 'diese') {
|
||||||
|
$href = self::editsPage($livewire) ? $targets->href(null, $anchor) : null;
|
||||||
|
} else {
|
||||||
|
$page = Page::query()->find((int) $seite);
|
||||||
|
$href = $page instanceof Page ? $targets->href($page->path, $anchor) : null;
|
||||||
|
}
|
||||||
|
|
||||||
|
return SafeUrl::isSafe($href) ? $href : null;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -34,6 +34,8 @@ public static function make(string $name, ?string $label = null, bool $live = tr
|
|||||||
$toolbar = FormattedText::TOOLBAR;
|
$toolbar = FormattedText::TOOLBAR;
|
||||||
|
|
||||||
if ($website) {
|
if ($website) {
|
||||||
|
// Interne Seite oder Sprungmarke verlinken, gleich neben dem freien Link.
|
||||||
|
$toolbar[0] = [...$toolbar[0], 'interneSeite'];
|
||||||
array_splice($toolbar, 1, 0, [['fontSize', 'textColor'], ['alignStart', 'alignCenter', 'alignEnd']]);
|
array_splice($toolbar, 1, 0, [['fontSize', 'textColor'], ['alignStart', 'alignCenter', 'alignEnd']]);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -45,7 +47,7 @@ public static function make(string $name, ?string $label = null, bool $live = tr
|
|||||||
|
|
||||||
if ($website) {
|
if ($website) {
|
||||||
$field
|
$field
|
||||||
->plugins([new FontSizePlugin])
|
->plugins([new FontSizePlugin, new InternalLinkPlugin])
|
||||||
->textColors(Arr::mapWithKeys(
|
->textColors(Arr::mapWithKeys(
|
||||||
FormattedText::SITE_COLORS,
|
FormattedText::SITE_COLORS,
|
||||||
fn (string $label, string $key): array => [$key => TextColor::make($label, self::SITE_COLOR_VALUES[$key])],
|
fn (string $label, string $key): array => [$key => TextColor::make($label, self::SITE_COLOR_VALUES[$key])],
|
||||||
|
|||||||
@@ -11,6 +11,8 @@
|
|||||||
use Filament\Forms\Components\Hidden;
|
use Filament\Forms\Components\Hidden;
|
||||||
use Filament\Forms\Components\Repeater;
|
use Filament\Forms\Components\Repeater;
|
||||||
use Filament\Forms\Components\Select;
|
use Filament\Forms\Components\Select;
|
||||||
|
use Filament\Forms\Components\TextInput;
|
||||||
|
use Filament\Forms\Components\Toggle;
|
||||||
use Filament\Forms\Components\ToggleButtons;
|
use Filament\Forms\Components\ToggleButtons;
|
||||||
use Filament\Notifications\Notification;
|
use Filament\Notifications\Notification;
|
||||||
use Filament\Schemas\Components\Group;
|
use Filament\Schemas\Components\Group;
|
||||||
@@ -27,7 +29,7 @@
|
|||||||
* Rasterverhältnis) → je Platz ein Widget (Builder mit höchstens einem Eintrag, Auswahl aus dem Widget-Register).
|
* Rasterverhältnis) → je Platz ein Widget (Builder mit höchstens einem Eintrag, Auswahl aus dem Widget-Register).
|
||||||
* Abschnittseinstellungen stehen im Abschnitt, Widget-Einstellungen im Widget-Dialog: eine Dialogebene.
|
* Abschnittseinstellungen stehen im Abschnitt, Widget-Einstellungen im Widget-Dialog: eine Dialogebene.
|
||||||
*
|
*
|
||||||
* Formularzustand eines Abschnitts: {id, layout, style: {...}, slots: {uuid: {widget: {uuid: Builder-Eintrag}}}}.
|
* Formularzustand eines Abschnitts: {id, name, anchor, hidden, layout, style: {...}, slots: {uuid: {widget: {uuid: Builder-Eintrag}}}}.
|
||||||
*/
|
*/
|
||||||
class SectionEditor
|
class SectionEditor
|
||||||
{
|
{
|
||||||
@@ -91,6 +93,7 @@ private static function sectionSchema(): array
|
|||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
Hidden::make('id'),
|
Hidden::make('id'),
|
||||||
|
self::labelSection(),
|
||||||
// Abschnittsgestaltung in drei Gruppen. Im Seiten-Arbeitsplatz nur im Kontext „Abschnitt gestalten“
|
// Abschnittsgestaltung in drei Gruppen. Im Seiten-Arbeitsplatz nur im Kontext „Abschnitt gestalten“
|
||||||
// sichtbar und dort offen; beim Anlegen einer Seite an jedem Abschnitt, eingeklappt.
|
// sichtbar und dort offen; beim Anlegen einer Seite an jedem Abschnitt, eingeklappt.
|
||||||
Section::make('Raster und Breite')
|
Section::make('Raster und Breite')
|
||||||
@@ -154,6 +157,68 @@ private static function sectionSchema(): array
|
|||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Name, Sprungmarke und Sichtbarkeit: stehen im Seitenaufbau am Abschnitt, damit man sie beim Ordnen der Seite sieht.
|
||||||
|
*/
|
||||||
|
private static function labelSection(): Section
|
||||||
|
{
|
||||||
|
return Section::make('Name, Sprungmarke und Sichtbarkeit')
|
||||||
|
->columnSpanFull()
|
||||||
|
->compact()
|
||||||
|
->collapsible()
|
||||||
|
->collapsed(fn (Get $get): bool => blank($get('name')) && blank($get('anchor')) && ! $get('hidden'))
|
||||||
|
->extraAttributes(['class' => 'luf-abschnitt-bezeichnung'])
|
||||||
|
->schema([
|
||||||
|
TextInput::make('name')
|
||||||
|
->label('Name des Abschnitts')
|
||||||
|
->placeholder('Zum Beispiel „Kursübersicht“')
|
||||||
|
->maxLength(PageSections::MAX_NAME)
|
||||||
|
->live(onBlur: true)
|
||||||
|
->hintIcon('heroicon-m-information-circle', tooltip: 'Nur zur Orientierung im Seitenaufbau und in der Linkauswahl. Der Name erscheint nie auf der Website.')
|
||||||
|
->hintColor('gray'),
|
||||||
|
TextInput::make('anchor')
|
||||||
|
->label('Sprungmarke')
|
||||||
|
->prefix('#')
|
||||||
|
->placeholder('zum-beispiel-kurse')
|
||||||
|
->maxLength(PageSections::MAX_ANCHOR)
|
||||||
|
->live(onBlur: true)
|
||||||
|
->afterStateUpdated(function (?string $state, Set $set): void {
|
||||||
|
$set('anchor', filled($state) ? Str::slug($state, '-', 'de') : null);
|
||||||
|
})
|
||||||
|
->suffixAction(Action::make('anchorFromName')
|
||||||
|
->label('Sprungmarke aus dem Namen vorschlagen')
|
||||||
|
->icon('heroicon-o-sparkles')
|
||||||
|
->tooltip('Aus dem Namen vorschlagen')
|
||||||
|
->action(fn (Get $get, Set $set) => $set('anchor', Str::limit(Str::slug((string) $get('name'), '-', 'de'), PageSections::MAX_ANCHOR, ''))))
|
||||||
|
->hintIcon('heroicon-m-information-circle', tooltip: 'Macht den Abschnitt zum Ziel eines Links. Auf derselben Seite genügt „#marke“, von anderen Seiten und von außen „Adresse der Seite#marke“. Nur Kleinbuchstaben, Ziffern und Bindestriche; jede Marke einmal je Seite.')
|
||||||
|
->hintColor('gray')
|
||||||
|
->helperText(fn (Get $get, $livewire): ?string => self::anchorLinkText($get('anchor'), $livewire)),
|
||||||
|
Toggle::make('hidden')
|
||||||
|
->label('Auf der Website ausblenden')
|
||||||
|
->live()
|
||||||
|
->hintIcon('heroicon-m-information-circle', tooltip: 'Der Abschnitt bleibt im Entwurf erhalten, erscheint aber nicht auf der Website. Auch eine Sprungmarke dieses Abschnitts führt dann ins Leere. In der Seitenvorschau steht an seiner Stelle ein Hinweis.')
|
||||||
|
->hintColor('gray')
|
||||||
|
->columnSpanFull(),
|
||||||
|
])
|
||||||
|
->columns(['default' => 1, 'md' => 2]);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Vollständiger Link zur Sprungmarke (für Verweise von außen); eine neue Seite hat noch keine Adresse.
|
||||||
|
*/
|
||||||
|
private static function anchorLinkText(mixed $anchor, mixed $livewire): ?string
|
||||||
|
{
|
||||||
|
if (! is_string($anchor) || $anchor === '') {
|
||||||
|
return 'Ohne Sprungmarke ist der Abschnitt kein Linkziel.';
|
||||||
|
}
|
||||||
|
|
||||||
|
$path = is_object($livewire) && property_exists($livewire, 'record') && is_object($livewire->record ?? null) ? ($livewire->record->path ?? null) : null;
|
||||||
|
|
||||||
|
return is_string($path) && $path !== ''
|
||||||
|
? 'Link von anderen Seiten: '.($path === '/' ? '' : $path).'#'.$anchor.' · von außen: '.url($path === '/' ? '/' : $path).'#'.$anchor
|
||||||
|
: 'Link auf dieser Seite: #'.$anchor.'. Die Adresse für Verweise von außen steht nach dem ersten Speichern fest.';
|
||||||
|
}
|
||||||
|
|
||||||
private static function onWorkplace(mixed $livewire): bool
|
private static function onWorkplace(mixed $livewire): bool
|
||||||
{
|
{
|
||||||
return is_object($livewire) && method_exists($livewire, 'openAbschnitt');
|
return is_object($livewire) && method_exists($livewire, 'openAbschnitt');
|
||||||
@@ -257,6 +322,9 @@ public static function toEditorState(array $sections): array
|
|||||||
|
|
||||||
$state[] = [
|
$state[] = [
|
||||||
'id' => $section['id'] ?? (string) Str::uuid(),
|
'id' => $section['id'] ?? (string) Str::uuid(),
|
||||||
|
'name' => $section['name'] ?? null,
|
||||||
|
'anchor' => $section['anchor'] ?? null,
|
||||||
|
'hidden' => (bool) ($section['hidden'] ?? false),
|
||||||
'layout' => $section['layout'],
|
'layout' => $section['layout'],
|
||||||
'style' => SectionStyle::fromStored($section['style'] ?? []),
|
'style' => SectionStyle::fromStored($section['style'] ?? []),
|
||||||
'slots' => $slots,
|
'slots' => $slots,
|
||||||
@@ -289,6 +357,9 @@ public static function fromEditorState(?array $state): array
|
|||||||
|
|
||||||
$sections[] = [
|
$sections[] = [
|
||||||
'id' => $section['id'] ?? null,
|
'id' => $section['id'] ?? null,
|
||||||
|
'name' => is_string($section['name'] ?? null) ? $section['name'] : null,
|
||||||
|
'anchor' => is_string($section['anchor'] ?? null) ? $section['anchor'] : null,
|
||||||
|
'hidden' => (bool) ($section['hidden'] ?? false),
|
||||||
'layout' => $section['layout'] ?? SectionLayouts::DEFAULT,
|
'layout' => $section['layout'] ?? SectionLayouts::DEFAULT,
|
||||||
'style' => is_array($section['style'] ?? null) ? $section['style'] : [],
|
'style' => is_array($section['style'] ?? null) ? $section['style'] : [],
|
||||||
'slots' => $slots,
|
'slots' => $slots,
|
||||||
@@ -484,7 +555,12 @@ public static function insertCopyAfter(array $items, string $key, string $newKey
|
|||||||
foreach ($items as $itemKey => $item) {
|
foreach ($items as $itemKey => $item) {
|
||||||
$result[$itemKey] = $item;
|
$result[$itemKey] = $item;
|
||||||
if ((string) $itemKey === $key) {
|
if ((string) $itemKey === $key) {
|
||||||
$result[$newKey] = $item;
|
// Eine Sprungmarke gibt es je Seite nur einmal: Die Kopie bekommt keine, der Name wird kenntlich gemacht.
|
||||||
|
$copy = is_array($item) ? $item : [];
|
||||||
|
$copy['anchor'] = null;
|
||||||
|
$name = is_string($copy['name'] ?? null) ? trim($copy['name']) : '';
|
||||||
|
$copy['name'] = $name !== '' ? Str::limit($name, PageSections::MAX_NAME - 9, '').' (Kopie)' : null;
|
||||||
|
$result[$newKey] = $copy;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -562,13 +638,25 @@ private static function sectionLabel(array $state, ?int $index): HtmlString
|
|||||||
$meta[] = 'noch leer';
|
$meta[] = 'noch leer';
|
||||||
}
|
}
|
||||||
|
|
||||||
$name = 'Abschnitt '.(($index ?? 0) + 1);
|
$number = 'Abschnitt '.(($index ?? 0) + 1);
|
||||||
|
$given = PageSections::cleanName($state['name'] ?? null);
|
||||||
|
$anchor = PageSections::cleanAnchor($state['anchor'] ?? null);
|
||||||
|
$hidden = (bool) ($state['hidden'] ?? false);
|
||||||
$full = 'Raster '.SectionLayouts::short($layout).' · '.SectionStyle::summary($style)
|
$full = 'Raster '.SectionLayouts::short($layout).' · '.SectionStyle::summary($style)
|
||||||
.($names === [] ? ' · noch leer' : ' · '.implode(', ', $names));
|
.($names === [] ? ' · noch leer' : ' · '.implode(', ', $names));
|
||||||
|
|
||||||
return new HtmlString('<span class="luf-abschnitt" title="'.e($full).'"><span class="luf-abschnitt-nr">'.e($name).'</span>'
|
// Der Name steht vorn; die Nummer bleibt als Orientierung daneben. Sprungmarke und „Ausgeblendet“ sind auch
|
||||||
|
// für Screenreader lesbar, die Nummer und die Rastermeta nicht doppelt.
|
||||||
|
$text = $given !== null ? $given : $number;
|
||||||
|
$badges = ($anchor !== null ? '<span class="luf-abschnitt-marke" title="Sprungmarke">#'.e($anchor).'</span>' : '')
|
||||||
|
.($hidden ? '<span class="luf-abschnitt-aus" title="Auf der Website ausgeblendet">Ausgeblendet</span>' : '');
|
||||||
|
$spoken = ($given !== null ? $number.': ' : '').($anchor !== null ? 'Sprungmarke '.$anchor.'. ' : '').($hidden ? 'Auf der Website ausgeblendet. ' : '').$full;
|
||||||
|
|
||||||
|
return new HtmlString('<span class="luf-abschnitt'.($hidden ? ' is-ausgeblendet' : '').'" title="'.e(($given !== null ? $number.' · ' : '').$full).'"><span class="luf-abschnitt-nr">'.e($text).'</span>'
|
||||||
|
.($given !== null ? '<span class="luf-abschnitt-nummer" aria-hidden="true">'.e($number).'</span>' : '')
|
||||||
|
.$badges
|
||||||
.'<span class="luf-abschnitt-meta" aria-hidden="true">'.e(implode(' · ', $meta)).'</span>'
|
.'<span class="luf-abschnitt-meta" aria-hidden="true">'.e(implode(' · ', $meta)).'</span>'
|
||||||
.'<span class="vw-sr">: '.e($full).'</span></span>');
|
.'<span class="vw-sr">: '.e($spoken).'</span></span>');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -9,6 +9,7 @@
|
|||||||
use App\Domain\Cms\Widgets\Types\HeroWidget;
|
use App\Domain\Cms\Widgets\Types\HeroWidget;
|
||||||
use App\Domain\Cms\Widgets\Types\ImageTextWidget;
|
use App\Domain\Cms\Widgets\Types\ImageTextWidget;
|
||||||
use App\Domain\Cms\Widgets\Types\MediaCardWidget;
|
use App\Domain\Cms\Widgets\Types\MediaCardWidget;
|
||||||
|
use App\Domain\Cms\Widgets\Types\NoticeWidget;
|
||||||
use App\Domain\Cms\Widgets\Types\ProgramCardWidget;
|
use App\Domain\Cms\Widgets\Types\ProgramCardWidget;
|
||||||
use App\Domain\Cms\Widgets\Types\ProseWidget;
|
use App\Domain\Cms\Widgets\Types\ProseWidget;
|
||||||
use App\Domain\Cms\Widgets\Types\ShopProductsWidget;
|
use App\Domain\Cms\Widgets\Types\ShopProductsWidget;
|
||||||
@@ -26,6 +27,7 @@
|
|||||||
HeroWidget::class,
|
HeroWidget::class,
|
||||||
HeadingWidget::class,
|
HeadingWidget::class,
|
||||||
ProseWidget::class,
|
ProseWidget::class,
|
||||||
|
NoticeWidget::class,
|
||||||
ImageTextWidget::class,
|
ImageTextWidget::class,
|
||||||
CardsWidget::class,
|
CardsWidget::class,
|
||||||
FeaturesWidget::class,
|
FeaturesWidget::class,
|
||||||
|
|||||||
@@ -0,0 +1,26 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
use Illuminate\Database\Migrations\Migration;
|
||||||
|
use Illuminate\Database\Schema\Blueprint;
|
||||||
|
use Illuminate\Support\Facades\Schema;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Ergänzend und abwärtskompatibel: Ein Menüeintrag mit Zielseite kann auf eine Sprungmarke dieser Seite zeigen.
|
||||||
|
* Ohne Wert (bisher alle Einträge) führt er zum Seitenanfang. Ältere Programmstände ignorieren die Spalte.
|
||||||
|
*/
|
||||||
|
return new class extends Migration
|
||||||
|
{
|
||||||
|
public function up(): void
|
||||||
|
{
|
||||||
|
Schema::table('navigation_items', function (Blueprint $table) {
|
||||||
|
$table->string('anchor', 60)->nullable();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
public function down(): void
|
||||||
|
{
|
||||||
|
Schema::table('navigation_items', function (Blueprint $table) {
|
||||||
|
$table->dropColumn('anchor');
|
||||||
|
});
|
||||||
|
}
|
||||||
|
};
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" width="64" height="64" viewBox="0 0 64 64"><title>Alltagsnah</title><path d="M32 22 Q33 15 39 15 Q40 5 49 7 Q57 8 57 17 Q64 20 60 30 Q57 36 50 34 M49 23 V53" stroke="#397D0D" stroke-width="3.2" fill="none" stroke-linecap="round" stroke-linejoin="round"/><path d="M4 32 L24 13 L44 32 M8 29 V53 H40 V29 M19 53 V38 H29 V53 M4 53 H59" stroke="#08264D" stroke-width="3.2" fill="none" stroke-linecap="round" stroke-linejoin="round"/></svg>
|
||||||
|
After Width: | Height: | Size: 473 B |
@@ -0,0 +1 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" width="64" height="64" viewBox="0 0 64 64"><title>Altersgerecht</title><g fill="none" stroke="#08264D" stroke-width="3.2" stroke-linecap="round" stroke-linejoin="round"><path d="M11 31 C11 38 16 42 21 42 C27 42 32 37 31 30 L30 27"/><circle cx="46" cy="32" r="9"/><path d="M37 28 C34 22 32 25 30 29 M55 28 C58 22 60 25 62 29"/><path d="M6 56 C6 48 12 43 20.5 43 C28 43 33 49 33 56 C33 49 38 43 46 43 C54 43 60 49 60 56"/><path d="M19 36 Q21 38 24 36 M43 36 Q46 38 49 36" stroke-width="1.5"/></g><g fill="none" stroke="#397D0D" stroke-width="3.2" stroke-linecap="round" stroke-linejoin="round"><path d="M11 30 C11 23 16 19 21 19 C26 19 30 23 31 27 M5 31 L31 27"/></g><g fill="none" stroke="#FFCD00" stroke-width="3.2" stroke-linecap="round"><path d="M27 13 L23 8 M32 11 V4 M38 13 L42 8"/></g></svg>
|
||||||
|
After Width: | Height: | Size: 837 B |
@@ -0,0 +1 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" width="64" height="64" viewBox="0 0 64 64"><title>Ausgrenzung</title><circle cx="11" cy="23" r="5.5" stroke="#08264D" stroke-width="3.2" fill="none"/><circle cx="25" cy="23" r="5.5" stroke="#08264D" stroke-width="3.2" fill="none"/><path d="M3 49 V41 Q3 31 11 31 Q20 31 20 41 V49 M20 41 Q20 31 25 31 Q33 31 33 41 V49" stroke="#08264D" stroke-width="3.2" fill="none" stroke-linecap="round" stroke-linejoin="round"/><path d="M41 13 Q31 30 39 53" stroke="#08264D" stroke-width="3.2" fill="none" stroke-dasharray="4 5" stroke-linecap="round" stroke-linejoin="round"/><circle cx="51" cy="33" r="5.5" stroke="#397D0D" stroke-width="3.2" fill="none"/><path d="M42 53 Q42 42 51 42 Q60 42 60 53" stroke="#397D0D" stroke-width="3.2" fill="none" stroke-linecap="round" stroke-linejoin="round"/></svg>
|
||||||
|
After Width: | Height: | Size: 828 B |
@@ -0,0 +1 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" width="64" height="64" viewBox="0 0 64 64"><title>Eltern</title><circle cx="15" cy="19" r="7" stroke="#08264D" stroke-width="3.2" fill="none"/><circle cx="49" cy="19" r="7" stroke="#08264D" stroke-width="3.2" fill="none"/><path d="M4 48 V42 C4 27 24 27 26 37 M60 48 V42 C60 27 40 27 38 37" stroke="#08264D" stroke-width="3.2" fill="none" stroke-linecap="round" stroke-linejoin="round"/><circle cx="32" cy="32" r="5.5" stroke="#397D0D" stroke-width="3.2" fill="none"/><path d="M21 53 V51 C21 35 43 35 43 51 V53" stroke="#397D0D" stroke-width="3.2" fill="none" stroke-linecap="round" stroke-linejoin="round"/><path d="M24 8 L21 4 M32 7 V2 M40 8 L43 4" stroke="#FFCD00" stroke-width="3.2" fill="none" stroke-linecap="round" stroke-linejoin="round"/></svg>
|
||||||
|
After Width: | Height: | Size: 792 B |
@@ -0,0 +1,2 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
|
<svg baseProfile="full" height="64" version="1.1" viewBox="0 0 64 64" width="64" xmlns="http://www.w3.org/2000/svg" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:xlink="http://www.w3.org/1999/xlink"><defs /><circle cx="20" cy="23" fill="none" r="9" stroke="#08264D" stroke-width="3.2" /><circle cx="43" cy="23" fill="none" r="9" stroke="#08264D" stroke-width="3.2" /><circle cx="17" cy="21" fill="#08264D" r="1.2" /><circle cx="23" cy="21" fill="#08264D" r="1.2" /><circle cx="40" cy="21" fill="#08264D" r="1.2" /><circle cx="46" cy="21" fill="#08264D" r="1.2" /><path d="M16 27 Q20 30.2 24 27" fill="none" stroke="#08264D" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.9" /><path d="M39 27 Q43 30.2 47 27" fill="none" stroke="#08264D" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.9" /><path d="M5 53 Q5 40 14 36" fill="none" stroke="#397D0D" stroke-linecap="round" stroke-width="3.2" /><path d="M54 43 Q60 47 60 53" fill="none" stroke="#397D0D" stroke-linecap="round" stroke-width="3.2" /><path d="M30 53 L27 40 Q29 36 35 35" fill="none" stroke="#08264D" stroke-linecap="round" stroke-linejoin="round" stroke-width="3.2" /><path d="M50 34 Q60 36 57 42 Q54 47 48 43 Q45 41 48 36" fill="none" stroke="#08264D" stroke-linecap="round" stroke-linejoin="round" stroke-width="3.2" /><line stroke="#FFCD00" stroke-linecap="round" stroke-width="3.2" x1="51" x2="53" y1="8" y2="3" /><line stroke="#FFCD00" stroke-linecap="round" stroke-width="3.2" x1="56" x2="61" y1="12" y2="8" /></svg>
|
||||||
|
After Width: | Height: | Size: 1.5 KiB |
@@ -0,0 +1 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" width="64" height="64" viewBox="0 0 64 64"><title>Geschützt</title><circle cx="32" cy="23" r="6" stroke="#397D0D" stroke-width="3.2" fill="none"/><path d="M21 39 Q23 30 32 30 Q41 30 43 39" stroke="#397D0D" stroke-width="3.2" fill="none" stroke-linecap="round" stroke-linejoin="round"/><path d="M17 59 V53 L7 44 L4 33 Q3 29 6 28 Q10 27 11 32 L13 41 L23 49 M27 59 V51 Q27 46 22 42 L16 37 Q12 36 13 41 L20 47 M47 59 V53 L57 44 L60 33 Q61 29 58 28 Q54 27 53 32 L51 41 L41 49 M37 59 V51 Q37 46 42 42 L48 37 Q52 36 51 41 L44 47" stroke="#08264D" stroke-width="3.2" fill="none" stroke-linecap="round" stroke-linejoin="round"/><path d="M23 12 L19 7 M32 10 V3 M41 12 L45 7" stroke="#FFCD00" stroke-width="3.2" fill="none" stroke-linecap="round" stroke-linejoin="round"/></svg>
|
||||||
|
After Width: | Height: | Size: 808 B |
@@ -0,0 +1 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" width="64" height="64" viewBox="0 0 64 64"><title>Gewaltschutztrainer</title><circle cx="17" cy="15" r="8" stroke="#08264D" stroke-width="3.2" fill="none"/><path d="M3 53 V39 Q3 28 12 25 M24 25 Q28 26 30 29 M35 26 Q44 24 49 20 Q54 24 61 26 V37 Q60 49 49 56 Q37 49 35 37 Z" stroke="#08264D" stroke-width="3.2" fill="none" stroke-linecap="round" stroke-linejoin="round"/><path d="M10 26 L17 40 L24 26 M17 45 V50" stroke="#397D0D" stroke-width="3.2" fill="none" stroke-linecap="round" stroke-linejoin="round"/><circle cx="17" cy="42" r="3" stroke="#397D0D" stroke-width="3.2" fill="none"/><path d="M43 39 V34 Q43 32 45 32 V38 V29 Q47 27 48 29 V37 V27 Q50 25 51 28 V37 V30 Q53 28 54 31 V39 Q54 46 49 46 Q44 46 41 40 Q40 37 43 39 Z" stroke="#397D0D" stroke-width="1.8" fill="none" stroke-linecap="round" stroke-linejoin="round"/><path d="M51 12 L53 6 M57 15 L61 11" stroke="#FFCD00" stroke-width="3.2" fill="none" stroke-linecap="round" stroke-linejoin="round"/></svg>
|
||||||
|
After Width: | Height: | Size: 1003 B |
@@ -0,0 +1 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" width="64" height="64" viewBox="0 0 64 64"><title>Gruppen</title><circle cx="32" cy="14" r="7" stroke="#397D0D" stroke-width="3.2" fill="none"/><circle cx="12" cy="22" r="6" stroke="#08264D" stroke-width="3.2" fill="none"/><circle cx="52" cy="22" r="6" stroke="#08264D" stroke-width="3.2" fill="none"/><path d="M3 48 Q3 32 18 32 M61 48 Q61 32 46 32 M17 50 V44 C17 24 47 24 47 44 V50 Z" stroke="#08264D" stroke-width="3.2" fill="none" stroke-linecap="round" stroke-linejoin="round"/></svg>
|
||||||
|
After Width: | Height: | Size: 528 B |
@@ -0,0 +1,2 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
|
<svg baseProfile="full" height="64" version="1.1" viewBox="0 0 64 64" width="64" xmlns="http://www.w3.org/2000/svg" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:xlink="http://www.w3.org/1999/xlink"><defs /><path d="M14 14 H50 V38 H29 L20 47 V38 H14 Z" fill="none" stroke="#08264D" stroke-linecap="round" stroke-linejoin="round" stroke-width="3.2" /><circle cx="24" cy="26" fill="#397D0D" r="2.2" /><line stroke="#397D0D" stroke-linecap="round" stroke-width="3.2" x1="31" x2="43" y1="26" y2="26" /><line stroke="#397D0D" stroke-linecap="round" stroke-width="3.2" x1="31" x2="38" y1="32" y2="32" /><line stroke="#FFCD00" stroke-linecap="round" stroke-width="3.2" x1="46" x2="50" y1="12" y2="8" /><line stroke="#FFCD00" stroke-linecap="round" stroke-width="3.2" x1="50" x2="55" y1="18" y2="17" /></svg>
|
||||||
|
After Width: | Height: | Size: 845 B |
@@ -0,0 +1,2 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
|
<svg baseProfile="full" height="64" version="1.1" viewBox="0 0 64 64" width="64" xmlns="http://www.w3.org/2000/svg" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:xlink="http://www.w3.org/1999/xlink"><defs /><circle cx="32" cy="28" fill="none" r="15" stroke="#08264D" stroke-width="3.2" /><circle cx="32" cy="21" fill="#397D0D" r="1.8" /><line stroke="#397D0D" stroke-linecap="round" stroke-width="3.2" x1="32" x2="32" y1="27" y2="38" /><line stroke="#08264D" stroke-linecap="round" stroke-width="3.2" x1="28" x2="36" y1="42" y2="42" /><line stroke="#FFCD00" stroke-linecap="round" stroke-width="3.2" x1="43" x2="48" y1="16" y2="12" /><line stroke="#FFCD00" stroke-linecap="round" stroke-width="3.2" x1="46" x2="52" y1="22" y2="21" /></svg>
|
||||||
|
After Width: | Height: | Size: 784 B |
@@ -0,0 +1,2 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
|
<svg baseProfile="full" height="64" version="1.1" viewBox="0 0 64 64" width="64" xmlns="http://www.w3.org/2000/svg" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:xlink="http://www.w3.org/1999/xlink"><defs /><rect fill="none" height="20" rx="2" ry="2" stroke="#08264D" stroke-width="3.2" width="40" x="12" y="28" /><path d="M10 28 L32 15 L54 28" fill="none" stroke="#08264D" stroke-linecap="round" stroke-linejoin="round" stroke-width="3.2" /><rect fill="none" height="12" stroke="#397D0D" stroke-width="3.2" width="8" x="28" y="36" /><line stroke="#397D0D" stroke-linecap="round" stroke-width="3.2" x1="19" x2="24" y1="40" y2="40" /><line stroke="#397D0D" stroke-linecap="round" stroke-width="3.2" x1="18" x2="24" y1="35" y2="35" /><path d="M40 38 Q42 32 47 35" fill="none" stroke="#397D0D" stroke-linecap="round" stroke-width="3.2" /><line stroke="#FFCD00" stroke-linecap="round" stroke-width="3.2" x1="44" x2="47" y1="14" y2="9" /><line stroke="#FFCD00" stroke-linecap="round" stroke-width="3.2" x1="49" x2="53" y1="17" y2="15" /></svg>
|
||||||
|
After Width: | Height: | Size: 1.1 KiB |
@@ -0,0 +1,2 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
|
<svg baseProfile="full" height="64" version="1.1" viewBox="0 0 64 64" width="64" xmlns="http://www.w3.org/2000/svg" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:xlink="http://www.w3.org/1999/xlink"><defs /><path d="M12 22 Q32 14 52 22" fill="none" opacity="0.95" stroke="#FFCD00" stroke-linecap="round" stroke-linejoin="round" stroke-width="4.4" /><path d="M14 27 Q32 20 50 27" fill="none" opacity="0.95" stroke="#FFCD00" stroke-linecap="round" stroke-linejoin="round" stroke-width="4.4" /><path d="M16 32 Q32 26 48 32" fill="none" opacity="0.95" stroke="#FFCD00" stroke-linecap="round" stroke-linejoin="round" stroke-width="4.4" /><path d="M27 17 L37 17 L37 39 L32 34 L27 39 Z" fill="none" stroke="#08264D" stroke-linejoin="round" stroke-width="3.2" /></svg>
|
||||||
|
After Width: | Height: | Size: 805 B |
@@ -0,0 +1,2 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
|
<svg baseProfile="full" height="64" version="1.1" viewBox="0 0 64 64" width="64" xmlns="http://www.w3.org/2000/svg" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:xlink="http://www.w3.org/1999/xlink"><defs /><circle cx="13" cy="19" fill="none" r="6.5" stroke="#08264D" stroke-width="3.2" /><circle cx="51" cy="19" fill="none" r="6.5" stroke="#08264D" stroke-width="3.2" /><path d="M3 36 Q4 28 13 27" fill="none" stroke="#08264D" stroke-linecap="round" stroke-width="3.2" /><path d="M61 36 Q60 28 51 27" fill="none" stroke="#08264D" stroke-linecap="round" stroke-width="3.2" /><circle cx="32" cy="32" fill="none" r="8" stroke="#08264D" stroke-width="3.2" /><circle cx="29" cy="30" fill="#08264D" r="1.2" /><circle cx="35" cy="30" fill="#08264D" r="1.2" /><path d="M28 36.8 Q32 33.8 36 36.8" fill="none" stroke="#08264D" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.8" /><path d="M19 55 Q22 43 32 43 Q42 43 45 55" fill="none" stroke="#08264D" stroke-linecap="round" stroke-linejoin="round" stroke-width="3.2" /><line stroke="#FFCD00" stroke-linecap="round" stroke-width="3.2" x1="28" x2="26" y1="12" y2="5" /><line stroke="#FFCD00" stroke-linecap="round" stroke-width="3.2" x1="34" x2="37" y1="12" y2="5" /><line stroke="#FFCD00" stroke-linecap="round" stroke-width="3.2" x1="39" x2="45" y1="16" y2="12" /><line stroke="#FFCD00" stroke-linecap="round" stroke-width="3.2" x1="16" x2="21" y1="36" y2="40" /><line stroke="#FFCD00" stroke-linecap="round" stroke-width="3.2" x1="13" x2="20" y1="45" y2="45" /><line stroke="#FFCD00" stroke-linecap="round" stroke-width="3.2" x1="48" x2="43" y1="36" y2="40" /><line stroke="#FFCD00" stroke-linecap="round" stroke-width="3.2" x1="51" x2="44" y1="45" y2="45" /></svg>
|
||||||
|
After Width: | Height: | Size: 1.7 KiB |
@@ -0,0 +1 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" width="64" height="64" viewBox="0 0 64 64"><title>Nachhaltigkeit</title><path d="M7 31 A25 25 0 0 1 53 17 M53 9 V18 L44 15 M57 32 A25 25 0 0 1 11 47 M11 55 V46 L20 49" stroke="#397D0D" stroke-width="3.2" fill="none" stroke-linecap="round" stroke-linejoin="round"/><path d="M24 41 C15 27 35 28 43 19 C46 37 35 48 24 41 Z M22 46 Q25 35 35 30" stroke="#08264D" stroke-width="3.2" fill="none" stroke-linecap="round" stroke-linejoin="round"/></svg>
|
||||||
|
After Width: | Height: | Size: 483 B |
@@ -0,0 +1 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" width="64" height="64" viewBox="0 0 64 64"><title>Öffentliche Einrichtungen</title><path d="M5 23 L32 8 L59 23 Q59 25 56 25 H8 Q5 25 5 23 Z M10 29 H54 M12 49 H52 M10 53 H54 M14 29 V49 M21 29 V49 M28 29 V49 M36 29 V49 M43 29 V49 M50 29 V49" stroke="#08264D" stroke-width="3.2" fill="none" stroke-linecap="round" stroke-linejoin="round"/><path d="M5 58 H59" stroke="#397D0D" stroke-width="3.2" fill="none" stroke-linecap="round" stroke-linejoin="round"/></svg>
|
||||||
|
After Width: | Height: | Size: 499 B |
@@ -0,0 +1,2 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
|
<svg baseProfile="full" height="64" version="1.1" viewBox="0 0 64 64" width="64" xmlns="http://www.w3.org/2000/svg" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:xlink="http://www.w3.org/1999/xlink"><defs /><path d="M18 14 L46 20 V34 Q46 47 32 53 Q18 47 18 34 Z" fill="none" stroke="#08264D" stroke-linejoin="round" stroke-width="3.2" /><path d="M24 35 L30 29 L35 34 L42 25" fill="none" stroke="#397D0D" stroke-linecap="round" stroke-linejoin="round" stroke-width="3.2" /><line stroke="#FFCD00" stroke-linecap="round" stroke-width="3.2" x1="30" x2="28" y1="12" y2="7" /><line stroke="#FFCD00" stroke-linecap="round" stroke-width="3.2" x1="36" x2="38" y1="12" y2="7" /><line stroke="#FFCD00" stroke-linecap="round" stroke-width="3.2" x1="42" x2="46" y1="15" y2="12" /></svg>
|
||||||
|
After Width: | Height: | Size: 818 B |
@@ -0,0 +1 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" width="64" height="64" viewBox="0 0 64 64"><title>Praxiserprobt</title><path d="M33.80 9.07 L38.07 6.72 L41.95 7.98 L44.02 12.39 L46.94 14.51 L51.77 15.11 L54.17 18.42 L53.25 23.20 L54.36 26.63 L57.92 29.96 L57.92 34.04 L54.36 37.37 L53.25 40.80 L54.17 45.58 L51.77 48.89 L46.94 49.49 L44.02 51.61 L41.95 56.02 L38.07 57.28 L33.80 54.93 L30.20 54.93 L25.93 57.28 L22.05 56.02 L19.98 51.61 L17.06 49.49 L12.23 48.89 L9.83 45.58 L10.75 40.80 L9.64 37.37 L6.08 34.04 L6.08 29.96 L9.64 26.63 L10.75 23.20 L9.83 18.42 L12.23 15.11 L17.06 14.51 L19.98 12.39 L22.05 7.98 L25.93 6.72 L30.20 9.07 Z" stroke="#08264D" stroke-width="3.2" fill="none" stroke-linecap="round" stroke-linejoin="round"/><path d="M21 32 L29 40 L44 24" stroke="#397D0D" stroke-width="3.2" fill="none" stroke-linecap="round" stroke-linejoin="round"/></svg>
|
||||||
|
After Width: | Height: | Size: 860 B |
@@ -0,0 +1 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" width="64" height="64" viewBox="0 0 64 64"><title>Relevant</title><path d="M44 11 A24 24 0 1 0 55 24" stroke="#08264D" stroke-width="3.2" fill="none" stroke-linecap="round" stroke-linejoin="round"/><path d="M36 19 A16 16 0 1 0 46 29" stroke="#397D0D" stroke-width="3.2" fill="none" stroke-linecap="round" stroke-linejoin="round"/><path d="M29 27 A7 7 0 1 0 37 35" stroke="#397D0D" stroke-width="3.2" fill="none" stroke-linecap="round" stroke-linejoin="round"/><path d="M32 33 L51 14 M51 14 L49 8 L56 2 L57 9 L63 10 L56 17 Z" stroke="#FFCD00" stroke-width="3.2" fill="none" stroke-linecap="round" stroke-linejoin="round"/></svg>
|
||||||
|
After Width: | Height: | Size: 667 B |
@@ -0,0 +1 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" width="64" height="64" viewBox="0 0 65 65"><title>Relevant</title><path d="M42.1428 11.2486 A24 24 0 1 0 53.7514 22.8572" stroke="#08264D" stroke-width="3.2" fill="none" stroke-linecap="round" stroke-linejoin="round"/><path d="M36.9443 17.7831 A16 16 0 1 0 47.2169 28.0557" stroke="#397D0D" stroke-width="3.2" fill="none" stroke-linecap="round" stroke-linejoin="round"/><path d="M32.0000 26.0000 A7 7 0 1 0 39.0000 33.0000" stroke="#397D0D" stroke-width="3.2" fill="none" stroke-linecap="round" stroke-linejoin="round"/><path d="M32 33 L51 14 M51 14 L49 8 L56 2 L57 9 L63 10 L56 17 Z" stroke="#FFCD00" stroke-width="3.2" fill="none" stroke-linecap="round" stroke-linejoin="round"/></svg>
|
||||||
|
After Width: | Height: | Size: 727 B |
@@ -0,0 +1 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" width="64" height="64" viewBox="0 0 64 64"><title>Schulen</title><path d="M5 31 L12 21 H21 L32 12 L43 21 H52 L59 31 M8 31 V53 H56 V31 M5 31 H19 M45 31 H59 M26 53 V43 Q26 40 29 40 H35 Q38 40 38 43 V53 M14 37 V40 M20 37 V40 M44 37 V40 M50 37 V40" stroke="#08264D" stroke-width="3.2" fill="none" stroke-linecap="round" stroke-linejoin="round"/><circle cx="32" cy="26" r="5.5" stroke="#08264D" stroke-width="3.2" fill="none"/><path d="M32 23 V26 L34 27 M32 12 L34 3 L45 4 L43 11 L33 10" stroke="#397D0D" stroke-width="3.2" fill="none" stroke-linecap="round" stroke-linejoin="round"/></svg>
|
||||||
|
After Width: | Height: | Size: 625 B |
@@ -0,0 +1,2 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
|
<svg baseProfile="full" height="64" version="1.1" viewBox="0 0 64 64" width="64" xmlns="http://www.w3.org/2000/svg" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:xlink="http://www.w3.org/1999/xlink"><defs /><circle cx="18" cy="17" fill="none" r="4.8" stroke="#08264D" stroke-width="3.2" /><circle cx="32" cy="13" fill="none" r="4.8" stroke="#397D0D" stroke-width="3.2" /><circle cx="46" cy="17" fill="none" r="4.8" stroke="#08264D" stroke-width="3.2" /><path d="M18 24 L27 33 L32 29 L37 33 L46 24" fill="none" stroke="#08264D" stroke-linecap="round" stroke-linejoin="round" stroke-width="3.2" /><path d="M14 43 Q22 36 32 43 Q42 36 50 43" fill="none" stroke="#397D0D" stroke-linecap="round" stroke-width="3.2" /></svg>
|
||||||
|
After Width: | Height: | Size: 762 B |
@@ -0,0 +1,2 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
|
<svg baseProfile="full" height="64" version="1.1" viewBox="0 0 64 64" width="64" xmlns="http://www.w3.org/2000/svg" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:xlink="http://www.w3.org/1999/xlink"><defs /><path d="M32 12 C25 12 20 17 20 24 C20 29 22 32 25 35 C27 37 28 39 28 42 H36 C36 39 37 37 39 35 C42 32 44 29 44 24 C44 17 39 12 32 12 Z" fill="none" stroke="#08264D" stroke-linecap="round" stroke-linejoin="round" stroke-width="3.2" /><line stroke="#397D0D" stroke-linecap="round" stroke-width="3.2" x1="28" x2="36" y1="46" y2="46" /><line stroke="#397D0D" stroke-linecap="round" stroke-width="3.2" x1="29" x2="35" y1="50" y2="50" /><path d="M29 26 L32 29 L36 23" fill="none" stroke="#FFCD00" stroke-linecap="round" stroke-linejoin="round" stroke-width="3.2" /><line stroke="#FFCD00" stroke-linecap="round" stroke-width="3.2" x1="24" x2="21" y1="14" y2="10" /><line stroke="#FFCD00" stroke-linecap="round" stroke-width="3.2" x1="32" x2="32" y1="10" y2="5" /><line stroke="#FFCD00" stroke-linecap="round" stroke-width="3.2" x1="40" x2="43" y1="14" y2="10" /></svg>
|
||||||
|
After Width: | Height: | Size: 1.1 KiB |
@@ -0,0 +1,2 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
|
<svg baseProfile="full" height="64" version="1.1" viewBox="0 0 64 64" width="64" xmlns="http://www.w3.org/2000/svg" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:xlink="http://www.w3.org/1999/xlink"><defs /><circle cx="23" cy="21" fill="none" r="5" stroke="#08264D" stroke-width="3.2" /><circle cx="41" cy="21" fill="none" r="5" stroke="#08264D" stroke-width="3.2" /><path d="M17.0 40 V40 Q17.0 30 23 30 Q29.0 30 29.0 40 V40" fill="none" stroke="#08264D" stroke-linecap="round" stroke-linejoin="round" stroke-width="3.2" /><path d="M35.0 40 V40 Q35.0 30 41 30 Q47.0 30 47.0 40 V40" fill="none" stroke="#08264D" stroke-linecap="round" stroke-linejoin="round" stroke-width="3.2" /><path d="M27 13 L32 8 L37 13 L32 18 Z" fill="none" stroke="#397D0D" stroke-linejoin="round" stroke-width="3.2" /><line stroke="#397D0D" stroke-linecap="round" stroke-width="3.2" x1="18" x2="46" y1="49" y2="49" /></svg>
|
||||||
|
After Width: | Height: | Size: 942 B |
@@ -0,0 +1 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" width="64" height="64" viewBox="0 0 64 64"><title>Vielseitigkeit</title><path d="M5 20 L32 6 L59 20 L32 34 Z" stroke="#397D0D" stroke-width="3.2" fill="none" stroke-linecap="round" stroke-linejoin="round"/><path d="M12 30 L5 34 L32 48 L59 34 L52 30" stroke="#08264D" stroke-width="3.2" fill="none" stroke-linecap="round" stroke-linejoin="round"/><path d="M12 44 L5 48 L32 62 L59 48 L52 44" stroke="#397D0D" stroke-width="3.2" fill="none" stroke-linecap="round" stroke-linejoin="round"/></svg>
|
||||||
|
After Width: | Height: | Size: 532 B |
@@ -0,0 +1,2 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
|
<svg baseProfile="full" height="64" version="1.1" viewBox="0 0 64 64" width="64" xmlns="http://www.w3.org/2000/svg" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:xlink="http://www.w3.org/1999/xlink"><defs /><path d="M32 10 L46 15 L52 28 L46 41 L32 46 L18 41 L12 28 L18 15 Z" fill="none" stroke="#08264D" stroke-linejoin="round" stroke-width="3.2" /><line stroke="#397D0D" stroke-linecap="round" stroke-width="3.2" x1="32" x2="32" y1="18" y2="31" /><circle cx="32" cy="37" fill="#397D0D" r="1.9" /><line stroke="#FFCD00" stroke-linecap="round" stroke-width="3.2" x1="19" x2="16" y1="10" y2="5" /><line stroke="#FFCD00" stroke-linecap="round" stroke-width="3.2" x1="32" x2="32" y1="7" y2="2" /><line stroke="#FFCD00" stroke-linecap="round" stroke-width="3.2" x1="45" x2="48" y1="10" y2="5" /></svg>
|
||||||
|
After Width: | Height: | Size: 841 B |
@@ -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: 772 B |
@@ -856,3 +856,32 @@ ## 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.
|
||||||
|
|
||||||
|
|
||||||
|
## ADR-59 – Hinweiszeile: kompakter Hinweis mit optional aufklappbarer Kurzdarstellung
|
||||||
|
|
||||||
|
**Status am 27.11.2026:** Umgesetzt auf `feature/hinweiszeile`; Abnahme siehe `docs/ux/verwaltung/abnahme/hinweiszeile.md`.
|
||||||
|
**Kontext.** Hinweise wie „Dieses Bild wurde mit KI erzeugt“ brauchen auf breiten Seiten den ganzen Text, auf schmalen Bildschirmen aber wenig Bauhöhe. Es gab dafür kein Widget; der Fließtext ist zu schwer, die Überschrift mit Einleitung nicht kompakt.
|
||||||
|
**Entscheidung (Auftrag von Lars, 27.11.2026).**
|
||||||
|
- **Neues Widget `notice` („Hinweiszeile“), Version 1,** mit zwei formatierten Texten (Webprofil, ADR-50): vollständiger Text (Pflicht) und Kurztext (optional). Beide bleiben beim Wechsel des Modus erhalten.
|
||||||
|
- **Drei Modi (Einstellung `mode`):** `full` (Vorgabe, immer vollständig), `responsive` (bei schmalem Widget die Kurzdarstellung, auf Wunsch erst bei mehr umgebrochenen Zeilen als die Zeilengrenze), `collapsed` (auf jeder Breite zuerst die Kurzdarstellung; Breite und Zeilengrenze zählen nicht). Eingeklappt beim Laden, immer. Die Zeilengrenze löst nur den Wechsel aus und schneidet nie Zeilen ab.
|
||||||
|
- **„Schmal“ misst die Breite des Widgets,** nicht des Fensters (wie die Container-Abfragen der übrigen Widgets); die Schwelle ist ein Aufzählungswert (30, 40 oder 56 rem, Vorgabe 40). Die Zeilen werden im Browser gezählt (Textknoten, `Range.getClientRects()`, gleiche Zeilenposition = eine Zeile), nicht aus der Höhe geschätzt; der vollständige Text bleibt dafür eingeklappt im Layout (unsichtbar, ohne Höhe).
|
||||||
|
- **Progressive Verbesserung:** Der Server liefert immer den vollständigen Text. Kurztext und Schalter sind im Grundzustand ausgeblendet; ohne JavaScript bleibt der Hinweis vollständig lesbar. Ein Test prüft dies am Quelltext, der Browsertest ohne JavaScript am Ergebnis.
|
||||||
|
- **Kein Springen beim Laden.** Ein Modul am Seitenende käme nach dem ersten Malen (gemessen: Layoutverschiebung (CLS) von 0,04 bis 0,35 auf Seiten mit Hinweisen bei 390 und 768 px). Deshalb steht dasselbe Skript beim ersten Hinweis der Seite inline und entscheidet vor dem Malen (Vorbild: die Kopfzeile misst ebenfalls inline), und jeder Hinweis ruft es danach auf. Bis zum ersten Ergebnis ist ein einklappbarer Hinweis unsichtbar; läuft nichts, erscheint nach 1,6 s der vollständige Text. Als Modul holt die Datei dynamisch eingefügte Hinweise nach (Vorschau im Editor). Gemessen danach: 0,000 Verschiebung. Die Blockvorschauen im Seitenaufbau (Miniaturen ohne Skript) zeigen den vollständigen Text.
|
||||||
|
- **Bedienung:** Der Schalter ist ein `button` mit `aria-expanded` und `aria-controls`; seine Klickfläche deckt den ganzen Hinweis (Maus, Touch), Tastatur über den Schalter, der beim Umschalten an seiner Stelle bleibt. Links in beiden Texten liegen über der Klickfläche und bleiben einzeln bedienbar. Ein geöffneter Hinweis bleibt bei Größenänderung offen, solange er einklappbar ist; wird er es nicht mehr, steht der volle Text, und sobald er es wieder wird, beginnt er eingeklappt.
|
||||||
|
- **Gestaltung:** Schriftgrößen XS, S (Vorgabe), M, L; S, M und L sind `--text-small`, `--text-body` und `--text-lede` des Designsystems. **XS (13 px) gibt es im Designsystem nicht** und ist die einzige neue Größe (`--notice-fs` in `lf-hinweiszeile.css`), nur für Randbemerkungen. Symbol von 1 bis 3,5 rem, unabhängig von der Schrift; Fläche (Grün, Gelb, Creme), Rahmen und Akzentlinie nur mit Tokens. Auf einer Fläche gilt immer die helle Wertegruppe, auf dunklen und grünen Abschnitten ohne Fläche steht das Symbol auf einer weißen Scheibe (wie bei den Karten).
|
||||||
|
**Folgen.** Keine Migration. Neue Widget-Art; eine einmal gespeicherte Kennung `notice` bleibt (Rückfall: ein Code-Stand ohne das Widget kennt den Baustein nicht und zeigt ihn nicht an; die übrige Seite bleibt unverändert; gespeicherte Revisionen enthalten ihn weiterhin).
|
||||||
|
**Quelle.** Entwicklungsauftrag von Lars vom 27.11.2026; ADR-30, ADR-38, ADR-50.
|
||||||
@@ -74,8 +74,9 @@ ## 4. Registrierte Widget-Arten
|
|||||||
| `hero` | Einstieg (Hero), Premium nach Kit v1.6 | 2 | `photo_split` (Foto mit Textfläche), `editorial_solid` (Navy-Markenfläche) | 3, 4 | `compact` (Kompakt), `normal` (Standard, Vorgabe), `large` (Großzügig); Mindesthöhe aus der Größenskala (ADR-44) | `refs.image`, `refs.video` (optional) |
|
| `hero` | Einstieg (Hero), Premium nach Kit v1.6 | 2 | `photo_split` (Foto mit Textfläche), `editorial_solid` (Navy-Markenfläche) | 3, 4 | `compact` (Kompakt), `normal` (Standard, Vorgabe), `large` (Großzügig); Mindesthöhe aus der Größenskala (ADR-44) | `refs.image`, `refs.video` (optional) |
|
||||||
| `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 | – | – |
|
||||||
|
| `notice` | Hinweiszeile (kompakter Hinweis mit formatiertem Text, optional aufklappbare Kurzdarstellung) | 1 | `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 +109,10 @@ ## 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.
|
||||||
|
|
||||||
|
**Hinweiszeile.** `data.text` (vollständiger Text, Pflicht) und `data.short` (Kurztext, optional, nur gespeichert, wenn ausgefüllt), beide formatierter Text im Webprofil von `FormattedText` (fett, kursiv, Farbmarkierungen, Links, Listen, Ausrichtung). Beide Fassungen bleiben beim Wechsel des Modus erhalten. Einstellungen (alle Aufzählungswerte, ADR-30; Klassen und `data`-Attribute nur bei Abweichung von der Vorgabe): `mode` (`full` Vorgabe: immer vollständig; `responsive`: auf schmalen Bildschirmen die Kurzdarstellung; `collapsed`: auf jeder Breite zuerst die Kurzdarstellung), `narrow` (Widgetbreite, unter der „schmal“ gilt: 30, 40 Vorgabe oder 56 rem; nur `responsive`), `line_limit` (`l1` bis `l6`: Kurzdarstellung nur, wenn der Volltext bei der tatsächlichen Breite mehr umgebrochene Zeilen braucht; ohne Wert immer bei „schmal“; nur `responsive`, in `collapsed` unberücksichtigt), `size` (`xs`, `s` Vorgabe, `m`, `l`), `align`, `symbol`, `symbol_size` (`xs` 1 rem bis `xl` 3,5 rem, unabhängig von der Schrift), `symbol_align`, `surface` (`green`, `yellow`, `cream`: Token-Flächen, dann gilt die helle Wertegruppe `scope-light`), `border`, `bar` (`left`, `top`). Ohne Kurztext erscheint der Hinweis in jedem Modus als Volltext (die Vorschau weist darauf hin). **Verhalten:** Der Server liefert immer den vollständigen Text; ohne JavaScript bleibt er sichtbar (Kurztext und Schalter sind im Grundzustand aus). `resources/js/notice.js` entscheidet je Hinweis über „einklappbar“ (Breite des Widgets, bei Zeilengrenze die Zahl der Textzeilen über `Range.getClientRects()`), setzt `data-state` (`short`, `full`) und den Schalter (`aria-expanded`, `aria-controls`); beim Laden ist ein einklappbarer Hinweis immer eingeklappt. Das Skript steht beim ersten Hinweis der Seite inline (`NoticeWidget::bootScript()`, derselbe Dateiinhalt ohne Kommentare) und entscheidet vor dem Malen; bis dahin ist ein einklappbarer Hinweis unsichtbar (`html.js`), mit Rückfall auf den vollständigen Text nach 1,6 s. Als Modul (`app.js`) holt dieselbe Datei dynamisch eingefügte Hinweise nach. Die Klickfläche des Schalters deckt den ganzen Hinweis; Links im Text liegen darüber.
|
||||||
|
|
||||||
**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):**
|
||||||
@@ -209,6 +214,8 @@ ## 9. Rollback und Datenformat (wichtig vor dem Merge nach `main`)
|
|||||||
| Iteration 1 (Widget-Registry ohne Abschnitte) | zeigen alle Widgets untereinander; Raster, Flächen, Hintergrundbilder, Trenner und Untermenüs entfallen | darstellbar, aber **nicht gleichwertig** |
|
| Iteration 1 (Widget-Registry ohne Abschnitte) | zeigen alle Widgets untereinander; Raster, Flächen, Hintergrundbilder, Trenner und Untermenüs entfallen | darstellbar, aber **nicht gleichwertig** |
|
||||||
| Stand vor der Widget-Registry (derzeitiger Stand `main`/Prod) | `blocks` liegt im Hüllenformat vor, das dieser Code nicht lesen kann: Fehler auf genau diesen Seiten | **nicht sicher** |
|
| Stand vor der Widget-Registry (derzeitiger Stand `main`/Prod) | `blocks` liegt im Hüllenformat vor, das dieser Code nicht lesen kann: Fehler auf genau diesen Seiten | **nicht sicher** |
|
||||||
|
|
||||||
|
**Ausgeblendete Abschnitte und Sprungmarken.** Ein Programmstand vor `hidden` kennt das Feld nicht: Nach einem Code-Rollback erscheinen ausgeblendete Abschnitte wieder auf der Website, und Menüeinträge mit Sprungmarke führen zum Seitenanfang (die Spalte `navigation_items.anchor` bleibt unberührt). Vor einem Rollback ausgeblendete Abschnitte also prüfen (`cms:revert-published` setzt veröffentlichte Seiten zurück).
|
||||||
|
|
||||||
**Wiederherstellungsweg** (vor dem Code-Rollback, solange der neue Code läuft):
|
**Wiederherstellungsweg** (vor dem Code-Rollback, solange der neue Code läuft):
|
||||||
|
|
||||||
1. Probelauf: `php artisan cms:revert-published --before="<Zeitpunkt des Deployments>"` listet jede veröffentlichte Seite, deren Revision danach entstand, und die Revision, auf die zurückgesetzt würde.
|
1. Probelauf: `php artisan cms:revert-published --before="<Zeitpunkt des Deployments>"` listet jede veröffentlichte Seite, deren Revision danach entstand, und die Revision, auf die zurückgesetzt würde.
|
||||||
@@ -252,6 +259,16 @@ ## 11. Abschnitte und Plätze
|
|||||||
"slots": [{"id": "…", "type": "cards", "v": 1, "…": "…"}, null]}
|
"slots": [{"id": "…", "type": "cards", "v": 1, "…": "…"}, null]}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
**Name, Sprungmarke und Ausblenden (optional, abwärtskompatibel).** Ein Abschnitt kann zusätzlich `name`, `anchor` und `hidden` tragen; fehlen sie (ältere Revisionen), gelten „kein Name“, „keine Sprungmarke“, „sichtbar“.
|
||||||
|
|
||||||
|
- `name`: interner Name zur Orientierung (höchstens 80 Zeichen). Er steht im Seitenaufbau und in der Linkauswahl und erscheint **nie** auf der Website.
|
||||||
|
- `anchor`: Sprungmarke (Kleinbuchstaben, Ziffern, einzelne Bindestriche, höchstens 60 Zeichen), je Seite eindeutig, ohne reservierte Kennungen (`inhalt`, `main`, `top`, `site-nav`, `fuss-themen`, `mb-account-menu`, Vorsilbe `bereich-`). Der Renderer gibt sie als `id` des Abschnitts aus; ohne Sprungmarke bleibt `bereich-<Kennung>`. Der Versatz zur festen Kopfzeile kommt aus `scroll-padding-top` (`resources/css/base.css`). Ein Link „#marke“ gilt auf derselben Seite, „/pfad#marke“ von anderen Seiten, „https://Adresse/pfad#marke“ von außen.
|
||||||
|
- `hidden`: `true` blendet den Abschnitt auf der Website aus. Er zählt weder für die Hauptüberschrift (H1) noch für Trenner; Bilder und Medien bleiben erfasst, damit sie nicht als ungenutzt gelten. Die Seitenvorschau zeigt an seiner Stelle einen schmalen Hinweis. `pageTitle()` übergeht ausgeblendete Abschnitte.
|
||||||
|
- Fehler: `sections.N.name`, `sections.N.anchor` (Form, reserviert, doppelt). Ein kopierter Abschnitt gibt seine Sprungmarke ab (Namen erhalten „(Kopie)“), damit die Seite speicherbar bleibt.
|
||||||
|
- Im Seitenaufbau stehen die Felder am Abschnitt („Name, Sprungmarke und Sichtbarkeit“); die Kopfzeile des Abschnitts zeigt Name, `#marke` und „Ausgeblendet“.
|
||||||
|
|
||||||
|
**Linkziele.** `SafeUrl` erlaubt Seitenpfade (auch mit `#marke`), `#marke` (nur diese Seite) und http(s)-Adressen. Alle Linkfelder der Widgets (Schaltflächen von Einstieg und Bild-Text, Handlungsaufforderung, Karten, Merkmale) sind `WidgetsSupportinkfield`: ein Textfeld mit Linksymbol, das den Dialog „Interne Seite wählen“ (`ChoosesLinkTargets`, `filament.cms.link-picker`) öffnet. Schritt 1 wählt die Seite (oder „Diese Seite“) mit Veröffentlichungszustand, Schritt 2 eine Sprungmarke; nicht veröffentlichte Marken und ausgeblendete Abschnitte sind gekennzeichnet. Die Marken der bearbeiteten Seite stammen aus dem Formular (auch ungespeicherte). Der Dialog schreibt nur die Adresse in das Feld. Im formatierten Text (Fließtext, Einleitung der Überschrift, Bild-Text) setzt das Werkzeug „Interne Seite oder Sprungmarke verlinken“ (`InternalLinkPlugin`) den Link am markierten Text. Menüeinträge: Spalte `navigation_items.anchor`, zweiter Schritt in „Ziel ändern“; der Link bleibt an die Zielseite gebunden.
|
||||||
|
|
||||||
| Raster | Einheiten | Desktop (Abschnitt ab 60 rem) | Tablet (40–60 rem) | Smartphone |
|
| Raster | Einheiten | Desktop (Abschnitt ab 60 rem) | Tablet (40–60 rem) | Smartphone |
|
||||||
|---|---|---|---|---|
|
|---|---|---|---|---|
|
||||||
| `u4` | 4 | volle Breite | volle Breite | volle Breite |
|
| `u4` | 4 | volle Breite | volle Breite | volle Breite |
|
||||||
|
|||||||
@@ -14,6 +14,8 @@ ## 1. Inhalt (Stand 21.11.2026 abends: 22 Commits seit `main`)
|
|||||||
| Medienkarte: Film nur mit Website-Datei | Ein Medium ohne Fassung (z. B. Teaser) ist auf der Medienkarte wählbar und erscheint öffentlich, sobald die Datei für die Website freigegeben ist (ohne Programmseite, ohne Aktion). Keine Migration | Claude |
|
| Medienkarte: Film nur mit Website-Datei | Ein Medium ohne Fassung (z. B. Teaser) ist auf der Medienkarte wählbar und erscheint öffentlich, sobald die Datei für die Website freigegeben ist (ohne Programmseite, ohne Aktion). Keine Migration | Claude |
|
||||||
| Karte ohne Texte | Medien- und Programmkarte: Einstellung „Texte auf der Karte“ (Ausblenden) zeigt nur Bild oder Video; der Titel bleibt für Hilfstechnik. Keine Migration | Claude |
|
| Karte ohne Texte | Medien- und Programmkarte: Einstellung „Texte auf der Karte“ (Ausblenden) zeigt nur Bild oder Video; der Titel bleibt für Hilfstechnik. Keine Migration | Claude |
|
||||||
| Reiter „Darstellung“ gegliedert | Aufbau, Gruppen je Widget, Erklärungen im (i), Einzelschalter für Texte verschwinden bei „Texte auf der Karte: Ausblenden“; Bezeichnungen vereinheitlicht. Keine Migration, gespeicherte Werte unverändert | Claude |
|
| Reiter „Darstellung“ gegliedert | Aufbau, Gruppen je Widget, Erklärungen im (i), Einzelschalter für Texte verschwinden bei „Texte auf der Karte: Ausblenden“; Bezeichnungen vereinheitlicht. Keine Migration, gespeicherte Werte unverändert | Claude |
|
||||||
|
| Abschnitte: Name, Sprungmarke, Ausblenden | Abschnitte lassen sich benennen (nur zur Orientierung), als Sprungmarke nutzen (Link „#marke“, „/pfad#marke“, von außen „Adresse#marke“) und für die Website ausblenden; Anzeige im Seitenaufbau. Keine Migration (neue optionale Felder in `sections`). **Rollback:** ältere Stände kennen „ausgeblendet“ nicht und zeigen solche Abschnitte wieder | Claude |
|
||||||
|
| Interne Links wählen | Alle Linkfelder der Widgets und das Werkzeug im formatierten Text bieten einen Dialog für Seiten und Sprungmarken; Menüeinträge können auf eine Sprungmarke zeigen. Migration `2026_12_02_100000_add_anchor_to_navigation_items` (additiv) | Claude |
|
||||||
| Hero mit Video | Der Einstieg (Variante Foto mit Textfläche) spielt auf Wunsch ein freigegebenes Video stumm auf der Fläche des Fotos ab, mit Schaltfläche zum Anhalten; Foto als Rückfall (ADR-43 Nachtrag). Keine Migration | Claude |
|
| Hero mit Video | Der Einstieg (Variante Foto mit Textfläche) spielt auf Wunsch ein freigegebenes Video stumm auf der Fläche des Fotos ab, mit Schaltfläche zum Anhalten; Foto als Rückfall (ADR-43 Nachtrag). Keine Migration | Claude |
|
||||||
| Website-Datei eines Films | Ablage der Datei eines eigenständigen Präsentationsmediums über die Warteschlange, nachträgliches Hochladen am Medium (Behebung: der Web-Prozess darf `derived/` nicht schreiben) | Lars (anderer Rechner) |
|
| Website-Datei eines Films | Ablage der Datei eines eigenständigen Präsentationsmediums über die Warteschlange, nachträgliches Hochladen am Medium (Behebung: der Web-Prozess darf `derived/` nicht schreiben) | Lars (anderer Rechner) |
|
||||||
| Medienmanager | „Medium löschen“ erreicht Standbilder und übernommene CMS-Bilder (Fremdschlüssel gelockert) | Claude |
|
| Medienmanager | „Medium löschen“ erreicht Standbilder und übernommene CMS-Bilder (Fremdschlüssel gelockert) | Claude |
|
||||||
@@ -44,6 +46,7 @@ ## 3. Migrationen (Prod steht bei der 32. Migration `2026_11_20_200000_editorial
|
|||||||
| `2026_11_21_130000_add_shop_foundation` | Spalten an `offers`, `orders`, `order_lines`, `acquisitions`, neue Tabelle `memberships`, Rückrechnung bestehender Bestellungen | additiv; Daten werden berechnet, nicht gelöscht |
|
| `2026_11_21_130000_add_shop_foundation` | Spalten an `offers`, `orders`, `order_lines`, `acquisitions`, neue Tabelle `memberships`, Rückrechnung bestehender Bestellungen | additiv; Daten werden berechnet, nicht gelöscht |
|
||||||
| `2026_11_21_130000_allow_deleting_media_with_stills_and_aliases` | lockert zwei Fremdschlüssel (`film_still_sources`, `website_media_aliases`) | ja, lockert nur |
|
| `2026_11_21_130000_allow_deleting_media_with_stills_and_aliases` | lockert zwei Fremdschlüssel (`film_still_sources`, `website_media_aliases`) | ja, lockert nur |
|
||||||
| `2026_11_21_140000_create_composition_still_sources` | neue Tabelle | ja |
|
| `2026_11_21_140000_create_composition_still_sources` | neue Tabelle | ja |
|
||||||
|
| `2026_12_02_100000_add_anchor_to_navigation_items` | nullable Spalte `anchor` an `navigation_items` | ja, additiv (ältere Stände ignorieren sie; der Menülink führt dann zum Seitenanfang) |
|
||||||
|
|
||||||
Keine bestehende Migration wurde geändert. Verglichen mit der Migrationstabelle von Prod (lesend): Prod hat 32 angewendet, `develop` 37 Dateien, **genau diese fünf sind ausstehend**, nichts auf Prod fehlt in `develop`. Prod hat 0 Bestellungen; die Rückrechnung in `add_shop_foundation` hat dort nichts zu tun. Der Rollback des Deploy-Skripts setzt nur den Code zurück, nicht die Datenbank; die neuen Tabellen und gelockerten Schlüssel stören älteren Code nicht.
|
Keine bestehende Migration wurde geändert. Verglichen mit der Migrationstabelle von Prod (lesend): Prod hat 32 angewendet, `develop` 37 Dateien, **genau diese fünf sind ausstehend**, nichts auf Prod fehlt in `develop`. Prod hat 0 Bestellungen; die Rückrechnung in `add_shop_foundation` hat dort nichts zu tun. Der Rollback des Deploy-Skripts setzt nur den Code zurück, nicht die Datenbank; die neuen Tabellen und gelockerten Schlüssel stören älteren Code nicht.
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,47 @@
|
|||||||
|
# Abnahme: Hinweiszeile (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 (Chromium) auf echten Seiten und im Widget-Dialog der Verwaltung. Die Einstellungen sind Aufzählungswerte (ADR-30), Entscheidungen stehen in ADR-59, die Widget-Beschreibung in `docs/architektur/cms-widget-registry.md`.
|
||||||
|
|
||||||
|
## Die drei Abnahmebeispiele
|
||||||
|
|
||||||
|
| Beispiel | Einstellung | Ergebnis |
|
||||||
|
|---|---|---|
|
||||||
|
| **1. KI-Bildhinweis** | Modus „Responsiv“, Zeilengrenze „mehr als 2 Zeilen“, Fläche Gelb, Rahmen, Symbol | Auf 1280 px (Widget 1185 px) der vollständige Text. Auf 390 px (Widget 343 px) braucht der Text mehr als zwei Zeilen: Kurzdarstellung mit Pfeil, eingeklappt beim Laden. Ein kurzer Hinweis (eine Zeile) bleibt auch dort vollständig und hat keinen Schalter. |
|
||||||
|
| **2. Ergänzende Information** | Modus „Immer mit Kurzdarstellung starten“ | Auf 1280, 768 und 390 px zuerst die Kurzdarstellung. Ein Klick auf den Hinweis zeigt den vollständigen Text, ein weiterer Klick stellt die Kurzdarstellung wieder her. Die Zeilengrenze ist in diesem Modus ohne Wirkung. |
|
||||||
|
| **3. Allgemeine Information** | Modus „Volltext“ (Vorgabe) | Immer vollständig, ohne Schalter, ohne Skript-Attribut im Quelltext. |
|
||||||
|
|
||||||
|
| Beispiel 1, 1280 px | Beispiel 1, 390 px (eingeklappt) | Beispiel 1, 390 px (aufgeklappt) |
|
||||||
|
|---|---|---|
|
||||||
|
|  |  |  |
|
||||||
|
|
||||||
|
| Beispiel 2, 1280 px | Beispiel 2, aufgeklappt | Beispiel 2, 390 px |
|
||||||
|
|---|---|---|
|
||||||
|
|  |  |  |
|
||||||
|
|
||||||
|
| Beispiel 3, 1280 px | Beispiel 3, 390 px |
|
||||||
|
|---|---|
|
||||||
|
|  |  |
|
||||||
|
|
||||||
|
Tablet (768 px): `hinweiszeile/h-a-768.png`, `h-b-768.png`, `h-c-768.png`, `h-d-768.png`.
|
||||||
|
|
||||||
|
## Geprüft
|
||||||
|
|
||||||
|
- **Entscheidung nach Widgetbreite, nicht nach Fenster.** Vier Hinweise in einer Zeile (je 275 px breit) klappen auf 1280 px Fensterbreite ein (der kurze unter ihnen nicht), derselbe lange Hinweis über die ganze Seite nicht. Die Schwelle (30, 40 oder 56 rem) und die Zeilengrenze wirken wie eingestellt (zwei Hinweise in zwei Spalten, Zeilengrenze 3 mit der Schwelle 56 rem und Zeilengrenze 1 mit 30 rem: bei 579 px Widgetbreite je vollständig).
|
||||||
|
- **Zeilen werden gezählt, nicht die Höhe geschätzt.** Ein Hinweis mit einer Zeile bleibt bei Grenze 2 vollständig, einer mit drei Zeilen klappt ein.
|
||||||
|
- **Beim Laden immer eingeklappt**, wenn die Kurzdarstellung gilt; ein geöffneter Hinweis bleibt bei weiterem Verkleinern offen, steht bei breitem Fenster vollständig (Schalter weg) und beginnt beim erneuten Verkleinern wieder eingeklappt.
|
||||||
|
- **Kein Flackern.** Layoutverschiebung (CLS) beim Laden von vier Testseiten bei 390, 768 und 1280 px: 0,000 in allen Fällen. Ohne das Inline-Skript (ein reines Modul am Seitenende) waren es vorher bis zu 0,35 (Beispiel 1 auf 390 px). Fehlt jedes Skript, ist der Hinweis kurz unsichtbar und erscheint nach etwa 1,6 s vollständig.
|
||||||
|
- **Ohne JavaScript:** Der vollständige Text ist sichtbar, Kurztext und Schalter sind es nicht.
|
||||||
|
- **Bedienung.** Maus: Klick irgendwo auf den Hinweis schaltet um. Tastatur: Der Schalter ist mit Tab erreichbar, Enter und Leertaste schalten um, der Fokus bleibt auf dem Schalter, der Fokusrahmen umschließt den ganzen Hinweis (Bild „h-c-1280-fokus“). `aria-expanded` wechselt mit dem Zustand, `aria-controls` zeigt auf den vollständigen Text.
|
||||||
|
- **Links** in Kurz- und Volltext liegen über der Klickfläche: Ein Klick auf den Link öffnet die Seite und schaltet nicht um (Trefferprüfung und Navigation).
|
||||||
|
- **Reduzierte Bewegung:** gleiche Entscheidung; der Pfeil dreht sich ohne sichtbaren Übergang (die globale Regel in `base.css` kürzt jeden Übergang).
|
||||||
|
- **Gestaltung (Bild „h-d“).** Schriftgrößen XS, S, M, L; Symbol von 1 rem bis 3,5 rem unabhängig von der Schrift (oben, Mitte, unten); Flächen Grün, Gelb, Creme, Rahmen, Akzentlinie links und oben; links, zentriert, rechtsbündig. Auf dunklen und grünen Abschnitten: ohne Fläche steht das Symbol auf einer weißen Scheibe, mit Fläche ist die Schrift dunkel auf heller Fläche; Links und Farbmarkierungen bleiben lesbar.
|
||||||
|
- **Editor.** Der Dialog hat zwei Editoren („Vollständiger Text“, „Kurztext (optional)“) und die Gruppen Darstellungsmodus, Text, Symbol, Fläche; Eingaben im Kurztext erscheinen nach dem Speichern wieder, beide Texte bleiben beim Wechsel des Modus erhalten (Test und Dialog). Die Vorschau im Dialog zeigt mit „Smartphone“ die Kurzdarstellung und mit „4 Einheiten“ den vollständigen Text (Bilder „editor-inhalt“, „editor-darstellung“, „editor-darstellung-gesetzt“, „editor-vorschau-smartphone“). Keine Konsolenfehler.
|
||||||
|
|
||||||
|
## Zu wissen
|
||||||
|
|
||||||
|
- **XS gibt es im Designsystem nicht.** S, M und L sind die Stufen „klein“, „Text“ und „Einleitung“ (`--text-small`, `--text-body`, `--text-lede`). XS (13 px) ist die einzige neue Größe und nur für Randbemerkungen gedacht.
|
||||||
|
- **Ohne Kurztext erscheint der Hinweis immer vollständig,** auch in den Modi „Responsiv“ und „Immer mit Kurzdarstellung“. Die Vorschau sagt das; der Kurztext ist nicht Pflicht, weil die Einstellungen beim Speichern der Texte nicht bekannt sind.
|
||||||
|
- **Die Miniaturen im Seitenaufbau** (Blockvorschau ohne Skript) zeigen den vollständigen Text; die Vorschau im Dialog und die Seitenvorschau verhalten sich wie die Website.
|
||||||
|
- Ein Schriftwechsel nach dem Laden kann die Zeilenzahl ändern; der Hinweis rechnet nach dem Laden der Schriften neu. Die Schriften sind vorgeladen.
|
||||||
|
|
||||||
|
Nicht geprüft: luf-test, Screenreader, Touch, Browser außer Chromium, ein Hinweis in Abschnitten mit Hintergrundbild, Druckausgabe (die Regeln dafür stehen im Stylesheet: vollständiger Text, kein Schalter).
|
||||||
|
After Width: | Height: | Size: 113 KiB |
|
After Width: | Height: | Size: 112 KiB |
|
After Width: | Height: | Size: 133 KiB |
|
After Width: | Height: | Size: 129 KiB |
|
After Width: | Height: | Size: 117 KiB |
|
After Width: | Height: | Size: 65 KiB |
|
After Width: | Height: | Size: 53 KiB |
|
After Width: | Height: | Size: 56 KiB |
|
After Width: | Height: | Size: 103 KiB |
|
After Width: | Height: | Size: 77 KiB |
|
After Width: | Height: | Size: 56 KiB |
|
After Width: | Height: | Size: 80 KiB |
|
After Width: | Height: | Size: 65 KiB |
|
After Width: | Height: | Size: 58 KiB |
|
After Width: | Height: | Size: 58 KiB |
|
After Width: | Height: | Size: 44 KiB |
|
After Width: | Height: | Size: 46 KiB |
|
After Width: | Height: | Size: 109 KiB |
|
After Width: | Height: | Size: 92 KiB |
|
After Width: | Height: | Size: 97 KiB |
@@ -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,9 @@
|
|||||||
@import './site.css';
|
@import './site.css';
|
||||||
@import './sections.css';
|
@import './sections.css';
|
||||||
@import './widgets.css';
|
@import './widgets.css';
|
||||||
|
@import './components/lf-karten-verteilung.css';
|
||||||
|
/* Hinweiszeile (Widget „notice“). */
|
||||||
|
@import './components/lf-hinweiszeile.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,215 @@
|
|||||||
|
/*
|
||||||
|
* Hinweiszeile (Widget „notice“, resources/views/widgets/notice.blade.php, Verhalten in resources/js/notice.js).
|
||||||
|
* Nur Tokens aus tokens.css; die einzige neue Größe ist die Schriftstufe XS (13 px), die das Designsystem nicht kennt.
|
||||||
|
*
|
||||||
|
* Grundzustand (ohne JavaScript): der vollständige Text, kein Schalter. Mit JavaScript setzt notice.js data-ready und
|
||||||
|
* data-state (short | full); die Kurzdarstellung gibt es nur dann, wenn der Hinweis einklappbar ist.
|
||||||
|
*/
|
||||||
|
.notice {
|
||||||
|
--notice-fs: var(--text-small);
|
||||||
|
--notice-sym: 1.25rem;
|
||||||
|
position: relative;
|
||||||
|
color: var(--color-text);
|
||||||
|
font-size: var(--notice-fs);
|
||||||
|
line-height: 1.5;
|
||||||
|
text-align: start;
|
||||||
|
}
|
||||||
|
|
||||||
|
.notice--size-xs { --notice-fs: 0.8125rem; }
|
||||||
|
.notice--size-m { --notice-fs: var(--text-body); }
|
||||||
|
.notice--size-l { --notice-fs: var(--text-lede); }
|
||||||
|
|
||||||
|
.notice--center { text-align: center; }
|
||||||
|
.notice--right { text-align: end; }
|
||||||
|
|
||||||
|
/* Text im Hinweis erbt die Stufe; die Absätze rücken eng zusammen. */
|
||||||
|
.notice .prose {
|
||||||
|
font-size: inherit;
|
||||||
|
line-height: inherit;
|
||||||
|
}
|
||||||
|
|
||||||
|
.notice .prose p {
|
||||||
|
margin: 0 0 0.5em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.notice .prose ul,
|
||||||
|
.notice .prose ol {
|
||||||
|
margin-block: 0 0.5em;
|
||||||
|
padding-inline-start: 1.25em;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Links im Text bleiben einzeln bedienbar, auch über der Klickfläche des Schalters. */
|
||||||
|
.notice .prose a {
|
||||||
|
position: relative;
|
||||||
|
z-index: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.notice-row {
|
||||||
|
display: flex;
|
||||||
|
align-items: flex-start;
|
||||||
|
gap: var(--space-2);
|
||||||
|
}
|
||||||
|
|
||||||
|
.notice-body {
|
||||||
|
position: relative;
|
||||||
|
flex: 1 1 0;
|
||||||
|
min-inline-size: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Symbol: Zierde, Größe unabhängig von der Schrift. Oben steht es mittig zur ersten Zeile. */
|
||||||
|
.notice-symbol {
|
||||||
|
--sym-s: var(--notice-sym);
|
||||||
|
flex: none;
|
||||||
|
margin-block-start: max(0px, calc((1lh - var(--sym-bh)) / 2));
|
||||||
|
}
|
||||||
|
|
||||||
|
.notice-symbol--xs { --notice-sym: 1rem; }
|
||||||
|
.notice-symbol--s { --notice-sym: 1.25rem; }
|
||||||
|
.notice-symbol--m { --notice-sym: 1.75rem; }
|
||||||
|
.notice-symbol--l { --notice-sym: 2.5rem; }
|
||||||
|
.notice-symbol--xl { --notice-sym: 3.5rem; }
|
||||||
|
|
||||||
|
.notice--symbol-center .notice-row { align-items: center; }
|
||||||
|
.notice--symbol-bottom .notice-row { align-items: flex-end; }
|
||||||
|
.notice--symbol-center .notice-symbol,
|
||||||
|
.notice--symbol-bottom .notice-symbol { margin-block-start: 0; }
|
||||||
|
|
||||||
|
/* Auf dunklen und grünen Abschnitten ohne eigene Fläche steht das Symbol auf einer weißen Scheibe (wie bei den Karten). */
|
||||||
|
.scope-dark .notice:not(.notice--surface) .notice-symbol,
|
||||||
|
.scope-accent .notice:not(.notice--surface) .notice-symbol {
|
||||||
|
--sym-chip: calc(var(--sym-s) * 0.2);
|
||||||
|
box-sizing: content-box;
|
||||||
|
padding-inline: calc((var(--sym-s) - var(--sym-bw)) / 2 + var(--sym-chip));
|
||||||
|
padding-block: calc((var(--sym-s) - var(--sym-bh)) / 2 + var(--sym-chip));
|
||||||
|
border-radius: 50%;
|
||||||
|
background: var(--lf-white);
|
||||||
|
margin-block-start: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Fläche, Rahmen und Akzentlinie: Farben nur aus Tokens. Auf einer Fläche gilt immer die helle Wertegruppe (scope-light). */
|
||||||
|
.notice--surface,
|
||||||
|
.notice--border,
|
||||||
|
.notice--bar {
|
||||||
|
padding: var(--space-2) var(--space-3);
|
||||||
|
border-radius: var(--radius-small);
|
||||||
|
}
|
||||||
|
|
||||||
|
.notice--surface { background: var(--notice-bg); }
|
||||||
|
.notice--surface-green { --notice-bg: var(--lf-green-tint); }
|
||||||
|
.notice--surface-yellow { --notice-bg: var(--lf-yellow-tint); }
|
||||||
|
.notice--surface-cream { --notice-bg: var(--lf-cream); }
|
||||||
|
|
||||||
|
.notice--border { border: 1px solid var(--color-border-strong); }
|
||||||
|
|
||||||
|
.notice--bar-left {
|
||||||
|
border-inline-start: 4px solid var(--color-action);
|
||||||
|
border-start-start-radius: 0;
|
||||||
|
border-end-start-radius: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.notice--bar-top {
|
||||||
|
border-block-start: 4px solid var(--color-action);
|
||||||
|
border-start-start-radius: 0;
|
||||||
|
border-start-end-radius: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Farbmarkierungen auf einer Fläche mitten in einem dunklen Abschnitt: Werte der hellen Fläche. */
|
||||||
|
.widget-notice .notice.scope-light .prose {
|
||||||
|
--tc-marine: var(--lf-navy);
|
||||||
|
--tc-gruen: var(--lf-green-deep);
|
||||||
|
--tc-rot: #a8212b;
|
||||||
|
--tc-grau: var(--lf-ink-muted);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Kurzdarstellung: im Grundzustand aus, mit JavaScript je nach Zustand. */
|
||||||
|
.notice-short { display: none; }
|
||||||
|
.notice-toggle[hidden] { display: none; }
|
||||||
|
|
||||||
|
.notice[data-state='short'] .notice-short { display: block; }
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Der vollständige Text bleibt eingeklappt im Layout (unsichtbar, ohne Höhe), damit notice.js seine Zeilen bei der echten
|
||||||
|
* Breite zählen kann, ohne umzuschalten.
|
||||||
|
*/
|
||||||
|
.notice[data-state='short'] .notice-full {
|
||||||
|
position: absolute;
|
||||||
|
inset-block-start: 0;
|
||||||
|
inset-inline: 0;
|
||||||
|
block-size: 0;
|
||||||
|
overflow: hidden;
|
||||||
|
visibility: hidden;
|
||||||
|
pointer-events: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Bis notice.js das erste Ergebnis hat, ist der Hinweis unsichtbar, damit er nicht vom vollen Text zur Kurzdarstellung
|
||||||
|
* springt. Läuft das Skript nicht (Ladefehler), erscheint der vollständige Text nach kurzer Zeit von selbst.
|
||||||
|
*/
|
||||||
|
html.js .notice[data-notice]:not([data-ready]) {
|
||||||
|
visibility: hidden;
|
||||||
|
animation: notice-failsafe 0.01s linear 1.6s forwards;
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes notice-failsafe {
|
||||||
|
to { visibility: visible; }
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Schalter: Pfeil rechts neben dem Text; seine Klickfläche deckt den ganzen Hinweis ab. */
|
||||||
|
.notice-toggle {
|
||||||
|
flex: none;
|
||||||
|
display: inline-flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
inline-size: 1.75rem;
|
||||||
|
block-size: 1.75rem;
|
||||||
|
margin-block-start: calc((1lh - 1.75rem) / 2);
|
||||||
|
padding: 0;
|
||||||
|
border: 0;
|
||||||
|
border-radius: var(--radius-pill);
|
||||||
|
background: transparent;
|
||||||
|
color: inherit;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
.notice-toggle::after {
|
||||||
|
content: '';
|
||||||
|
position: absolute;
|
||||||
|
inset: 0;
|
||||||
|
border-radius: inherit;
|
||||||
|
}
|
||||||
|
|
||||||
|
.notice-toggle:hover {
|
||||||
|
background: color-mix(in srgb, currentColor 12%, transparent);
|
||||||
|
}
|
||||||
|
|
||||||
|
.notice-toggle:focus-visible {
|
||||||
|
outline: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.notice:has(.notice-toggle:focus-visible) {
|
||||||
|
outline: 3px solid var(--color-focus, var(--lf-focus));
|
||||||
|
outline-offset: 3px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.notice-chevron {
|
||||||
|
inline-size: 1.25rem;
|
||||||
|
block-size: 1.25rem;
|
||||||
|
transition: transform 0.2s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.notice-toggle[aria-expanded='true'] .notice-chevron {
|
||||||
|
transform: rotate(180deg);
|
||||||
|
}
|
||||||
|
|
||||||
|
@media print {
|
||||||
|
.notice .notice-short { display: none; }
|
||||||
|
|
||||||
|
.notice[data-state='short'] .notice-full {
|
||||||
|
position: static;
|
||||||
|
block-size: auto;
|
||||||
|
overflow: visible;
|
||||||
|
visibility: visible;
|
||||||
|
}
|
||||||
|
|
||||||
|
.notice-toggle { display: none; }
|
||||||
|
}
|
||||||
@@ -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; }
|
||||||
|
}
|
||||||
@@ -200,3 +200,14 @@ .section-divider-accent span {
|
|||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
background: var(--lf-yellow);
|
background: var(--lf-yellow);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Vorschau: Platzhalter für einen ausgeblendeten Abschnitt (die Website zeigt ihn nie). */
|
||||||
|
.section-hidden-note {
|
||||||
|
margin: var(--space-3, 0.75rem) auto;
|
||||||
|
max-inline-size: 60rem;
|
||||||
|
padding: 0.5rem 0.875rem;
|
||||||
|
border: 1px dashed currentColor;
|
||||||
|
border-radius: 0.5rem;
|
||||||
|
font-size: 0.875rem;
|
||||||
|
opacity: 0.7;
|
||||||
|
}
|
||||||