Last active
December 14, 2015 20:40
-
-
Save arcreative/5145376 to your computer and use it in GitHub Desktop.
Retina media query implementation
This file contains 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
.sprite.logo { | |
background: url(logo.png); | |
width: 200px; | |
height: 80px; | |
} | |
@media | |
only screen and (min-device-pixel-ratio: 2), | |
only screen and (-webkit-min-device-pixel-ratio: 2), | |
only screen and (-moz-min-device-pixel-ratio: 2), | |
only screen and (-o-min-device-pixel-ratio: 2/1) { | |
.sprite.logo { | |
background: url(logo-2x.png); | |
background-size: 200px 80px; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment