Skip to content

Instantly share code, notes, and snippets.

@JuanBonnett
Last active December 21, 2016 00:35
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 JuanBonnett/86eafb329ac6a065c14e04ccf1ee971b to your computer and use it in GitHub Desktop.
Save JuanBonnett/86eafb329ac6a065c14e04ccf1ee971b to your computer and use it in GitHub Desktop.
Some SASS variables you can re-use in all your web projects
/**
* Media Queries
*/
$phone: "(max-width: 768px)";
$phone-portrait: "(max-width: 480px) and (orientation: portrait)";
$phone-landscape: "(max-width: 768px) and (orientation: landscape)";
$larger-than-phone: "(min-width: 768px)";
$tablet: "(min-width: 769px) and (max-width: 1023px)";
$smaller-than-tablet: "(max-width: 1023px)";
$larger-than-tablet: "(min-width: 1024px)";
$desktop: "(min-width: 1024px) and (max-width: 1920px)";
$big-desktop: "(min-width: 1921px)"; // For iMacs or any 4k Monitor
/**
* In your SCSS
* Usage Example:
.cssclass {
@media #{$phone-portrait} {
width: 80%;
}
}
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment