Created
November 9, 2012 12:30
-
-
Save vitalyrotari/4045459 to your computer and use it in GitHub Desktop.
Nexus 7 - CSS 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
@media only screen and (min-device-width: 800px) and (orientation: portrait) { | |
#device:after { | |
content: "Nexus 7 - portrait - firefox"; | |
} | |
} | |
@media screen and (min-device-width : 602px) and (orientation: portrait) { | |
#device:after { | |
content: "Nexus 7 - portrait - chrome"; | |
} | |
} | |
@media only screen and (min-device-width : 1280px) and (orientation: landscape) { | |
#device:after { | |
content: "Nexus 7 - landscape - firefox"; | |
} | |
} | |
@media only screen and (min-device-width : 966px) and (orientation: landscape) { | |
body { | |
background-color: #008000; | |
} | |
#device:after { | |
content: "Nexus 7 - landscape - chrome"; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment