mirror of
https://github.com/twbs/bootstrap.git
synced 2025-02-23 20:54:22 +01:00
22 lines
463 B
SCSS
22 lines
463 B
SCSS
@use "sass:list";
|
|
@use "../variables";
|
|
|
|
@mixin box-shadow($shadow...) {
|
|
@if variables.$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;
|
|
}
|
|
}
|
|
}
|