Last active
February 26, 2017 22:30
-
-
Save pash90/4a1092910316593e1e244b2962d6d6cc to your computer and use it in GitHub Desktop.
Width-based media queries for web projects.
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
/* | |
* SMALL SCREENS | |
*/ | |
@media only screen { | |
/* Define mobile styles */ | |
} | |
// Mobile-only styles, max-width: 640px | |
@media only screen and (max-width: 640px) { | |
/* use when QAing mobile only issues */ | |
} | |
/* | |
* MEDIUM SCREENS | |
*/ | |
@media only screen and (min-width: 641px) { | |
} | |
@media only screen and (min-width: 641px) and (max-width: 1024px) { | |
/* use when QAing tablet only issues */ | |
} | |
/* | |
* LARGE SCREENS | |
*/ | |
@media only screen and (min-width: 1025px) { | |
} | |
@media only screen and (min-width:1025px) and (max-width: 1440px) { | |
/* use when QAing large screen only issues */ | |
} | |
/* | |
* EXTRA LARGE SCREENS | |
*/ | |
@media only screen and (min-width: 1441px) { | |
} | |
@media only screen and (min-width: 1441px) and (max-width: 1920px) { | |
/* use when QAing extra large screen only issues */ | |
} | |
/* | |
* EXTRA EXTRA LARGE SCREENS | |
*/ | |
@media only screen and (min-width: 1921px) { | |
/* used for styles. Also used for testing extra extra large screen only issues */ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment