Sha256: b162dc622a16788aa8a78737071cf44e07f421383e43de7205c3ec7c8b464888

Contents?: true

Size: 1.02 KB

Versions: 29

Compression:

Stored size: 1.02 KB

Contents

// Foundation for Sites by ZURB
// foundation.zurb.com
// Licensed under MIT Open Source

////
/// @group prototype-shadow
////

/// Responsive breakpoints for shadow utility.
/// @type Boolean
$prototype-shadow-breakpoints: $global-prototype-breakpoints !default;

/// Default value for `prototype-box-shadow`
/// @type Number
$prototype-box-shadow: 0 2px 5px 0 rgba(0,0,0,.16),
                       0 2px 10px 0 rgba(0,0,0,.12) !default;

/// Shadow Utility: Adds a light box shadow to an element by default.
/// @param {Number} $shadow [$prototype-box-shadow] Box Shadow of a component
@mixin shadow(
  $shadow: $prototype-box-shadow
) {
  box-shadow: $shadow;
}

@mixin foundation-prototype-shadow {
  .shadow {
    @include shadow;
  }

  @if ($prototype-shadow-breakpoints) {
    // Loop through Responsive Breakpoints
    @each $size in $breakpoint-classes {
      @include breakpoint($size) {
        @if $size != $-zf-zero-breakpoint {
          .#{$size}-shadow {
            @include shadow;
          }
        }
      }
    }
  }
}

Version data entries

29 entries across 29 versions & 4 rubygems

Version Path
jekyll-theme-foundation-0.2.5 _sass/scss/prototype/_shadow.scss
jekyll-theme-foundation-0.2.4 _sass/scss/prototype/_shadow.scss
jekyll-theme-foundation-0.2.3 _sass/scss/prototype/_shadow.scss
jekyll-theme-foundation-0.2.2 _sass/scss/prototype/_shadow.scss
jekyll-theme-foundation-0.2.1 _sass/scss/prototype/_shadow.scss
jekyll-theme-foundation-0.2.0 _sass/scss/prototype/_shadow.scss
jekyll-theme-foundation-0.1.0 _sass/scss/prototype/_shadow.scss
foundation-rails-6.4.1.2 vendor/assets/scss/prototype/_shadow.scss
foundation-rails-6.4.1.0 vendor/assets/scss/prototype/_shadow.scss