Commit 76c587c
committed
fix: add margin-block-start to headings for proper section separation
Headings had margin-block-end (connecting to content below) but no
margin-block-start (separating from content above). This caused h3
elements like "Status variants" on the design system page to sit
flush against the preceding section.
Add margin-block-start: 1.5em to h2-h4 — space scales proportionally
with heading size for natural typographic rhythm. h1 is exempted
(typically the first element on a page). Add :first-child rule to
prevent leading margin when a heading opens its container.1 parent 6e03ba2 commit 76c587c
1 file changed
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | | - | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
83 | 84 | | |
84 | 85 | | |
85 | 86 | | |
86 | | - | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
87 | 91 | | |
88 | 92 | | |
89 | 93 | | |
| |||
0 commit comments