Created
April 14, 2012 12:46
-
-
Save aarongustafson/2384199 to your computer and use it in GitHub Desktop.
Code examples for iIR Redux
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@media only screen and (-moz-min-device-pixel-ratio: 2), | |
only screen and (-ms-min-device-pixel-ratio: 2), | |
only screen and (-o-min-device-pixel-ratio: 2), | |
only screen and (-webkit-min-device-pixel-ratio: 2), | |
only screen and (min-device-pixel-ratio: 2) | |
{ | |
#social-links img { | |
background: top left no-repeat; | |
background-size: 25px 25px; | |
display: inline-block; | |
height: 0; | |
width: 25px; | |
padding-top: 25px; | |
overflow: hidden; | |
} | |
#social-links img[src*=fb] { | |
background-image: url(fb-2x.png); | |
} | |
#social-links img[src*=twitter] { | |
background-image: url(twitter-2x.png); | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#social-links img { | |
background: center center no-repeat; | |
display: inline-block; | |
height: 0; | |
width: 25px; | |
padding-top: 25px; | |
overflow: hidden; | |
} | |
#social-links img[src*=fb] { | |
background-image: url(fb-screen.png); | |
} | |
#social-links img[src*=twitter] { | |
background-image: url(twitter-screen.png); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<p id="social-links"> | |
<a href="…"><img src="fb-print.png" alt="Like us on Facebook"/></a> | |
<a href="…"><img src="twitter-print.png" alt="Follow us on Twitter"/></a> | |
</p> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment