Skip to content

Commit

Permalink
feat(links): distinguish visited links (#9907)
Browse files Browse the repository at this point in the history
Only use --text-link color for unvisited links.
  • Loading branch information
caugner authored Oct 31, 2023
1 parent 925538e commit 8f84da3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 3 additions & 1 deletion client/src/app.scss
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,9 @@ pre {
}

a {
color: var(--text-link);
&:link {
color: var(--text-link);
}

&.external:after {
background-color: var(--icon-primary);
Expand Down
5 changes: 4 additions & 1 deletion client/src/document/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,12 @@
}

a:not(.button) {
color: var(--text-link);
width: fit-content;

&:link {
color: var(--text-link);
}

&:active {
background-color: var(--text-link);
color: #fff;
Expand Down

0 comments on commit 8f84da3

Please sign in to comment.