Last active
January 3, 2016 03:19
-
-
Save nathanieldeal/8400926 to your computer and use it in GitHub Desktop.
Sass snippet to generate sprites using CompassCompass Sprite Snippet
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
@import "compass" | |
$icons: sprite-map("icons/*.png") | |
i | |
background: $icons | |
display: inline-block | |
@each $i in sprite_names($icons) | |
.icn-#{$i} | |
background-position: sprite-position($icons, $i) | |
+sprite-dimensions($icons, $i) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment