Upgrade to bootstrap 4.5
[roojs1] / scss / bootstrap / mixins / _box-shadow.scss
1 @mixin box-shadow($shadow...) {
2   @if $enable-shadows {
3     $result: ();
4
5     @if (length($shadow) == 1) {
6       // We can pass `@include box-shadow(none);`
7       $result: $shadow;
8     } @else {
9       // Filter to avoid invalid properties for example `box-shadow: none, 1px 1px black;`
10       @for $i from 1 through length($shadow) {
11         @if nth($shadow, $i) != "none" {
12           $result: append($result, nth($shadow, $i), "comma");
13         }
14       }
15     }
16     @if (length($result) > 0) {
17       box-shadow: $result;
18     }
19   }
20 }