Typography: Restyle <sup> so it doesn't mess with line spacing
Give <sup> elements a line height of 1 and set vertical-align to text-top instead of sup so it bumps up against the top of the line, rather than pushing above it. Use a computed text size, rather than a relative percentage too.
This commit is contained in:
parent
fa1c957b7c
commit
cbde0f7be2
1 changed files with 3 additions and 2 deletions
|
@ -82,10 +82,11 @@ p, pre {
|
||||||
}
|
}
|
||||||
|
|
||||||
sup {
|
sup {
|
||||||
font-size: 60%;
|
font-size: var(--text-xs);
|
||||||
|
line-height: 1;
|
||||||
|
vertical-align: text-top;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
.title {
|
.title {
|
||||||
font-size: var(--text-xxl);
|
font-size: var(--text-xxl);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue