Skip to content

Commit 192c22a

Browse files
committed
Place :hover declarations after :visited to fix hover animation
Fixes #1820
1 parent c0725e9 commit 192c22a

File tree

2 files changed

+9
-10
lines changed

2 files changed

+9
-10
lines changed

_sass/minimal-mistakes/_base.scss

+5-6
Original file line numberDiff line numberDiff line change
@@ -130,15 +130,14 @@ a {
130130
@extend %tab-focus;
131131
}
132132

133-
&:hover,
134-
&:active {
135-
color: $link-color-hover;
136-
outline: 0;
137-
}
138-
139133
&:visited {
140134
color: $link-color-visited;
141135
}
136+
137+
&:hover {
138+
color: $link-color-hover;
139+
outline: 0;
140+
}
142141
}
143142

144143
/* buttons */

_sass/minimal-mistakes/_buttons.scss

+4-4
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,13 @@
5252
border: 1px solid #fff;
5353
}
5454

55-
&:hover {
56-
@include yiq-contrasted(mix(#000, $color, 20%));
57-
}
58-
5955
&:visited {
6056
@include yiq-contrasted($color);
6157
}
58+
59+
&:hover {
60+
@include yiq-contrasted(mix(#000, $color, 20%));
61+
}
6262
}
6363
}
6464

0 commit comments

Comments
 (0)