Skip to content

Instantly share code, notes, and snippets.

@disinfeqt
Created October 16, 2011 09:49
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save disinfeqt/1290718 to your computer and use it in GitHub Desktop.
Save disinfeqt/1290718 to your computer and use it in GitHub Desktop.
Image Replacement Mixin
.ir (@img, @width, @height) {
display: block;
text-indent: -9999px;
background-image: url("../images/@{img}");
width: @width;
height: @height;
}
/* Usage */
.logo {
.ir ("logo.png", 175px, 33px)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment