Skip to content

Instantly share code, notes, and snippets.

@GregM
Last active August 29, 2015 14:03
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 GregM/f0f07fe6501808aef99a to your computer and use it in GitHub Desktop.
Save GregM/f0f07fe6501808aef99a to your computer and use it in GitHub Desktop.
viewport media query vars
// Desktop or laptop
@viewport-wide: ~"(min-width: 1024px)";
// Tablet in landscape mode
@viewport-medium: ~"(min-width: 768px) and (max-width: 1023px)";
// Tablet in portrait mode or mobile phone in landscape mode
@viewport-narrow: ~"(min-width: 480px) and (max-width: 767px)";
// Mobile phone in portrait mode
@viewport-tiny: ~"(max-width: 479px)";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment