Spaces:
Running
Running
Widen narrative rail from 248px to 320px
Browse filesAt 248px the body text in every section's rail was wrapping after
~36 chars per line, which broke phrases mid-clause and made the
takeaway feel cramped. 320px lands around 50-55 chars per line —
inside the comfortable 45-75 reading range — without eating
meaningfully into the demo column on a 1440px+ viewport. Bumped the
column gap from 32 → 40px to keep the rail visually distinct from
the demo card now that they sit at similar weights.
Co-authored-by: Cursor <cursoragent@cursor.com>
- assets/styles/layout.css +7 -4
assets/styles/layout.css
CHANGED
|
@@ -91,12 +91,15 @@ section:last-of-type { border-bottom: none; }
|
|
| 91 |
into a live margin note rather than a post-mortem.
|
| 92 |
|
| 93 |
Layout math: container.wide is 1080px max with 32px padding =>
|
| 94 |
-
|
|
|
|
|
|
|
|
|
|
| 95 |
collapse to single-column and unstick the rail. */
|
| 96 |
.section--two-col {
|
| 97 |
display: grid;
|
| 98 |
-
grid-template-columns:
|
| 99 |
-
column-gap:
|
| 100 |
align-items: start;
|
| 101 |
/* Land cleanly under the sticky header on anchor jumps (#folding). */
|
| 102 |
scroll-margin-top: 104px;
|
|
@@ -115,7 +118,7 @@ section:last-of-type { border-bottom: none; }
|
|
| 115 |
scrollbar-width: thin;
|
| 116 |
}
|
| 117 |
/* The 640px cap on .lede / .takeaway exists to keep line length
|
| 118 |
-
readable in the single-column layout. Inside a
|
| 119 |
is moot — drop it so the text fills the rail. */
|
| 120 |
.section--two-col .section-narrative .lede,
|
| 121 |
.section--two-col .section-narrative .takeaway {
|
|
|
|
| 91 |
into a live margin note rather than a post-mortem.
|
| 92 |
|
| 93 |
Layout math: container.wide is 1080px max with 32px padding =>
|
| 94 |
+
320px rail + 40px gap + demo claims the rest. The rail width was
|
| 95 |
+
bumped from 248 → 320px so the narrative breathes (~50-55 chars per
|
| 96 |
+
line of body text vs ~36 before) — at 248 every lede was wrapping
|
| 97 |
+
on awkward stop-words and the takeaway felt cramped. Below 900px we
|
| 98 |
collapse to single-column and unstick the rail. */
|
| 99 |
.section--two-col {
|
| 100 |
display: grid;
|
| 101 |
+
grid-template-columns: 320px 1fr;
|
| 102 |
+
column-gap: 40px;
|
| 103 |
align-items: start;
|
| 104 |
/* Land cleanly under the sticky header on anchor jumps (#folding). */
|
| 105 |
scroll-margin-top: 104px;
|
|
|
|
| 118 |
scrollbar-width: thin;
|
| 119 |
}
|
| 120 |
/* The 640px cap on .lede / .takeaway exists to keep line length
|
| 121 |
+
readable in the single-column layout. Inside a 320px rail that cap
|
| 122 |
is moot — drop it so the text fills the rail. */
|
| 123 |
.section--two-col .section-narrative .lede,
|
| 124 |
.section--two-col .section-narrative .takeaway {
|