Skip to content

Instantly share code, notes, and snippets.

@rgomezcasas
Last active December 17, 2015 12:19
Show Gist options
  • Save rgomezcasas/5609360 to your computer and use it in GitHub Desktop.
Save rgomezcasas/5609360 to your computer and use it in GitHub Desktop.
Sass mixins
@mixin prefixr($que, $arguments) {
#{$que}: $arguments;
-webkit-#{$que}: $arguments;
-ms-#{$que}: $arguments;
-moz-#{$que}: $arguments;
-o-#{$que}: $arguments;
}
@mixin transition($time) {
@include prefixr(transition, all $time linear);
}
@mixin box-sizing($com) {
&, &:before, &:after {
@include prefixr(box-sizing, $com);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment