Permalink
Browse files

Fix bug in sass prefixer

  • Loading branch information...
1 parent 09e16db commit c46fa7fbe34f7f477dbe983a35bfc82cdbf6f06e Phil LaPier committed Apr 10, 2013
Showing with 20 additions and 11 deletions.
  1. +20 −11 app/assets/stylesheets/addons/_prefixer.scss
@@ -9,21 +9,30 @@ $prefix-for-spec: true !default; // required for keyframe mixin
@mixin prefixer ($property, $value, $prefixes) {
@each $prefix in $prefixes {
-
- @if $prefix == webkit and $prefix-for-webkit == true {
- -webkit-#{$property}: $value;
+ @if $prefix == webkit {
+ @if $prefix-for-webkit {
+ -webkit-#{$property}: $value;
+ }
}
- @else if $prefix == moz and $prefix-for-mozilla == true {
- -moz-#{$property}: $value;
+ @else if $prefix == moz {
+ @if $prefix-for-mozilla {
+ -moz-#{$property}: $value;
+ }
}
- @else if $prefix == ms and $prefix-for-microsoft == true {
- -ms-#{$property}: $value;
+ @else if $prefix == ms {
+ @if $prefix-for-microsoft {
+ -ms-#{$property}: $value;
+ }
}
- @else if $prefix == o and $prefix-for-opera == true {
- -o-#{$property}: $value;
+ @else if $prefix == o {
+ @if $prefix-for-opera {
+ -o-#{$property}: $value;
+ }
}
- @else if $prefix == spec and $prefix-for-spec == true {
- #{$property}: $value;
+ @else if $prefix == spec {
+ @if $prefix-for-spec {
+ #{$property}: $value;
+ }
}
@else {
@warn "Unrecognized prefix: #{$prefix}";

0 comments on commit c46fa7f

Please sign in to comment.