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
comfortable_media_surfer-3.1.0 app/assets/stylesheets/comfy/vendor/bootstrap/mixins/_box-shadow.scss
comfortable_media_surfer-3.0.0 app/assets/stylesheets/comfy/vendor/bootstrap/mixins/_box-shadow.scss
devops4lib-jekyll-theme-conference-0.0.1 _sass/bootstrap/mixins/_box-shadow.scss
jekyll-theme-conference-3.6.6 _sass/bootstrap/mixins/_box-shadow.scss
bootstrap-4.6.2.1 assets/stylesheets/bootstrap/mixins/_box-shadow.scss
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/bootstrap-4.6.2/assets/stylesheets/bootstrap/mixins/_box-shadow.scss
occams-1.1.0 app/assets/stylesheets/occams/vendor/bootstrap/mixins/_box-shadow.scss
optimacms-0.1.61 spec/dummy/node_modules/bootstrap/scss/mixins/_box-shadow.scss
jekyll-theme-conference-3.6.5 _sass/bootstrap/mixins/_box-shadow.scss
jekyll-theme-conference-3.6.4 _sass/bootstrap/mixins/_box-shadow.scss
inkstream-0.1.4 assets/scss/bootstrap/scss/mixins/_box-shadow.scss
inkstream-0.1.3 assets/scss/bootstrap/scss/mixins/_box-shadow.scss
inkstream-0.1.2 assets/scss/bootstrap/scss/mixins/_box-shadow.scss
inkstream-0.1.1 assets/scss/bootstrap/scss/mixins/_box-shadow.scss
occams-1.0.8 app/assets/stylesheets/occams/vendor/bootstrap/mixins/_box-shadow.scss
occams-1.0.7.3 app/assets/stylesheets/occams/vendor/bootstrap/mixins/_box-shadow.scss
occams-1.0.7.2 app/assets/stylesheets/occams/vendor/bootstrap/mixins/_box-shadow.scss
occams-1.0.7.1 app/assets/stylesheets/occams/vendor/bootstrap/mixins/_box-shadow.scss
occams-1.0.7 app/assets/stylesheets/occams/vendor/bootstrap/mixins/_box-shadow.scss
occams-1.0.6.1 app/assets/stylesheets/occams/vendor/bootstrap/mixins/_box-shadow.scss