Created
November 27, 2012 03:32
-
-
Save pketh/4152195 to your computer and use it in GitHub Desktop.
Simple Mobile First @media queries
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
/* | |
============================= | |
# Mobile First @media queries | |
============================= | |
*/ | |
/* styles for iphone portrait go up here*/ | |
/* Smartphones (landscape) ----------- */ | |
@media only screen | |
and (min-width : 321px) { | |
/* styles */ | |
} | |
/* iphone 5 landscape ---------------- */ | |
@media only screen | |
and (min-width : 568px) { | |
/* styles */ | |
} | |
/* iPads (portrait) ------------------ */ | |
@media only screen | |
and (min-width : 768px) { | |
/* styles */ | |
} | |
/* iPads (landscape) ---------------- */ | |
@media only screen | |
and (min-width : 1024px) { | |
/* Styles */ | |
} | |
/* Desktops and laptops ------------- */ | |
@media only screen | |
and (min-width : 1224px) { | |
/* Styles */ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Keep in mind: styles cascade down as screen sizes increase