Created
March 26, 2015 16:36
-
-
Save pdai1y/8e6bb64cc319290f2228 to your computer and use it in GitHub Desktop.
Media Query example
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 Queries | |
–––––––––––––––––––––––––––––––––––––––––––––––––– */ | |
/* | |
Note: The best way to structure the use of media queries is to create the queries | |
near the relevant code. For example, if you wanted to change the styles for buttons | |
on small devices, paste the mobile query code up in the buttons section and style it | |
there. | |
*/ | |
/* Larger than mobile */ | |
@media (min-width: 400px) {} | |
/* Larger than phablet (also point when grid becomes active) */ | |
@media (min-width: 550px) {} | |
/* Larger than tablet */ | |
@media (min-width: 750px) {} | |
/* Larger than desktop */ | |
@media (min-width: 1000px) {} | |
/* Larger than Desktop HD */ | |
@media (min-width: 1200px) {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment