Last active
March 20, 2020 18:26
-
-
Save MinSomai/0af42bb5a658242d26fcc8001b3b6428 to your computer and use it in GitHub Desktop.
Mixins for Breakpoint, SASS.
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 only-for-mobile { | |
| @media (max-width: 576px) { | |
| @content; | |
| } | |
| } | |
| @mixin mobile-and-above { | |
| @media (min-width: 576px) { | |
| @content; | |
| } | |
| } | |
| @mixin only-for-tablet { | |
| @media (min-width: 576px) and (max-width: 768px) { | |
| @content; | |
| } | |
| } | |
| @mixin tablet-and-above { | |
| @media (min-width: 768px) { | |
| @content; | |
| } | |
| } | |
| @mixin tablet-and-below { | |
| @media (max-width: 768px) { | |
| @content; | |
| } | |
| } | |
| @mixin only-for-laptop { | |
| @media (min-width: 768px) and (max-width: 992px) { | |
| @content; | |
| } | |
| } | |
| @mixin laptop-and-above { | |
| @media (min-width: 992px) { | |
| @content; | |
| } | |
| } | |
| @mixin laptop-and-below { | |
| @media (max-width: 992px) { | |
| @content; | |
| } | |
| } | |
| @mixin only-for-large-devices { | |
| @media (min-width: 992px) and (max-width: 1200px) { | |
| @content; | |
| } | |
| } | |
| @mixin large-devices-and-above { | |
| @media (min-width: 1200px) { | |
| @content; | |
| } | |
| } | |
| @mixin large-devices-and-below { | |
| @media (max-width: 1200px) { | |
| @content; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment