Skip to content

Instantly share code, notes, and snippets.

@seven-phases-max
Created June 10, 2014 01:38
Show Gist options
  • Select an option

  • Save seven-phases-max/f7631b866846801a06ee to your computer and use it in GitHub Desktop.

Select an option

Save seven-phases-max/f7631b866846801a06ee to your computer and use it in GitHub Desktop.
.sprite-resize(@file) {
.sprite-ret('@sprite-retina-@{file}');
.sprite-norm('@sprite-@{file}');
}
.sprite-ret(@ret) {
background-image: url(@ret);
}
.sprite-norm(@norm) {
.lt-ie9 & {
background-image: url(@norm);
}
}
// test
.test {
.sprite-resize(facebook);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment