UNPKG

398 BSCSSView Raw
1@mixin box-shadow($shadow...) {
2 @if $enable-shadows {
3 $result: ();
4
5 @each $value in $shadow {
6 @if $value != null {
7 $result: append($result, $value, "comma");
8 }
9 @if $value == none and length($shadow) > 1 {
10 @warn "The keyword 'none' must be used as a single argument.";
11 }
12 }
13
14 @if (length($result) > 0) {
15 box-shadow: $result;
16 }
17 }
18}