public
Last active

SASS prefixer

  • Download Gist
gistfile1.sass
Sass
1 2 3 4 5 6 7 8 9 10
@mixin prefix($property, $value, $prefixes: ("-webkit-","-moz-","-o-","-ms-","")) {
@each $prefix in $prefixes {
#{$prefix}#{$property}: #{$value};
}
}
 
.block {
@include prefix("transition", ".5s");
@include prefix("border-radius", "5px", ("-webkit-","-moz-",""));
}

Prefixer from this article with prefix defaults.

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.