Skip to content

Commit

Permalink
Merge pull request #2524 from WaffleLapkin/first-last-of-type-footnote
Browse files Browse the repository at this point in the history
nicer style rules for margin around footnote defs
  • Loading branch information
ehuss authored Feb 17, 2025
2 parents 35cf96a + 64cca13 commit ddba36b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/theme/css/general.css
Original file line number Diff line number Diff line change
Expand Up @@ -200,10 +200,12 @@ sup {
line-height: 0;
}

:not(.footnote-definition) + .footnote-definition,
.footnote-definition + :not(.footnote-definition) {
:not(.footnote-definition) + .footnote-definition {
margin-block-start: 2em;
}
.footnote-definition:not(:has(+ .footnote-definition)) {
margin-block-end: 2em;
}
.footnote-definition {
font-size: 0.9em;
margin: 0.5em 0;
Expand Down

0 comments on commit ddba36b

Please sign in to comment.