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:
mntn 2021-08-03 10:41:42 -04:00 committed by GitHub
parent 1e6ebdbb52
commit c816f14596
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 0 deletions

View File

@ -153,3 +153,13 @@ hr:after {
color: var(--bright-bg); 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;
}