Zeige Aufzählungszeichen und Nummern in Bild und Text sowie auf Shop- und Programmseiten
CI Feature / test (push) Successful in 4m41s
Deploy Test / test (push) Successful in 4m42s
Deploy Test / deploy (push) Successful in 26s

Der Grundstil setzt list-style zurück; die Container für formatierten Text
setzen disc und decimal nun ausdrücklich.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
LarsandClaude Sonnet 5.5 committed 2026-11-30 18:13:55 +01:00
1 parent 66f9275099
commit 67764c3e4f
9 files changed
+92 -2

No files matched your search

+15
View File
@@ -106,6 +106,21 @@ .prose ol {
padding-left: 1.4rem;
}
/*
* Formatierter Text außerhalb von .prose (Shop- und Programmseiten, Bild und Text): Der Grundstil von Tailwind setzt
* list-style zurück, ohne diese Regel erscheinen Aufzählungszeichen und Nummern nicht. Die Widgets Text, Überschrift,
* Karten und Hinweis stehen in widgets.css, Bild und Text in components/lf-bild-text.css.
*/
:is(.shop-description, .lede, .rich-lists) ul,
:is(.shop-description, .lede, .rich-lists) ol {
margin: 0 0 var(--space-4);
padding-inline-start: 1.4rem;
}
:is(.shop-description, .lede, .rich-lists) ul { list-style: disc; }
:is(.shop-description, .lede, .rich-lists) ol { list-style: decimal; }
:is(.shop-description, .lede, .rich-lists) li > p { margin: 0; }
.prose li > p {
margin: 0;
}
@@ -123,6 +123,10 @@ .lf-bt__body > :last-child { margin-block-end: 0; }
.lf-bt__body p { margin: 0 0 0.9em; }
.lf-bt__body ul,
.lf-bt__body ol { padding-inline-start: 1.35em; margin: 0.6em 0; }
/* Der Grundstil setzt list-style zurück; Aufzählungszeichen und Nummern des formatierten Textes müssen erscheinen. */
.lf-bt__body ul { list-style: disc; }
.lf-bt__body ol { list-style: decimal; }
.lf-bt__body li > p { margin: 0; }
.lf-bt__body a { color: inherit; text-decoration: underline; text-underline-offset: 0.15em; }
.lf-bt__actions { display: flex; flex-wrap: wrap; align-items: stretch; gap: 0.65rem; margin-block-start: clamp(1rem, 2cqi, 1.5rem); min-inline-size: 0; }
+1 -1
View File
@@ -14,7 +14,7 @@
<div class="shop-description">{!! $profile->html('description') !!}</div>
@endif
@if ($goal !== null)
<div><strong>Lernziel:</strong> {!! \App\Domain\Catalog\FormattedText::display($goal) !!}</div>
<div class="rich-lists"><strong>Lernziel:</strong> {!! \App\Domain\Catalog\FormattedText::display($goal) !!}</div>
@endif
@if ($nodes !== [])
<section class="shop-package-contents" aria-labelledby="artikel-aufbau">
+1 -1
View File
@@ -9,7 +9,7 @@
<div class="lede">{!! \App\Domain\Catalog\FormattedText::display($composition->summary) !!}</div>
@endif
@if (filled($version->learning_goal))
<div><strong>Lernziel:</strong> {!! \App\Domain\Catalog\FormattedText::display($version->learning_goal) !!}</div>
<div class="rich-lists"><strong>Lernziel:</strong> {!! \App\Domain\Catalog\FormattedText::display($version->learning_goal) !!}</div>
@endif
<ol class="course">
@foreach ($nodes as $node)