Skip to content

Instantly share code, notes, and snippets.

@hjortureh
Created October 23, 2012 15:30
Show Gist options
  • Save hjortureh/3939474 to your computer and use it in GitHub Desktop.
Save hjortureh/3939474 to your computer and use it in GitHub Desktop.
Vendor prefixing in SASS
@mixin vendor-prefix($name, $argument) {
-webkit-#{$name}: $argument;
-ms-#{$name}: $argument;
-moz-#{$name}: $argument;
-o-#{$name}: $argument;
#{$name}: $argument;
}
@mixin border-radius($argument) {
@include vendor-prefix(border-radius, $argument);
}
@mixin box-shadow($argument) {
@include vendor-prefix(box-shadow, $argument);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment