Sha256: f67a9234b951bfd7327306f994318385a291ed92b0652188c2d14a34283f9ed4

Contents?: true

Size: 1.31 KB

Versions: 47

Compression:

Stored size: 1.31 KB

Contents

//************************************************************************//
// Example: @include prefixer(border-radius, $radii, webkit ms spec);
//************************************************************************//
$prefix-for-webkit:    true !default;
$prefix-for-mozilla:   true !default;
$prefix-for-microsoft: true !default;
$prefix-for-opera:     true !default;
$prefix-for-spec:      true !default; // required for keyframe mixin

@mixin prefixer ($property, $value, $prefixes) {
  @each $prefix in $prefixes {
    @if $prefix == webkit {
      @if $prefix-for-webkit {
        -webkit-#{$property}: $value;
      }
    }
    @else if $prefix == moz {
      @if $prefix-for-mozilla {
        -moz-#{$property}: $value;
      }
    }
    @else if $prefix == ms {
      @if $prefix-for-microsoft {
        -ms-#{$property}: $value;
      }
    }
    @else if $prefix == o {
      @if $prefix-for-opera {
        -o-#{$property}: $value;
      }
    }
    @else if $prefix == spec {
      @if $prefix-for-spec {
        #{$property}: $value;
      }
    }
    @else  {
      @warn "Unrecognized prefix: #{$prefix}";
    }
  }
}

@mixin disable-prefix-for-all() {
  $prefix-for-webkit:    false;
  $prefix-for-mozilla:   false;
  $prefix-for-microsoft: false;
  $prefix-for-opera:     false;
  $prefix-for-spec:      false;
}

Version data entries

47 entries across 47 versions & 9 rubygems

Version Path
daiblogs-0.2.1 _sass/bourbon/addons/_prefixer.scss
daiblogs-0.2.0 _sass/bourbon/addons/_prefixer.scss
daiblogs-0.1.5 _sass/bourbon/addons/_prefixer.scss
daiblogs-0.1.4 _sass/bourbon/addons/_prefixer.scss
daiblogs-0.1.2 assets/_sass/bourbon/addons/_prefixer.scss
daiblogs-0.1.1 assets/_sass/bourbon/addons/_prefixer.scss
daiblogs-0.1.0 assets/_sass/bourbon/addons/_prefixer.scss
bookends-2.0.0 fixtures/dummy-jekyll/_sass/mixins/_prefixer.scss
moovui-0.1.4 app/assets/stylesheets/bourbon/addons/_prefixer.scss
stump-cli-0.1.3 lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/addons/_prefixer.scss
stump-cli-0.1.2 lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/addons/_prefixer.scss
moovui-0.1.3 app/assets/stylesheets/bourbon/addons/_prefixer.scss
moovui-0.1.2 app/assets/stylesheets/bourbon/addons/_prefixer.scss
moovui-0.1.1 app/assets/stylesheets/bourbon/addons/_prefixer.scss
moovui-0.0.2 bourbon/addons/_prefixer.scss
moovui-0.0.1 bourbon/addons/_prefixer.scss
stump-cli-0.1.1 lib/wp/wp-content/themes/stump/assets/vendor/manhattan/bourbon/addons/_prefixer.scss
blogelator-0.2.5 vendor/assets/stylesheets/blogelator/bourbon/addons/_prefixer.scss
blocky-0.0.11 vendor/assets/stylesheets/blocky/bourbon/addons/_prefixer.scss
blogelator-0.2.4 vendor/assets/stylesheets/blogelator/bourbon/addons/_prefixer.scss