Füge großes Symbol neben dem Absatz und Links in der Merkmalszeile hinzu
Nach der ersten Sichtung auf luf-test: - Einstellung "Größe des Symbols" (settings.symbol_size = large) bei Überschrift und Handlungsaufruf: das Symbol steht groß links neben Überschrift, Text und Schaltfläche, bei höchstens 24 rem Slotbreite darüber. Vorgabe bleibt das kleine Symbol vor der Überschrift. Ohne gewähltes Symbol hat die Größe keine Wirkung. - Merkmalszeile: je Merkmal optional Linkziel (SafeUrl) und Linktext (Vorgabe "Mehr erfahren", ohne Linkziel verworfen). Die Einstellung "Darstellung der Links" wählt für das Widget kleiner Textlink (Vorgabe) oder Pille. Der zugängliche Name des Links nennt das Merkmal. - Auf dunklen Flächen steht auch das große Symbol auf einer weißen Scheibe. - Doku: Die Tabelle in cms-widget-registry.md war durch meinen früheren Absatz zerrissen (Zeile "Höhe" stand außerhalb) und ist wieder in Ordnung. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
ad581cb545
commit
3c7a71532f
14 files changed
+270
-12
No files matched your search
@@ -130,3 +130,84 @@ .lf-features__text {
|
||||
max-inline-size: var(--measure);
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
|
||||
.lf-features__more {
|
||||
margin: var(--space-1) 0 0;
|
||||
}
|
||||
|
||||
/* Link der Merkmale: kleiner Textlink (Vorgabe) oder Pille. */
|
||||
.lf-features__link {
|
||||
font-weight: 700;
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
|
||||
.lf-features__link--text {
|
||||
color: var(--color-link);
|
||||
font-size: 0.9375rem;
|
||||
text-decoration: underline;
|
||||
text-underline-offset: 0.2em;
|
||||
}
|
||||
|
||||
.lf-features__link--text:hover {
|
||||
color: var(--color-link-hover, var(--color-link));
|
||||
}
|
||||
|
||||
.lf-features__link--pill {
|
||||
display: inline-block;
|
||||
padding: 0.5em 1.1em;
|
||||
border-radius: var(--radius-pill);
|
||||
background: var(--color-action);
|
||||
color: var(--color-action-text);
|
||||
font-size: 0.9375rem;
|
||||
line-height: 1.25;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.lf-features__link--pill:hover {
|
||||
background: var(--color-action-hover);
|
||||
}
|
||||
|
||||
.lf-features__link:focus-visible {
|
||||
outline: 3px solid var(--color-focus, var(--lf-focus));
|
||||
outline-offset: 3px;
|
||||
}
|
||||
|
||||
/*
|
||||
* Großes Symbol links neben dem ganzen Absatz (Einstellung „Größe des Symbols“ = groß): Überschrift, Text und
|
||||
* Schaltfläche stehen in einer Spalte rechts. Bei wenig Platz im Slot steht das Symbol darüber.
|
||||
*/
|
||||
.lf-lead {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
gap: var(--space-4);
|
||||
}
|
||||
|
||||
.lf-lead__symbol {
|
||||
inline-size: clamp(4.5rem, 12cqi, 7rem);
|
||||
block-size: clamp(4.5rem, 12cqi, 7rem);
|
||||
flex: none;
|
||||
overflow: visible;
|
||||
}
|
||||
|
||||
.lf-lead__body {
|
||||
flex: 1 1 0;
|
||||
min-inline-size: 0;
|
||||
}
|
||||
|
||||
.lf-lead__body > :first-child {
|
||||
margin-block-start: 0;
|
||||
}
|
||||
|
||||
@container slot (max-width: 24rem) {
|
||||
.lf-lead {
|
||||
flex-direction: column;
|
||||
}
|
||||
}
|
||||
|
||||
.scope-dark .lf-lead__symbol,
|
||||
.scope-accent .lf-lead__symbol {
|
||||
box-sizing: content-box;
|
||||
padding: 0.5rem;
|
||||
border-radius: 50%;
|
||||
background: var(--lf-white);
|
||||
}
|
||||
Reference in new issue
Block a user