No effect either if variable is falsy

This commit is contained in:
PhilippeVay 2016-12-15 21:12:58 +01:00
parent 94c20e2048
commit d489bd2c86
2 changed files with 2 additions and 2 deletions

View file

@ -26,7 +26,7 @@ $color5 : #6FA939 !default;
$base-color: $color1; $base-color: $color1;
$link-color: $color3; $link-color: $color3;
$base-background : $color2; $base-background : $color2;
$link-hover-color: $color4; // Make it equal to $link-color if you don't want $link-hover-color: $color4; // Make it equal to either $link-color or false if you don't want
// any effect on links when focused/hovered // any effect on links when focused/hovered
$brand-primary: $color5; $brand-primary: $color5;

View file

@ -32,7 +32,7 @@ a {
// No styling on focus/hover if there's no effect. Avoids to then have to // No styling on focus/hover if there's no effect. Avoids to then have to
// override it countless times. See Issue #232 // override it countless times. See Issue #232
@if $link-hover-color != $link-color { @if ($link-hover-color != $link-color and $link-hover-color != false) {
&:focus, &:focus,
&:hover, &:hover,
&:active { &:active {