Skip to content

Instantly share code, notes, and snippets.

@cararemixed
Forked from chriseppstein/concept.sass
Created January 5, 2011 22:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cararemixed/767115 to your computer and use it in GitHub Desktop.
Save cararemixed/767115 to your computer and use it in GitHub Desktop.
@mixin some_sprite($state) {
background-image: url(...);
background-position: if($state is hover, 18px, 0px) 18px;
}
// somewhere down the line ..........
.thingy {
@include some_sprite(default);
}
.thingy:hover {
@include some_sprite(hover);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment