mirror of
https://github.com/twbs/bootstrap.git
synced 2025-02-26 23:54:23 +01:00
22 lines
464 B
SCSS
22 lines
464 B
SCSS
@use "sass:list";
|
|
@use "../setup/variables" as *;
|
|
|
|
@mixin box-shadow($shadow...) {
|
|
@if $enable-shadows {
|
|
$result: ();
|
|
|
|
@each $value in $shadow {
|
|
@if $value != null {
|
|
$result: list.append($result, $value, "comma");
|
|
}
|
|
@if $value == none and list.length($shadow) > 1 {
|
|
@warn "The keyword 'none' must be used as a single argument.";
|
|
}
|
|
}
|
|
|
|
@if (list.length($result) > 0) {
|
|
box-shadow: $result;
|
|
}
|
|
}
|
|
}
|