Skip to content

Commit f624e4e

Browse files
committed
Final fix for heading margin
1 parent dd839e0 commit f624e4e

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

web/src/styles/custom.css

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,10 @@ td {
221221
background-color: var(--sl-color-bg-inline-code);
222222
}
223223

224-
.sl-heading-wrapper {
225-
display: inline-block;
226-
margin-top: 15px;
224+
.sl-markdown-content :not(h1, h2, h3, h4, h5, h6, .sl-heading-wrapper) + :is(.sl-heading-wrapper) {
225+
margin-top: 1.5em;
227226
}
227+
228+
.sl-markdown-content :not(a, strong, em, del, span, input, code, br) + :not(a, strong, em, del, span, input, code, br, :where(.not-content *)) {
229+
margin-top: 1em;
230+
}

0 commit comments

Comments
 (0)