mirror of
https://github.com/rust-lang/mdBook
synced 2024-12-12 13:52:36 +00:00
Set line-height of superscripts to 0
This changes it so that superscript (and in particular footnote tags) do not bump the line spacing of previous lines.
This commit is contained in:
parent
5ec4f65ac3
commit
6ef7cc0ccb
1 changed files with 10 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue