Skip to content

Instantly share code, notes, and snippets.

@baumannsven
Created May 28, 2015 05:40
Show Gist options
  • Save baumannsven/d4e95650a76179d66f5c to your computer and use it in GitHub Desktop.
Save baumannsven/d4e95650a76179d66f5c to your computer and use it in GitHub Desktop.
Compass better spriting
$sprite-layout: smart;
$sprite: sprite-map('sprite/*.png');
@mixin sprite-with-demension($map, $sprite-image) {
background-image: $map;
@include sprite-dimensions($map, $sprite-image);
@include sprite-background-position($map, $sprite-image);
}
@mixin sprite-without-demension($map, $sprite-image) {
background-image: $map;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment