Sha256: c3fe0d3900c13e57fb650822497b65030a385c4c08380510f11af1326604498d

Contents?: true

Size: 532 Bytes

Versions: 327

Compression:

Stored size: 532 Bytes

Contents

@mixin box-shadow($shadow...) {
  @if $enable-shadows {
    $result: ();

    @if (length($shadow) == 1) {
      // We can pass `@include box-shadow(none);`
      $result: $shadow;
    } @else {
      // Filter to avoid invalid properties for example `box-shadow: none, 1px 1px black;`
      @for $i from 1 through length($shadow) {
        @if nth($shadow, $i) != "none" {
          $result: append($result, nth($shadow, $i), "comma");
        }
      }
    }
    @if (length($result) > 0) {
      box-shadow: $result;
    }
  }
}

Version data entries

327 entries across 327 versions & 35 rubygems

Version Path
jekyll-theme-portfolio-1.3.0 _sass/bootstrap/mixins/_box-shadow.scss
jekyll-theme-portfolio-1.2.0 _sass/bootstrap/mixins/_box-shadow.scss
jekyll-theme-portfolio-1.1.0 _sass/bootstrap/mixins/_box-shadow.scss
jekyll-theme-portfolio-1.0.0 _sass/bootstrap/mixins/_box-shadow.scss
lone-wolf-theme-1.0.3 _sass/bootstrap/scss/mixins/_box-shadow.scss
bootstrap-4.3.1 assets/stylesheets/bootstrap/mixins/_box-shadow.scss
bootstrap-4.3.0 assets/stylesheets/bootstrap/mixins/_box-shadow.scss