Skip to content

Commit 920b15e

Browse files
committed
Prose-body h2 + list styling → global.css (plugin pages get styled headings too)
Co-Authored-By: CRHQ <noreply@crhq.ai>
1 parent 40b8f3b commit 920b15e

2 files changed

Lines changed: 23 additions & 23 deletions

File tree

src/pages/use-cases/[slug].astro

Lines changed: 4 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -312,33 +312,14 @@ const graph = [
312312
display: none;
313313
}
314314

315-
/* Body section headings ("How it's set up" / "Why it's cool") — same treatment as
316-
SectionHeading's sub variant, so body-driven and template-driven sections match. */
317-
.prose-body h2 {
318-
font-family: var(--font-display);
319-
font-size: var(--text-xl);
320-
letter-spacing: -0.02em;
321-
color: var(--color-text);
322-
margin-block-start: 0.75rem;
323-
}
324-
325-
/* The "## Prompt" heading's content is hoisted into PromptBlock below, which carries its
326-
own labelled header — so the body heading would sit orphaned above nothing. Hide it. */
315+
/* .prose-body h2 + list styling moved to global.css (2026-08-22) so plugin detail pages
316+
get the same treatment. Page-specific rule kept here: the "## Prompt" heading's content
317+
is hoisted into PromptBlock below, which carries its own labelled header — so the body
318+
heading would sit orphaned above nothing. Hide it. */
327319
.prose-body--prompt-hoisted h2:has(+ pre) {
328320
display: none;
329321
}
330322

331-
/* The setup steps are an ordered list; the global reset strips markers, which turned
332-
"1. 2. 3." into an unnumbered wall. Restore proper list rendering inside the body. */
333-
.prose-body ol,
334-
.prose-body ul {
335-
list-style: revert;
336-
padding-inline-start: 1.5rem;
337-
display: flex;
338-
flex-direction: column;
339-
gap: 0.5rem;
340-
}
341-
342323
/* F13 — one column below lg (the documented stacked order, §4.3.5 region [8]), two from
343324
lg with the source-post rail beside the content. A6 already builds the page
344325
rails-capable so the slot exists; nothing sponsor-shaped is enabled (§12.6 stands).

src/styles/global.css

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,25 @@
130130
line-clamp: 3;
131131
overflow: hidden;
132132
}
133+
134+
/* Entry-body prose (plugin + use-case detail pages). Section headings match
135+
SectionHeading's sub variant; lists get their markers back from the reset. */
136+
.prose-body h2 {
137+
font-family: var(--font-display);
138+
font-size: var(--text-xl);
139+
letter-spacing: -0.02em;
140+
color: var(--color-text);
141+
margin-block-start: 0.75rem;
142+
}
143+
144+
.prose-body ol,
145+
.prose-body ul {
146+
list-style: revert;
147+
padding-inline-start: 1.5rem;
148+
display: flex;
149+
flex-direction: column;
150+
gap: 0.5rem;
151+
}
133152
}
134153

135154
/* §4.4 rule 6 — the one global reduced-motion rule. */

0 commit comments

Comments
 (0)