Skip to content

Commit

Permalink
Add base styles for :visited links
Browse files Browse the repository at this point in the history
  • Loading branch information
alinekeller committed Nov 27, 2023
1 parent 6d92aef commit 1a29b34
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions assets/components/atoms/link/link.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
@charset 'utf-8';

// All links are underlined by default. Supported browsers will have the right color. https://caniuse.com/#feat=text-decoration
a {
a,
a:visited {
color: $black;
text-decoration: underline;
background-color: transparent;
text-decoration-color: $link-hover-color;
transition:
text-decoration-color 0.2s ease-in-out,
Expand Down Expand Up @@ -49,7 +53,8 @@ a {
a,
a:hover,
a:focus,
a:active {
a:active,
a:visited {
text-decoration-thickness: 0.08em;
text-decoration-thickness: min(0.08em, 0.1rem);
text-underline-offset: 0.14em;
Expand Down

0 comments on commit 1a29b34

Please sign in to comment.