Prevent super/subscript from affecting line height
This keeps line height static and brings in the vertical position of super/subscript slightly to prevent overlap with multiple lines.
This commit is contained in:
parent
1e6ebdbb52
commit
c816f14596
|
@ -153,3 +153,13 @@ hr:after {
|
|||
color: var(--bright-bg);
|
||||
}
|
||||
|
||||
/* Prevent super/sub from affecting line height */
|
||||
sup, sub {
|
||||
vertical-align: baseline;
|
||||
position: relative;
|
||||
top: -0.25rem;
|
||||
font-size: unset;
|
||||
}
|
||||
sub {
|
||||
top: 0.25rem;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue