Last active
August 29, 2015 14:10
-
-
Save scottlet/a22ec192f835cbdbbcad to your computer and use it in GitHub Desktop.
Bug in node-sass?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-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