Skip to content

Instantly share code, notes, and snippets.

View pdclark's full-sized avatar

Paul Clark pdclark

View GitHub Profile
@dasgib
dasgib / compass-retina-sprites.scss
Created June 23, 2012 19:57 — forked from thulstrup/compass-retina-sprites.scss
Using Compass to generate normal and retina sprite maps
$sprites: sprite-map("sprites/*.png");
$sprites-retina: sprite-map("sprites-retina/*.png");
@mixin sprite-background($name) {
background-image: sprite-url($sprites);
background-position: sprite-position($sprites, $name);
background-repeat: no-repeat;
display: block;
height: image-height(sprite-file($sprites, $name));
width: image-width(sprite-file($sprites, $name));