Skip to content

Instantly share code, notes, and snippets.

@keeprock
Forked from jordanmoore/Better Emmet Media Queries
Last active June 26, 2017 16:53
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save keeprock/710baeabcd7162dd5c44 to your computer and use it in GitHub Desktop.
Save keeprock/710baeabcd7162dd5c44 to your computer and use it in GitHub Desktop.
For Sublime 3 go to Preferences > Package Settings > Emmet > Setting - User and add this for writing better media queries quickly in Emmet. mqm => min-width media query mqx => max-width media query
{
"snippets": {
"css": {
"abbreviations": {
"mqm": "@media screen and (min-width:${1}) {\n\t|\n}",
"mqx": "@media screen and (max-width:${1}) {\n\t|\n}"
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment