Skip to content

Instantly share code, notes, and snippets.

@EspadaV8
Created March 28, 2013 00:15
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 EspadaV8/5259388 to your computer and use it in GitHub Desktop.
Save EspadaV8/5259388 to your computer and use it in GitHub Desktop.
.share-button .icon {
width: 16px;
height: 16px;
vertical-align: top;
margin: 0 5px 0 -5px;
@include inlineblock;
background-image: url(../images/m/social-share.png);
&.twitter {
background-position: -18px 0;
}
&.email {
background-position: -36px 0;
}
}
@media only screen and (-moz-min-device-pixel-ratio: 1.5),
only screen and (-o-min-device-pixel-ratio: 3/2),
only screen and (-webkit-min-device-pixel-ratio: 1.5),
only screen and (min-device-pixel-ratio: 1.5),
only screen and (min-resolution: 144dpi) {
/* Retina-specific stuff here */
.share-button .icon {
background-image: url(../images/m/social-share@2x.png);
background-size: 52px 16px;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment