Skip to content

Instantly share code, notes, and snippets.

@nailton
Created April 14, 2020 12:36
Show Gist options
  • Save nailton/2768960adbedd5eef073b4735777b2aa to your computer and use it in GitHub Desktop.
Save nailton/2768960adbedd5eef073b4735777b2aa to your computer and use it in GitHub Desktop.
Media Queries
/* 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