Created
January 20, 2017 12:39
-
-
Save hadongsoo/86e44e729a28d1737e56b6495a6190b5 to your computer and use it in GitHub Desktop.
sass mixin collection
This file contains 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
@mixin css3($property, $value) { | |
@each $prefix in -webkit-, -moz-, -ms-, -o-, '' { | |
#{$prefix}#{$property}: $value; | |
} | |
} | |
.border_radius { | |
@include css3(transition, 0.5s); | |
} | |
@mixin opacity($opacity) { | |
opacity: $opacity; | |
$opacityIE: $opacity * 100; | |
filter: alpha(opacity=$opacityIE); | |
} | |
.box { | |
@include opacity(0.5); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment