Füge die zentrale Farbpalette und die Hintergrundbreite für Abschnitte hinzu (ADR-67)
- DesignPalette: bis zu zehn benannte Farben (Hintergrund und Schrift) in site_settings, stabile Kennungen, Kontrastprüfung 4,5:1 auf dem Server, Verwendungssuche - Seite Website → Design → Farben (Systemverwalter): Kacheln, Dialog mit Live-Vorschau, Kontrastwarnung mit Empfehlung, Bestätigung mit betroffenen Seiten, Entfernen gesperrt bei Verwendung - Hintergrund „Farbe aus der Palette“ als Verweis im bestehenden Feld background; farbige Kacheln im Editor - Renderer leitet Bedeutungswerte aus Hintergrund und Schrift ab; scope-dark bei heller Schrift - Hintergrundbreite: volle Browserbreite (Vorgabe) oder auf Abschnittsbreite begrenzt - Test sichert die Ausgabe aller bisherigen Varianten byte-gleich; Abnahme mit Screenshots Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
62f3a33541
commit
87de5a62d4
41 files changed
+2372
-14
No files matched your search
@@ -136,6 +136,48 @@ .section-bg-accent {
|
||||
background: var(--color-surface);
|
||||
}
|
||||
|
||||
/*
|
||||
* Farbe aus der Palette (ADR-67): Hintergrund- und Schriftfarbe sowie die daraus abgeleiteten Bedeutungswerte stehen als
|
||||
* Eigenschaften am Abschnitt (SectionRenderer). Bei dunkler Fläche kommt zusätzlich .scope-dark dazu, damit alle Bausteine,
|
||||
* die sich daran anpassen (Karten, Symbole, Fließtext-Farben), unverändert greifen.
|
||||
*/
|
||||
.section-bg-palette {
|
||||
background: var(--color-surface);
|
||||
}
|
||||
|
||||
/* Tabellenkopf im Fließtext: eigene, vom Hintergrund abgeleitete Fläche statt der hellen Vorgabe. */
|
||||
.section-bg-palette .prose-table th {
|
||||
background: color-mix(in srgb, var(--color-text) 7%, var(--color-surface));
|
||||
}
|
||||
|
||||
/*
|
||||
* Breite der Fläche (ADR-67, „Hintergrundbreite: Auf Abschnittsbreite begrenzt“): Die Fläche folgt der gewählten
|
||||
* Inhaltsbreite und steht zentriert; der Inhalt rückt nach innen, damit er nicht am Rand der Fläche klebt. Bei „Vollbreite“
|
||||
* wird die Klasse nicht gesetzt. Ohne diese Klasse bleibt alles wie bisher: Die Fläche reicht über die volle Browserbreite.
|
||||
*/
|
||||
.section-bg-width-section {
|
||||
--section-width: var(--container-standard);
|
||||
width: min(var(--section-width), 100% - 2 * var(--gutter));
|
||||
margin-inline: auto;
|
||||
margin-block: var(--space-3);
|
||||
border-radius: var(--radius-card);
|
||||
overflow: clip;
|
||||
}
|
||||
|
||||
.section-bg-width-section.section-width-narrow {
|
||||
--section-width: var(--container-narrow);
|
||||
}
|
||||
|
||||
.section-bg-width-section.section-width-wide {
|
||||
--section-width: var(--container-wide);
|
||||
}
|
||||
|
||||
.section-bg-width-section > .page-section-inner {
|
||||
width: auto;
|
||||
margin-inline: 0;
|
||||
padding-inline: clamp(1rem, 4vw, 3rem);
|
||||
}
|
||||
|
||||
/* Hintergrundbild mit Fokuspunkt (object-position) und Überlagerung für ausreichenden Kontrast. */
|
||||
.section-bg-image {
|
||||
--color-surface: var(--lf-navy);
|
||||
|
||||
@@ -304,6 +304,7 @@ .cards {
|
||||
}
|
||||
|
||||
.section-bg-light .cards,
|
||||
.section-bg-palette .cards,
|
||||
.scope-dark .cards,
|
||||
.scope-accent .cards,
|
||||
.section-bg-image .cards {
|
||||
@@ -948,7 +949,8 @@ .cta {
|
||||
--color-action-text: var(--lf-white);
|
||||
}
|
||||
|
||||
.section-bg-light .cta {
|
||||
.section-bg-light .cta,
|
||||
.section-bg-palette .cta {
|
||||
background: var(--lf-white);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user