Skip to content

Commit

Permalink
Prevent unnecessary css when $emphasized-link-hover-darken-percentage…
Browse files Browse the repository at this point in the history
… is 0 or 0%
  • Loading branch information
ysds authored and mdo committed Dec 21, 2018
1 parent 20f4914 commit 27d691c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions scss/mixins/_text-emphasis.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@
#{$parent} {
color: $color !important;
}
a#{$parent} {
@include hover-focus {
color: darken($color, $emphasized-link-hover-darken-percentage) !important;
@if $emphasized-link-hover-darken-percentage != 0 {
a#{$parent} {
@include hover-focus {
color: darken($color, $emphasized-link-hover-darken-percentage) !important;
}
}
}
}

0 comments on commit 27d691c

Please sign in to comment.