Skip to content

Commit ddba36b

Browse files
authored
Merge pull request #2524 from WaffleLapkin/first-last-of-type-footnote
nicer style rules for margin around footnote defs
2 parents 35cf96a + 64cca13 commit ddba36b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/theme/css/general.css

+4-2
Original file line numberDiff line numberDiff line change
@@ -200,10 +200,12 @@ sup {
200200
line-height: 0;
201201
}
202202

203-
:not(.footnote-definition) + .footnote-definition,
204-
.footnote-definition + :not(.footnote-definition) {
203+
:not(.footnote-definition) + .footnote-definition {
205204
margin-block-start: 2em;
206205
}
206+
.footnote-definition:not(:has(+ .footnote-definition)) {
207+
margin-block-end: 2em;
208+
}
207209
.footnote-definition {
208210
font-size: 0.9em;
209211
margin: 0.5em 0;

0 commit comments

Comments
 (0)