Skip to content

Instantly share code, notes, and snippets.

@pzi
Created October 16, 2013 13:43
Show Gist options
  • Save pzi/7007939 to your computer and use it in GitHub Desktop.
Save pzi/7007939 to your computer and use it in GitHub Desktop.
How to get each icon dimension when using compass sprites.
$test_icons-sprite-map: sprite-map("some-icons/*.png")
$test_icons-sprite-names: sprite-names($test_icons-sprite-map)
@each $name in $test_icons-sprite-names
.some-icon-#{$name}
@include sprite-dimensions($test_icons-sprite-map, $name)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment