Skip to content

Commit

Permalink
Style: Sass if function is ternary. Fix #202
Browse files Browse the repository at this point in the history
  • Loading branch information
aarranz committed Jun 13, 2016
1 parent 93db6a3 commit b4f89cd
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@
/// @param {Number} $depth - depth level (between 1 and 5)
@mixin z-depth($depth, $important: false, $color: black) {
@if $depth < 1 {
box-shadow: none if($important, !important);
box-shadow: none if($important, !important, null);
} @else if $depth > 5 {
@warn "Invalid $depth `#{$depth}`.";
} @else {
box-shadow: bottom-shadow($depth, $color: $color), top-shadow($depth, $color) if($important, !important);
box-shadow: bottom-shadow($depth, $color: $color), top-shadow($depth, $color) if($important, !important, null);
}
}

0 comments on commit b4f89cd

Please sign in to comment.