Merge pull request #2524 from WaffleLapkin/first-last-of-type-footnote

nicer style rules for margin around footnote defs
This commit is contained in:
Eric Huss 2025-02-17 18:12:15 +00:00 committed by GitHub
commit ddba36b24c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;