Skip to content

Commit

Permalink
Sup/Sub and Table alignment fixes
Browse files Browse the repository at this point in the history
Fixes for #225 and #224
  • Loading branch information
Woedenaz committed Dec 20, 2023
1 parent 69f45ed commit e794782
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/css/parts/elements.css
Original file line number Diff line number Diff line change
Expand Up @@ -1026,7 +1026,7 @@ div.heritage-rating-module {
color: rgb(var(--tables-body-txt));

&,
& * {
& td {
--min-font-size: 0.8125rem;

vertical-align: middle;
Expand Down
11 changes: 9 additions & 2 deletions src/css/parts/structure.css
Original file line number Diff line number Diff line change
Expand Up @@ -1131,14 +1131,21 @@ sup {
#main-content & {
position: relative;
font-size: 0.75em;
top: -0.5em;
}
}

sup {
&,
#main-content & {
top: -0.125em;
vertical-align: super;
}
}

sub {
&,
#main-content & {
bottom: -0.25em;
top: 0.125em;
vertical-align: sub;
}
}
Expand Down

0 comments on commit e794782

Please sign in to comment.