0
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-02-26 23:54:23 +01:00
Bootstrap/scss/mixins/_box-shadow.scss
Julien Déramond 035f143a48
All checks were successful
BrowserStack / browserstack (push) Has been skipped
More modifications
2024-07-31 08:34:35 +02:00

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;
}
}
}