Skip to content

Instantly share code, notes, and snippets.

@louisfisch
Last active February 18, 2016 10:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save louisfisch/bdfeb92169fa504d453e to your computer and use it in GitHub Desktop.
Save louisfisch/bdfeb92169fa504d453e to your computer and use it in GitHub Desktop.
$VENDORS: webkit, moz, ms, o;
@mixin vendor-prefix($property, $values...) {
@each $vendor in $VENDORS {
-#{$vendor}-#{$property}: $values;
}
#{$property}: $values;
}
@mixin vendor-function($property, $func, $args...) {
@each $vendor in $VENDORS {
#{$property}: -#{$vendor}-#{$func}unquote('(')#{$args}unquote(')');
}
#{$property}: #{$func}unquote('(')#{$args}unquote(')');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment