Skip to content

Commit fa2cc37

Browse files
committed
Reduce top margin when headers immediately follow other headers with no regular text in between
1 parent d5c6aed commit fa2cc37

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

assets/css/index.css

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,25 @@ section.prose {
101101
@apply mt-16 scroll-mt-6;
102102
}
103103

104+
/* Reduce top margin when headers immediately follow other headers */
105+
.prose h1[id] + h2[id],
106+
.prose h1[id] + h3[id],
107+
.prose h1[id] + h4[id],
108+
.prose h1[id] + h5[id],
109+
.prose h1[id] + h6[id],
110+
.prose h2[id] + h3[id],
111+
.prose h2[id] + h4[id],
112+
.prose h2[id] + h5[id],
113+
.prose h2[id] + h6[id],
114+
.prose h3[id] + h4[id],
115+
.prose h3[id] + h5[id],
116+
.prose h3[id] + h6[id],
117+
.prose h4[id] + h5[id],
118+
.prose h4[id] + h6[id],
119+
.prose h5[id] + h6[id] {
120+
@apply mt-6;
121+
}
122+
104123
.prose p:empty,
105124
.prose li:empty {
106125
@apply hidden;

0 commit comments

Comments
 (0)