Skip to content

Commit

Permalink
fix(links): use minimal revert approach
Browse files Browse the repository at this point in the history
  • Loading branch information
caugner committed Nov 2, 2023
1 parent 04e59e0 commit 13db232
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 1 addition & 3 deletions client/src/app.scss
Original file line number Diff line number Diff line change
Expand Up @@ -201,9 +201,7 @@ pre {
}

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

&.external:after {
background-color: var(--icon-primary);
Expand Down
10 changes: 6 additions & 4 deletions client/src/document/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
h6 {
a:link,
a:visited {
color: inherit !important;
color: var(--text-primary);
text-decoration: none;
}

Expand Down Expand Up @@ -62,10 +62,12 @@
}

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

&:link {
color: var(--text-link);
&:visited:not([href^="#"]) {
// Distinguish visited links (excl. anchor links).
color: revert !important;
}

&:active {
Expand Down Expand Up @@ -154,7 +156,7 @@
margin-top: 2rem;

a[href^="#"] {
color: inherit !important;
color: inherit;
position: relative;
text-decoration: none;

Expand Down

0 comments on commit 13db232

Please sign in to comment.