Skip to content

Commit d6cfc20

Browse files
reduce specificity on some links
1 parent c3eee96 commit d6cfc20

File tree

15 files changed

+66
-79
lines changed

15 files changed

+66
-79
lines changed

media/css/firefox/whatsnew/whatsnew-nightly.scss

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,11 @@ body {
5050
a:link,
5151
a:visited {
5252
color: $color-ink-80;
53+
}
5354

54-
&:hover,
55-
&:focus {
56-
color: inherit;
57-
}
55+
a:hover,
56+
a:focus {
57+
color: inherit;
5858
}
5959

6060
abbr {

media/css/foundation/annual-report-2019-2020.scss

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -358,15 +358,15 @@
358358
a:link,
359359
a:visited {
360360
color: $color-black;
361+
}
361362

362-
&:hover,
363-
&:focus,
364-
&:active {
365-
color: $link-color-hover;
363+
a:hover,
364+
a:focus,
365+
a:active {
366+
color: $link-color-hover;
366367

367-
@supports (--css: variables) {
368-
color: var(--link-color-hover);
369-
}
368+
@supports (--css: variables) {
369+
color: var(--link-color-hover);
370370
}
371371
}
372372

media/css/foundation/annual-report-2021.scss

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -171,15 +171,15 @@ main {
171171
a:link,
172172
a:visited {
173173
color: $color-black;
174+
}
174175

175-
&:hover,
176-
&:focus,
177-
&:active {
178-
color: $link-color-hover;
176+
a:hover,
177+
a:focus,
178+
a:active {
179+
color: $link-color-hover;
179180

180-
@supports (--css: variables) {
181-
color: var(--link-color-hover);
182-
}
181+
@supports (--css: variables) {
182+
color: var(--link-color-hover);
183183
}
184184
}
185185

media/css/foundation/m24/index/article-gallery.scss

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,7 @@
8989

9090
&:hover,
9191
&:focus,
92-
&:active,
93-
&:visited:hover {
92+
&:active {
9493
color: inherit;
9594
text-decoration: underline;
9695
}

media/css/m24/base.scss

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,11 @@ strong {
3131
}
3232

3333
a:link,
34-
a:visited {
34+
a:visited,
35+
a:hover,
36+
a:focus,
37+
a:active {
3538
color: $m24-color-black;
36-
37-
&:hover,
38-
&:focus,
39-
&:active {
40-
color: $m24-color-black;
41-
}
4239
}
4340

4441
*:focus,

media/css/m24/flag.scss

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -109,13 +109,6 @@
109109
}
110110
}
111111

112-
.m24-c-cta {
113-
&:hover,
114-
&:visited:hover {
115-
color: $m24-color-black;
116-
}
117-
}
118-
119112
@media #{$mq-lg} {
120113
.m24-c-flag {
121114
@include grid;

media/css/m24/gallery.scss

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,7 @@
9393

9494
&:hover,
9595
&:focus,
96-
&:active,
97-
&:visited:hover {
96+
&:active {
9897
color: inherit;
9998
text-decoration: underline;
10099
}

media/css/m24/springboard.scss

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,16 +33,16 @@ $springboard-thumb-width: 32px;
3333
padding: $spacer-md $container-padding;
3434
transition: background-color $fast $bezier;
3535

36-
&:link:hover,
37-
&:link:focus {
38-
background-color: $m24-color-light-gray;
36+
&:link,
37+
&:visited {
3938
text-decoration: none;
40-
cursor: pointer;
4139
}
4240

43-
&:link,
44-
&:link:visited {
41+
&:hover,
42+
&:focus {
43+
background-color: $m24-color-light-gray;
4544
text-decoration: none;
45+
cursor: pointer;
4646
}
4747
}
4848

media/css/mozorg/diversity/diversity.scss

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -221,15 +221,15 @@ $image-path: '/media/protocol/img';
221221
a:link,
222222
a:visited {
223223
color: $color-black;
224+
}
224225

225-
&:hover,
226-
&:focus,
227-
&:active {
228-
color: $link-color-hover;
226+
a:hover,
227+
a:focus,
228+
a:active {
229+
color: $link-color-hover;
229230

230-
@supports (--css: variables) {
231-
color: var(--link-color-hover);
232-
}
231+
@supports (--css: variables) {
232+
color: var(--link-color-hover);
233233
}
234234
}
235235

media/css/mozorg/mozilla-account-promo.scss

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -128,12 +128,12 @@ $promo-sm-mq: 400px;
128128
a:link,
129129
a:visited {
130130
color: $color-white;
131+
}
131132

132-
&:hover,
133-
&:focus,
134-
&:active {
135-
color: $color-white;
136-
}
133+
a:hover,
134+
a:focus,
135+
a:active {
136+
color: $color-white;
137137
}
138138

139139
.products-list {

0 commit comments

Comments
 (0)