From 16be89fafdaec2a617f801cb42537e9bb411162b Mon Sep 17 00:00:00 2001 From: Michael Rose Date: Wed, 5 Sep 2018 15:16:31 -0400 Subject: [PATCH] Place `:hover` declarations after `:visited` to fix hover animation Fixes #1820 --- _sass/minimal-mistakes/_base.scss | 11 +++++------ _sass/minimal-mistakes/_buttons.scss | 8 ++++---- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/_sass/minimal-mistakes/_base.scss b/_sass/minimal-mistakes/_base.scss index 82d5e63d85f8..ae032aeb4efa 100644 --- a/_sass/minimal-mistakes/_base.scss +++ b/_sass/minimal-mistakes/_base.scss @@ -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 */ diff --git a/_sass/minimal-mistakes/_buttons.scss b/_sass/minimal-mistakes/_buttons.scss index 6027eac73d78..e4394a193eb5 100644 --- a/_sass/minimal-mistakes/_buttons.scss +++ b/_sass/minimal-mistakes/_buttons.scss @@ -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%)); + } } }