Skip to content

Commit f6e731c

Browse files
Reduce top spacing between adjacent headings
1 parent 892a870 commit f6e731c

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

assets-src/styles/sass/30-base/_typography.scss

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,14 @@ h1, h2, h3, h4, h5, h6 {
2525
margin-block-start: 0;
2626
}
2727

28-
h2, h3, h4, h5, h6 {
29-
margin-block-start: 1em;
28+
:where(h2, h3, h4, h5, h6) {
29+
margin-block-start: 2em;
3030
}
3131

32+
:where(h2, h3, h4, h5, h6) + :where(h3, h4, h5, h6) {
33+
margin-block-start: 1em;
34+
}
35+
3236
:where(h1, .h1 .venus) {
3337
font-size: var(--w3c-text-5);
3438
}

0 commit comments

Comments
 (0)