Last active
August 3, 2019 03:11
-
-
Save reciosonny/5950ec906d25592eed6dd20bd47371f4 to your computer and use it in GitHub Desktop.
Boilerplate for mixins
This file contains hidden or 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 QUERY MANAGER | |
| /* | |
| 0 - 600px: Phone | |
| 600 - 900px: Tablet portrait | |
| 900 - 1200px: Tablet landscape | |
| [1200 - 1800] is where our normal styles apply | |
| 1800px + : Big desktop | |
| $breakpoint arguement choices: | |
| - phone | |
| - tab-port | |
| - tab-land | |
| - big-desktop | |
| ORDER: Base + typography > general layout + grid > page layout > components | |
| 1em = 16px | |
| */ | |
| @mixin respond($breakpoint) { | |
| @if $breakpoint == phone { | |
| @media only screen and (max-width: 37.5em) { @content }; //600px | |
| } | |
| @if $breakpoint == tab-port { | |
| @media only screen and (max-width: 56.25em) { @content }; //900px | |
| } | |
| @if $breakpoint == tab-land { | |
| @media only screen and (max-width: 75em) { @content }; //1200px | |
| } | |
| @if $breakpoint == big-desktop { | |
| @media only screen and (min-width: 112.5em) { @content }; //1800 | |
| } | |
| } | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment