Skip to content

Commit

Permalink
Replace text-decoration with bottom-border in links with ruby text (
Browse files Browse the repository at this point in the history
#595)

* Replace text-decoration with bottom-border for links with ruby text

* Calculate style sizes based upon current font size

---------

Co-authored-by: stephenmk <stephenmk@users.noreply.github.com>
  • Loading branch information
stephenmk and stephenmk authored Feb 3, 2024
1 parent 97c5c74 commit 16423a1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ext/css/display.css
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,12 @@ a {
color: var(--link-color);
text-decoration: underline;
cursor: pointer;
text-underline-offset: calc(4em / var(--font-size-no-units));
text-decoration-thickness: calc(1em / var(--font-size-no-units));
}
a:has(rt) {
text-decoration: none;
border-bottom: solid calc(1em / var(--font-size-no-units)) var(--link-color);
}


Expand Down

0 comments on commit 16423a1

Please sign in to comment.