Skip to content

Commit 0a6ffe5

Browse files
Furthur reduce specificity on :visited
1 parent 18b2d3d commit 0a6ffe5

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

assets/sass/protocol/base/elements/_links.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ a {
1414
color: $link-color;
1515
text-decoration: underline;
1616

17-
&:visited {
17+
&:where(:visited) {
1818
color: $link-color-visited;
1919
}
2020

@@ -31,7 +31,7 @@ a {
3131
@supports (--css: variables) {
3232
color: var(--link-color);
3333

34-
&:visited {
34+
&:where(:visited) {
3535
color: var(--link-color-visited);
3636
}
3737

assets/sass/protocol/includes/mixins/_utils.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@
227227
a {
228228
color: themes.$link-color-inverse;
229229

230-
&:visited {
230+
&:where(:visited) {
231231
color: themes.$link-color-visited-inverse;
232232
}
233233

@@ -242,7 +242,7 @@
242242
a {
243243
color: var(--link-color-inverse);
244244

245-
&:visited {
245+
&:where(:visited) {
246246
color: var(--link-color-visited-inverse);
247247
}
248248

0 commit comments

Comments
 (0)