0
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-02-23 20:54:22 +01:00
Bootstrap/scss/mixins/_box-shadow.scss
Mark Otto 7915584fa4 lol
2024-07-29 22:04:11 -07:00

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