Skip to content

Instantly share code, notes, and snippets.

@pdai1y
Created March 26, 2015 16:36
Show Gist options
  • Save pdai1y/8e6bb64cc319290f2228 to your computer and use it in GitHub Desktop.
Save pdai1y/8e6bb64cc319290f2228 to your computer and use it in GitHub Desktop.
Media Query example
/* 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