Skip to content

Commit

Permalink
- bug fix for box shadows mixing
Browse files Browse the repository at this point in the history
   - not you can use your own box-shadows comma separated list variable
   - and call the mixin spreading the variable
  • Loading branch information
Black Mirror committed Jul 2, 2018
1 parent e5e6141 commit 879960e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions scss/mixins/_box.scss
Original file line number Diff line number Diff line change
Expand Up @@ -597,10 +597,6 @@ $box-shadow-modes: array-concat((none), $css-default-modes);
/// @return {boolean} - true if is box-shadow values list
@function is-box-shadows($box-shadows) {
@if is-defined($box-shadows) {
@if list-separator($box-shadows) != comma {
$box-shadows: ($box-shadows,);
}

$is-box-shadows-valid: true;

@each $box-shadow in $box-shadows {
Expand Down Expand Up @@ -633,7 +629,11 @@ $box-shadow-modes: array-concat((none), $css-default-modes);
/// @access public
/// @param {shadow} $box-shadows... - the box shadows list
@mixin box-shadow($box-shadows...) {
@if is-box-shadows($box-shadows...) {
@if list-separator($box-shadows) != comma {
$box-shadows: ($box-shadows,);
}

@if is-box-shadows($box-shadows) {
@include prefixer(box-shadow, $box-shadows);
}
@else {
Expand Down

0 comments on commit 879960e

Please sign in to comment.