문제

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-sprites now contains the reference to the sprite-map function used by Compass' @import function.

The key is using $<folder>-sprites to reference that sprite map.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top