~xdavidwu/xdavidwu.link

078d11d51fae6a82489e46d480d879ca11b0d7f6 — Michael Rose 6 years ago b121d05
Place `:hover` declarations after `:visited` to fix hover animation

Fixes #1820
2 files changed, 9 insertions(+), 10 deletions(-)

M _sass/minimal-mistakes/_base.scss
M _sass/minimal-mistakes/_buttons.scss
M _sass/minimal-mistakes/_base.scss => _sass/minimal-mistakes/_base.scss +5 -6
@@ 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 */

M _sass/minimal-mistakes/_buttons.scss => _sass/minimal-mistakes/_buttons.scss +4 -4
@@ 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%));
      }
    }
  }