fix: default pages keep the reading measure for plain text blocks

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Alex Dunmow 2026-11-22 14:45:34 +08:00
parent 3f7026b01f
commit 53c084b474
2 changed files with 37 additions and 0 deletions

View File

@ -0,0 +1,21 @@
# Default pages keep the reading measure for plain text blocks
Decided 2026-11-22 for editorial 0.5.8, from the theme regression check before the website factory's production theme publish (orchestrator WO-090).
## Context
ADR 0004 widened the default page template to a 76rem column and took the article prose styles off it, so compiled factory sections read wider. Sites built before the factory, including this theme's own demo About page, put heading, rich-text, quote and image blocks straight onto default pages. On 0.5.7 those pages lost their reading measure and paragraph spacing: the three About paragraphs ran together across the full 76rem width at 1280 pixels, and ran together at 390 pixels (orchestrator `docs/works/evidence/WO-090/theme-regression/`). The CMS update checker moves every existing editorial site to the newest release within six hours, so this would reach every such site without an admin action.
## Decision
- On the default page column, the block wrapper of a heading, rich-text, text, quote, divider or image block keeps the 64ch article measure, centred. The measure sits on the wrapper so it counts characters in body text.
- Rich-text and text blocks there keep the article paragraph rhythm: 1.7 line height, a 1em gap after each paragraph and the 1.5em indent on continuing paragraphs.
- Section blocks (hero, rich-section, team, cards, contact and the rest) keep the 76rem column from ADR 0004. The website factory compiles only section blocks, so compiled sites render as on 0.5.7.
## Consequences
- editorial 0.5.8 is published to the dev registry only. The orchestrator's `internal/factory/themes.yaml` still pins 0.5.7; the coordinator moves the pin and reruns the tested pairs.
- On the WO-090 dev instance the home, contact, blog index and article pages render the same as 0.5.7, and the About page matches 0.5.1 apart from the short rule above the centred quote.
- No schema field changes.
Keywords: editorial, default template, editorial-column--page, reading measure, editorial-measure, rich-text, text, heading, quote, paragraph spacing, text-indent, prose-editorial, existing sites, update checker, regression, WO-090

View File

@ -151,6 +151,22 @@ css:
.editorial-column--page { .editorial-column--page {
max-width: 76rem; max-width: 76rem;
} }
/* Plain reading blocks on a default page keep the article measure and paragraph rhythm; sections use the wide column.
* The measure sits on the block wrapper so 64ch is counted in body text, not in the heading's own size. */
.editorial-column--page [data-block-id]:has(> [data-block-override="editorial:heading"], > [data-block-override="editorial:rich-text"], > [data-block-override="editorial:text"], > [data-block-override="editorial:quote"], > [data-block-override="editorial:divider"], > [data-block-override="editorial:image"]) {
width: 100%;
max-width: var(--editorial-measure);
margin-left: auto;
margin-right: auto;
}
.editorial-column--page [data-block-override="editorial:rich-text"],
.editorial-column--page [data-block-override="editorial:text"] {
line-height: 1.7;
}
.editorial-column--page [data-block-override="editorial:rich-text"] p,
.editorial-column--page [data-block-override="editorial:text"] p { margin: 0 0 1em 0; }
.editorial-column--page [data-block-override="editorial:rich-text"] p + p,
.editorial-column--page [data-block-override="editorial:text"] p + p { text-indent: 1.5em; }
.editorial-article-grid { .editorial-article-grid {
display: grid; display: grid;
grid-template-columns: 1fr; grid-template-columns: 1fr;