Skip to content

Commit 78f5e48

Browse files
authored
fix(css): one content axis per page + flatten runaway release-note nesting (#52)
Two mobile bugs, issues #50 and #51: 1. The .narrow reading column double-inset (its own 2.5rem on top of the container's) and centered itself while the hero stayed at the container's inline-start — 20px mismatch on phones, 83px at 912px, 191px at 1280px on every content page. Now the column anchors at the container's inline-start: hero, lede, cards, and prose share one axis at every width, LTR and RTL. 2. Changelog release bodies nest blockquote > details > ul > blockquote six-plus levels deep; each blockquote costs ~2.5em of inline padding, compounding until inner text escaped 360-390px viewports (up to 51px past the edge, mirrored in RTL). Nested list/blockquote indents now flatten with depth so runaway quoting flattens instead of running off-screen. Verified: all 45 pages × 360/390/768/912px — zero overflow, zero off-viewport elements, no squeezed card grids; EN/AR/FR changelog clean at phone widths; h1/lede/column aligned on all content pages.
1 parent 26656f2 commit 78f5e48

1 file changed

Lines changed: 34 additions & 2 deletions

File tree

src/styles/global.css

Lines changed: 34 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -309,9 +309,12 @@ svg {
309309
margin-inline: auto;
310310
}
311311

312+
/* The reading column shares the container's inline-start with the hero —
313+
one content axis per page at every width (no re-subtracting the gutter
314+
the container already provides, no floating centered column). */
312315
.narrow {
313-
width: min(var(--prose), 100% - 2.5rem);
314-
margin-inline: auto;
316+
width: min(var(--prose), 100%);
317+
margin-inline: 0;
315318
}
316319

317320
section {
@@ -1282,6 +1285,35 @@ section {
12821285
margin-block: 0.75em;
12831286
}
12841287

1288+
/* GitHub release bodies nest blockquote > details > ul > blockquote … six
1289+
levels deep. A blockquote costs ~2.5em of inline space (padding both
1290+
sides) and each list 1.5em, compounding until inner text escapes small
1291+
viewports. Flatten with depth — deeper levels indent less — so runaway
1292+
quoting flattens instead of running off-screen. */
1293+
.prose :is(ul, ol) :is(ul, ol) {
1294+
padding-inline-start: 1.1em;
1295+
}
1296+
1297+
.prose :is(ul, ol) :is(ul, ol) :is(ul, ol) {
1298+
padding-inline-start: 0.85em;
1299+
}
1300+
1301+
.prose :is(ul, ol, blockquote, details) blockquote {
1302+
padding-inline: 0.6em;
1303+
}
1304+
1305+
.prose :is(ul, ol, blockquote, details) :is(ul, ol, blockquote, details) blockquote {
1306+
padding-inline: 0.4em;
1307+
}
1308+
1309+
.prose
1310+
:is(ul, ol, blockquote, details)
1311+
:is(ul, ol, blockquote, details)
1312+
:is(ul, ol, blockquote, details)
1313+
blockquote {
1314+
padding-inline: 0.25em;
1315+
}
1316+
12851317
.prose li {
12861318
margin-bottom: 0.4em;
12871319
}

0 commit comments

Comments
 (0)