Skip to content

Instantly share code, notes, and snippets.

@scottbert
Last active August 29, 2015 14:10
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 scottbert/a22ec192f835cbdbbcad to your computer and use it in GitHub Desktop.
Save scottbert/a22ec192f835cbdbbcad to your computer and use it in GitHub Desktop.
Bug in node-sass?
@function rep-prop($prefix, $value...) {
$rep:();
@each $item in $value {
@if(index($item, transform)) {
$rep: append($rep, #{$prefix}$item, comma);
} @else {
$rep: append($rep, $item);
}
}
@return $rep;
}
@mixin prefix($property, $value...) {
@each $prefix in -webkit-, -moz-, -ms-, ''{
#{$prefix}#{$property}: rep-prop($prefix, $value...);
}
}
@mixin transition($properties...) {
@include prefix(transition, $properties...);
}
@include transition(opacity 400ms ease-in-out, transform 400ms ease-in-out);
-webkit-transition: opacity 400ms ease-in-out, -webkit- transform 400ms ease-in-out;
-moz-transition: opacity 400ms ease-in-out, -moz- transform 400ms ease-in-out;
-ms-transition: opacity 400ms ease-in-out, -ms- transform 400ms ease-in-out;
transition: opacity 400ms ease-in-out, transform 400ms ease-in-out;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment