Skip to content

Commit

Permalink
feat(links): distinguish visited links (v2) (#9931)
Browse files Browse the repository at this point in the history
  • Loading branch information
caugner authored Nov 6, 2023
1 parent 2c94a69 commit 76b9e7a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion client/src/document/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,13 @@
color: var(--text-link);
width: fit-content;

&:active {
&:visited:not([href^="#"]) {
// Distinguish visited links (excl. anchor links).
color: revert;
}

&:active,
&:active:visited {
background-color: var(--text-link);
color: #fff;

Expand Down

0 comments on commit 76b9e7a

Please sign in to comment.