Merge pull request #2465 from ehuss/footnote-line-height
Set line-height of superscripts to 0
This commit is contained in:
commit
86ff2e1e6b
1 changed files with 10 additions and 0 deletions
|
|
@ -190,6 +190,16 @@ kbd {
|
||||||
vertical-align: middle;
|
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,
|
:not(.footnote-definition) + .footnote-definition,
|
||||||
.footnote-definition + :not(.footnote-definition) {
|
.footnote-definition + :not(.footnote-definition) {
|
||||||
margin-block-start: 2em;
|
margin-block-start: 2em;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue