diff --git a/src/theme/css/general.css b/src/theme/css/general.css index 0862b51673..49e726732b 100644 --- a/src/theme/css/general.css +++ b/src/theme/css/general.css @@ -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;