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 authored and marehr committed Aug 24, 2022
1 parent e5f7e91 commit 5cd717f
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 @@ -116,15 +116,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;
}
}

/* code */
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 5cd717f

Please sign in to comment.