Skip to content

Instantly share code, notes, and snippets.

@greylabel
Created October 15, 2012 18:23
Show Gist options
  • Save greylabel/3894143 to your computer and use it in GitHub Desktop.
Save greylabel/3894143 to your computer and use it in GitHub Desktop.
retina-sprites.scss
#site-name {
a {
@include hide-text();
@include inline-block();
@include sprites-sprite(logo);
background-size: sprites-sprite-width(logo) sprites-sprite-height(logo);
height: sprites-sprite-height(logo);
width: sprites-sprite-width(logo);
}
}
@media all and (-webkit-min-device-pixel-ratio : 1.5) {
#site-name {
a {
@include sprites-2X-sprite(logo);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment