Skip to content

Instantly share code, notes, and snippets.

@vpugh
Created October 5, 2015 14:50
Show Gist options
  • Select an option

  • Save vpugh/d0e9343b73cd40268449 to your computer and use it in GitHub Desktop.

Select an option

Save vpugh/d0e9343b73cd40268449 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// Sass (v3.4.14)
// Compass (v1.0.3)
// ----
@mixin prefix($property, $value, $prefixes) {
@each $prefix in $prefixes {
#{$prefix}-#{$property}:$value;
}
#{$property}:$value;
}
@mixin border-radius($radius, $prefixes: -moz -webkit -o) {
@include prefix(border-radius,$radius,$prefixes);
}
@mixin transform($transformation, $prefixes: -moz -web -ms -o){
@include prefix(transform, $transformation,$prefixes);
}
div {
@include border-radius(5px);
@include transform(scale(1));
}
div {
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
-o-border-radius: 5px;
border-radius: 5px;
-moz-transform: scale(1);
-web-transform: scale(1);
-ms-transform: scale(1);
-o-transform: scale(1);
transform: scale(1);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment