Skip to content

Commit

Permalink
Merge pull request #155 from djpeacher/sup-sub-fix
Browse files Browse the repository at this point in the history
Preventing sup/sub from affecting line-height
  • Loading branch information
kevquirk committed Jun 22, 2023
2 parents 2b2ff13 + f216ff5 commit c788aa7
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions simple.css
Original file line number Diff line number Diff line change
Expand Up @@ -649,6 +649,18 @@ dialog::backdrop {
}
}

/* Superscript & Subscript */
/* Prevent scripts from affecting line-height. */
sup, sub {
vertical-align: baseline;
position: relative;
top: -0.4em;
}

sub {
top: 0.3em;
}

/* Classes for notices */
.notice {
background: var(--accent-bg);
Expand Down

0 comments on commit c788aa7

Please sign in to comment.