Created
April 30, 2018 16:56
-
-
Save NickDeckerDevs/910ed3422e83c1491eb963944a7ce5e5 to your computer and use it in GitHub Desktop.
sass breakpoints
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
| @mixin breakpoint($point) { | |
| @if $point == desktopwide { | |
| @media (min-width: 77em) { | |
| @content ; | |
| } | |
| } | |
| @else if $point == desktop { | |
| @media (min-width: 64em) { | |
| @content ; | |
| } | |
| } | |
| @else if $point == tablet { | |
| @media (min-width: 50em) { | |
| @content ; | |
| } | |
| } | |
| @else if $point == mobile { | |
| @media (min-width: 37.5em) { | |
| @content ; | |
| } | |
| } | |
| @else if $point == phone { | |
| @media (max-width: 37.5em) { | |
| @content ; | |
| } | |
| } | |
| @else { | |
| @media (min-width: $point) { | |
| @content ; | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment