Skip to content

Instantly share code, notes, and snippets.

@LoyEgor
Created February 14, 2017 17:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LoyEgor/3f6dbd4008b49235a0ad5be6ca762598 to your computer and use it in GitHub Desktop.
Save LoyEgor/3f6dbd4008b49235a0ad5be6ca762598 to your computer and use it in GitHub Desktop.
mixin for easier @media use
@maxlg: ~"(max-width: 1199px)";
@maxmd: ~"(max-width: 991px)";
@maxsm: ~"(max-width: 767px)";
@maxxs: ~"(max-width: 320px)";
@minlg: ~"(min-width: 1200px)";
@minmd: ~"(min-width: 992px)";
@minsm: ~"(min-width: 768px)";
@mdtolg: ~"(min-width: 992px) and (max-width: 1199px)";
@smtomd: ~"(min-width: 768px) and (max-width: 991px)";
@smtolg: ~"(min-width: 768px) and (max-width: 1199px)";
@xstosm: ~"(min-width: 321px) and (max-width: 767px)";
@xstomd: ~"(min-width: 321px) and (max-width: 991px)";
@xstolg: ~"(min-width: 321px) and (max-width: 1199px)";
// @media @maxxs {
// param: val;
// }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment