Created
April 1, 2014 11:50
-
-
Save joelremix/9912445 to your computer and use it in GitHub Desktop.
CSS: responsive queries
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
/*iPhone < 4:*/ | |
@media screen and (device-aspect-ratio: 2/3) {} | |
/*iPhone 4 retina */ | |
@media screen and (device-aspect-ratio: 2/3) and (-webkit-min-device-pixel-ratio: 2) {} | |
/*iPhone 5:*/ | |
@media screen and (device-aspect-ratio: 40/71) {} | |
/*iPad:*/ | |
@media screen and (device-aspect-ratio: 3/4) {} | |
/*iPad Retina:*/ | |
@media screen and (device-aspect-ratio: 3/4) and (-webkit-min-device-pixel-ratio: 2) {} | |
/*Nexus and other 1920x1200 tablets:*/ | |
@media screen and (device-aspect-ratio: 8/5) {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment