If I use the following to generate a sprite map:
@import "ui-icons/*.png";
How can I get a reference to the sprite map that has been created. I want to pass it to the sprite-position($map) function.
If I use the following to generate a sprite map:
@import "ui-icons/*.png";
How can I get a reference to the sprite map that has been created. I want to pass it to the sprite-position($map) function.
Say you import via
@import "icons/*.png", the variable$icons-spritesnow contains the reference to thesprite-mapfunction used by Compass'@importfunction.The key is using
$<folder>-spritesto reference that sprite map.