Skip to content

Instantly share code, notes, and snippets.

@jhummel
Created April 13, 2012 20:48
Show Gist options
  • Save jhummel/2380087 to your computer and use it in GitHub Desktop.
Save jhummel/2380087 to your computer and use it in GitHub Desktop.
$application_icons: remove, add, checkout, print, export;
.with_icon {
background-position: left 48%;
background-repeat: no-repeat;
padding-left: 1.5em;
@include background-size(auto 90%);
@each $icon in $application_icons {
&.#{$icon} {
background-image: image_url('mobile/icons/#{$icon}.png');
}
}
}
# use like this (btn class would style it as a btn):
# <a href="btn with_icon remove">Remove</a>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment