hswro_org/_sass/bootstrap/mixins/_box-shadow.scss

19 lines
398 B
SCSS
Raw Permalink Normal View History

2018-12-09 07:21:01 +00:00
@mixin box-shadow($shadow...) {
@if $enable-shadows {
2020-08-23 10:01:06 +00:00
$result: ();
2023-11-26 06:34:29 +00:00
@each $value in $shadow {
@if $value != null {
$result: append($result, $value, "comma");
}
@if $value == none and length($shadow) > 1 {
@warn "The keyword 'none' must be used as a single argument.";
2020-08-23 10:01:06 +00:00
}
}
2023-11-26 06:34:29 +00:00
2020-08-23 10:01:06 +00:00
@if (length($result) > 0) {
box-shadow: $result;
}
2018-12-09 07:21:01 +00:00
}
}