Skip to content

Instantly share code, notes, and snippets.

@seven-phases-max
Last active August 29, 2015 13:55
Show Gist options
  • Save seven-phases-max/8771618 to your computer and use it in GitHub Desktop.
Save seven-phases-max/8771618 to your computer and use it in GitHub Desktop.
.box-shadow(@values...) {
// http://caniuse.com/#search=box-shadow
.some-meaninful-name(box-shadow,
@values, -webkit- -moz- ~'');
}
.transform(@values) {
// http://caniuse.com/#search=transform
.some-meaninful-name(transform,
@values, -webkit- -moz- -o- ~'');
}
// etc.
.some-meaninful-name(@property, @values, @prefixes) {
.for(@prefixes);.-each(@i) {
@prefix: extract(@prefixes, @i);
@{prefix}@{property}: @values;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment