Skip to content

Instantly share code, notes, and snippets.

@beholdr
Created October 18, 2012 11:01
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save beholdr/3911033 to your computer and use it in GitHub Desktop.
Save beholdr/3911033 to your computer and use it in GitHub Desktop.
SASS prefixer
@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-",""));
}
@beholdr
Copy link
Author

beholdr commented Oct 18, 2012

Prefixer from this article with prefix defaults.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment