Created
May 28, 2015 05:40
-
-
Save baumannsven/d4e95650a76179d66f5c to your computer and use it in GitHub Desktop.
Compass better spriting
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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