Allow box shadow to be turned off by @include box-shadow(none). Closes GH-102.

This commit is contained in:
Chris Eppstein 2010-04-27 00:44:27 -07:00
parent 1b0e4519e1
commit 909fb92ad3

View File

@ -26,5 +26,9 @@ $default-box-shadow-blur: 5px !default;
$voff: $default-box-shadow-v-offset,
$blur: $default-box-shadow-blur
) {
@include experimental(box-shadow, $color $hoff $voff $blur);
@if $color == none {
@include experimental(box-shadow, none);
} @else {
@include experimental(box-shadow, $color $hoff $voff $blur);
}
}