Sha256: d1ea959a758196c5c274f1395354caeda5c9ef67a19b4e5f02cf728c4f4b7d33

Contents?: true

Size: 871 Bytes

Versions: 6

Compression:

Stored size: 871 Bytes

Contents

// ------------------------------------------------------------------- //
//  Browser prefixing
//
//  @include prefixer(border-radius, 5px, webkit ms spec);
// ------------------------------------------------------------------- //

$prefix-webkit:  true !default;
$prefix-mozilla: true !default;
$prefix-ms:      true !default;
$prefix-opera:   true !default;
$prefix-spec:    true !default;

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
kentucky-1.2.1 app/assets/stylesheets/kentucky/helpers/_prefixer.scss
kentucky-1.2.0 app/assets/stylesheets/kentucky/helpers/_prefixer.scss
kentucky-1.1.0 app/assets/stylesheets/kentucky/helpers/_prefixer.scss
kentucky-1.0.5 app/assets/stylesheets/kentucky/helpers/_prefixer.scss
kentucky-1.0.4 app/assets/stylesheets/kentucky/helpers/_prefixer.scss
kentucky-1.0.3 app/assets/stylesheets/kentucky/helpers/_prefixer.scss