_box-shadow.scss 398 B

123456789101112131415161718
  1. @mixin box-shadow($shadow...) {
  2. @if $enable-shadows {
  3. $result: ();
  4. @each $value in $shadow {
  5. @if $value != null {
  6. $result: append($result, $value, "comma");
  7. }
  8. @if $value == none and length($shadow) > 1 {
  9. @warn "The keyword 'none' must be used as a single argument.";
  10. }
  11. }
  12. @if (length($result) > 0) {
  13. box-shadow: $result;
  14. }
  15. }
  16. }