Created
November 19, 2013 21:08
-
-
Save mzsanford/7552612 to your computer and use it in GitHub Desktop.
Detecting the iPhone via CSS only
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_5_aspect_ratio: 40/71; | |
$retina_resolution: 326dpi; | |
@media screen and (device-aspect-ratio: $iphone_5_aspect_ratio) and (-webkit-min-device-pixel-ratio: 2) { | |
/* iPhone 5, 5c or 5s with retina display */ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment