2024-07-29 22:04:11 -07:00
|
|
|
@use "sass:list";
|
|
|
|
@use "../variables";
|
|
|
|
|
2017-03-03 11:34:10 -08:00
|
|
|
@mixin box-shadow($shadow...) {
|
2024-07-29 22:04:11 -07:00
|
|
|
@if variables.$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 {
|
2024-07-29 22:04:11 -07:00
|
|
|
$result: list.append($result, $value, "comma");
|
2020-08-05 03:51:19 +09:00
|
|
|
}
|
2024-07-29 22:04:11 -07:00
|
|
|
@if $value == none and list.length($shadow) > 1 {
|
2020-08-05 03:51:19 +09:00
|
|
|
@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
|
|
|
|
2024-07-29 22:04:11 -07:00
|
|
|
@if (list.length($result) > 0) {
|
2019-01-07 01:52:39 +01:00
|
|
|
box-shadow: $result;
|
|
|
|
}
|
2017-03-03 11:34:10 -08:00
|
|
|
}
|
|
|
|
}
|