Skip to content

Instantly share code, notes, and snippets.

@hadongsoo
Created January 20, 2017 12:39
Show Gist options
  • Save hadongsoo/86e44e729a28d1737e56b6495a6190b5 to your computer and use it in GitHub Desktop.
Save hadongsoo/86e44e729a28d1737e56b6495a6190b5 to your computer and use it in GitHub Desktop.
sass mixin collection
@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