Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Fading CSS sprites using Compass/SCSS Re: Fading CSS sprites using Compass/SCSS

#114038
skweeze
Member

Here is the link from the Compass website explaining about magic selectors: http://compass-style.org/help/tutorials/spriting/magic-selectors/
I am using the latest version of Compass (v 0.12.2)
The code I am using is:

$icons-spacing:20px;
@import “icons/*.png”;
@include all-icons-sprites;

Basically, adding an image with “_hover” at the end automatically adds the :hover state to the selector.