fix(footer): scope lead-paragraph rule to <article> only
Deploy / verify (push) Successful in 46s
Deploy / deploy (push) Successful in 58s

Lead-paragraph rule matched footer MarkdownBlocks (copyright line)
and made it 1.25rem. Restrict to article descendants so footer +
sidebar Markdown stay at their natural size.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
Peter Meier
2026-05-05 01:12:05 +02:00
parent b7093b703a
commit 1f3fbe7fa7
+6 -5
View File
@@ -338,10 +338,11 @@ main ol:not(.not-prose) li {
border-radius: 2px;
}
/* Lead-Paragraph: erstes <p> in einem Top-Level MarkdownBlock größer + leichter
(Editorial). Bewusst nur via [data-block-type="markdown"] gescopt — sonst
würden auch Card-Beschreibungen mit `.markdown` getroffen. */
[data-block-type="markdown"] .markdown > p:first-child {
/* Lead-Paragraph: erstes <p> in einem Top-Level MarkdownBlock innerhalb
<article> größer + leichter (Editorial). Bewusst auf article gescopt
damit weder Cards (.markdown in Callouts) noch Footer-MarkdownBlocks
mit Copyright-Text getroffen werden. */
article [data-block-type="markdown"] .markdown > p:first-child {
font-size: 1.25rem;
line-height: 1.55;
font-weight: 300;
@@ -350,7 +351,7 @@ main ol:not(.not-prose) li {
}
@media (min-width: 768px) {
[data-block-type="markdown"] .markdown > p:first-child {
article [data-block-type="markdown"] .markdown > p:first-child {
font-size: 1.375rem;
}
}