Last active
December 21, 2016 00:35
-
-
Save JuanBonnett/86eafb329ac6a065c14e04ccf1ee971b to your computer and use it in GitHub Desktop.
Some SASS variables you can re-use in all your web projects
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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