Created
March 15, 2013 09:39
-
-
Save DigitalCoder/5168648 to your computer and use it in GitHub Desktop.
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
/* iPad In Portrait & Landscape */ | |
@media only screen and (min-device-width : 768px) and (max-device-width : 1024px) {} | |
/* iPad In Landscape */ | |
@media only screen and (min-device-width : 768px) and (max-device-width : 1024px) and (orientation : landscape) {} | |
/* iPad In Portrait */ | |
@media only screen and (min-device-width : 768px) and (max-device-width : 1024px) and (orientation : portrait) {} | |
/* Retina Display iPads */ | |
/* To target iPad 3 and 4 you need to check for the device pixel ratio. */ | |
/* Retina iPad In Portrait & Landscape */ | |
@media only screen and (min-device-width : 768px) and (max-device-width : 1024px) and (-webkit-min-device-pixel-ratio: 2) {} | |
/* Retina iPad in landscape */ | |
@media only screen and (min-device-width : 768px) and (max-device-width : 1024px) and (orientation : landscape) and (-webkit-min-device-pixel-ratio: 2) {} | |
/* Retina iPad in portrait */ | |
@media only screen and (min-device-width : 768px) and (max-device-width : 1024px) and (orientation : portrait) and (-webkit-min-device-pixel-ratio: 2) {} | |
/* iPad 1 & 2 Media Queries */ | |
/* If you want to target iPads 1 and 2 then you need to check for devices with a lower pixel ratio. */ | |
/* iPad 1 & 2 In Portrait & Landscape */ | |
@media only screen and (min-device-width : 768px) and (max-device-width : 1024px) and (-webkit-min-device-pixel-ratio: 1) {} | |
/* iPad 1 & 2 In Landscape */ | |
@media only screen and (min-device-width : 768px) and (max-device-width : 1024px) and (orientation : landscape) and (-webkit-min-device-pixel-ratio: 1) {} | |
/* iPad 1 & 2 In Portrait */ | |
@media only screen and (min-device-width : 768px) and (max-device-width : 1024px) and (orientation : portrait) and (-webkit-min-device-pixel-ratio: 1) {} | |
/* iPad Mini Media Queries */ | |
/* The iPad Mini has the same resolution and pixel ratio as the iPad 1 & 2. */ | |
/* iPad Mini In Portrait & Landscape */ | |
@media only screen and (min-device-width : 768px) and (max-device-width : 1024px) and (-webkit-min-device-pixel-ratio: 1) {} | |
/* iPad Mini In Landscape */ | |
@media only screen and (min-device-width : 768px) and (max-device-width : 1024px) and (orientation : landscape) and (-webkit-min-device-pixel-ratio: 1) {} | |
/* iPad Mini In Portrait */ | |
@media only screen and (min-device-width : 768px) and (max-device-width : 1024px) and (orientation : portrait) and (-webkit-min-device-pixel-ratio: 1) {} | |
/* iPhone 5 In Portrait & Landscape */ | |
@media only screen and (min-device-width : 320px) and (max-device-width : 568px) {} | |
/* iPhone 5 In Landscape */ | |
@media only screen and (min-device-width : 320px) and (max-device-width : 568px) and (orientation : landscape) {} | |
/* iPhone 5 In Portrait */ | |
@media only screen and (min-device-width : 320px) and (max-device-width : 568px) and (orientation : portrait) {} | |
/* iPhone 2G-4S In Portrait & Landscape */ | |
@media only screen and (min-device-width : 320px) and (max-device-width : 480px) {} | |
/* iPhone 2G-4S In Landscape */ | |
@media only screen and (min-device-width : 320px) and (max-device-width : 480px) and (orientation : landscape) {} | |
/* iPhone 2G-4S In Portrait */ | |
@media only screen and (min-device-width : 320px) and (max-device-width : 480px) and (orientation : portrait) {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment