aboutsummaryrefslogtreecommitdiffhomepage
path: root/css/general.css
diff options
context:
space:
mode:
Diffstat (limited to 'css/general.css')
-rw-r--r--css/general.css10
1 files changed, 10 insertions, 0 deletions
diff --git a/css/general.css b/css/general.css
index 7670b08..0862b51 100644
--- a/css/general.css
+++ b/css/general.css
@@ -190,6 +190,16 @@ kbd {
vertical-align: middle;
}
+sup {
+ /* Set the line-height for superscript and footnote references so that there
+ isn't an awkward space appearing above lines that contain the footnote.
+
+ See https://github.com/rust-lang/mdBook/pull/2443#discussion_r1813773583
+ for an explanation.
+ */
+ line-height: 0;
+}
+
:not(.footnote-definition) + .footnote-definition,
.footnote-definition + :not(.footnote-definition) {
margin-block-start: 2em;