2025-02-18 09:50:10 -08:00
|
|
|
@use "../config" as *;
|
|
|
|
|
2017-03-03 11:34:10 -08:00
|
|
|
@mixin box-shadow($shadow...) {
|
|
|
|
@if $enable-shadows {
|
2019-01-07 01:52:39 +01:00
|
|
|
$result: ();
|
|
|
|
|
2020-08-05 03:51:19 +09:00
|
|
|
@each $value in $shadow {
|
|
|
|
@if $value != null {
|
|
|
|
$result: append($result, $value, "comma");
|
|
|
|
}
|
|
|
|
@if $value == none and length($shadow) > 1 {
|
|
|
|
@warn "The keyword 'none' must be used as a single argument.";
|
2019-01-07 01:52:39 +01:00
|
|
|
}
|
|
|
|
}
|
2020-08-05 03:51:19 +09:00
|
|
|
|
2019-01-07 01:52:39 +01:00
|
|
|
@if (length($result) > 0) {
|
|
|
|
box-shadow: $result;
|
|
|
|
}
|
2017-03-03 11:34:10 -08:00
|
|
|
}
|
|
|
|
}
|