Skip to content

Instantly share code, notes, and snippets.

@micahgodbolt
Created July 27, 2012 15:48
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save micahgodbolt/3188784 to your computer and use it in GitHub Desktop.
Save micahgodbolt/3188784 to your computer and use it in GitHub Desktop.
Sass: Image Replacement
= ir($image)
display: block
background: url(../img/#{$image})
height: image-height($image)
width: image-width($image)
border: 0
font: 0/0 a
text-shadow: none
color: transparent
background-color: transparent
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment