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:
Eryn Wells 2024-07-25 11:08:29 -07:00
parent fa1c957b7c
commit cbde0f7be2

View file

@ -82,10 +82,11 @@ p, pre {
}
sup {
font-size: 60%;
font-size: var(--text-xs);
line-height: 1;
vertical-align: text-top;
}
.title {
font-size: var(--text-xxl);
}