Skip to content

Commit

Permalink
Place :hover declarations after :visited to fix hover animation
Browse files Browse the repository at this point in the history
  • Loading branch information
mmistakes committed Sep 5, 2018
1 parent 2796b00 commit 16be89f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
11 changes: 5 additions & 6 deletions _sass/minimal-mistakes/_base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -130,15 +130,14 @@ a {
@extend %tab-focus;
}

&:hover,
&:active {
color: $link-color-hover;
outline: 0;
}

&:visited {
color: $link-color-visited;
}

&:hover {
color: $link-color-hover;
outline: 0;
}
}

/* buttons */
Expand Down
8 changes: 4 additions & 4 deletions _sass/minimal-mistakes/_buttons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,13 @@
border: 1px solid #fff;
}

&:hover {
@include yiq-contrasted(mix(#000, $color, 20%));
}

&:visited {
@include yiq-contrasted($color);
}

&:hover {
@include yiq-contrasted(mix(#000, $color, 20%));
}
}
}

Expand Down

0 comments on commit 16be89f

Please sign in to comment.