Prevent unnecessary css when $emphasized-link-hover-darken-percentage is 0 or 0%

This commit is contained in:
ysds 2018-12-19 16:19:16 +09:00 committed by Mark Otto
parent 20f49143fc
commit 27d691c64c
1 changed files with 5 additions and 3 deletions

View File

@ -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;
}
}
}
}