Created
November 30, 2012 12:35
-
-
Save shrwnsan/4175516 to your computer and use it in GitHub Desktop.
Retina/high resolution media query
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
/* Clean version examples */ | |
/* 1.25 dpr */ | |
@media | |
(-webkit-min-device-pixel-ratio: 1.25), | |
(min-resolution: 120dpi){ | |
/* Retina-specific stuff here */ | |
} | |
/* 1.3 dpr */ | |
@media | |
(-webkit-min-device-pixel-ratio: 1.3), | |
(min-resolution: 124.8dpi){ | |
/* Retina-specific stuff here */ | |
} | |
/* 1.5 dpr */ | |
@media | |
(-webkit-min-device-pixel-ratio: 1.5), | |
(min-resolution: 144dpi){ | |
/* Retina-specific stuff here */ | |
} | |
/*2.0 dpr */ | |
@media | |
(-webkit-min-device-pixel-ratio: 2), | |
(min-resolution: 192dpi){ | |
/* Retina-specific stuff here */ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Based in this article: http://www.brettjankord.com/2012/11/28/cross-browser-retinahigh-resolution-media-queries/