Created
January 14, 2013 05:18
-
-
Save riix/4527915 to your computer and use it in GitHub Desktop.
Mobile MediaQuery
from Skeleton CSS Framework
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
/* All Desktop */ | |
@media only screen and (min-width: 767px) { | |
21body { border: solid 10px #00ffff; } | |
} | |
/* Smaller than standard 960 (devices and browsers) */ | |
@media only screen and (max-width: 959px) { | |
body { border: solid 10px #555555; } | |
} | |
/* Tablet Portrait size to standard 960 (devices and browsers) */ | |
@media only screen and (min-width: 768px) and (max-width: 959px) { | |
body { border: solid 10px #0000ff; } | |
} | |
/* All Mobile Sizes (devices and browser) */ | |
@media only screen and (max-width: 767px) { | |
body { border: solid 10px #00ff00; } | |
} | |
/* Mobile Landscape Size to Tablet Portrait (devices and browsers) */ | |
@media only screen and (min-width: 480px) and (max-width: 767px) { | |
body { border: solid 10px #ffff00; } | |
} | |
/* Mobile Portrait Size to Mobile Landscape Size (devices and browsers) */ | |
@media only screen and (max-width: 479px) { | |
body { border: solid 10px #ff0000; } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment