Created
October 15, 2018 03:23
-
-
Save a-m-dev/f1ea4fb12051ae37b9ef1c46ad5ea416 to your computer and use it in GitHub Desktop.
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 | |
@mixin MIN_QUERY($min) { | |
@media screen and (min-width: $min){ | |
@content; | |
} | |
} | |
@mixin MAX_QUERY($max) { | |
@media screen and (max-width: $max){ | |
@content; | |
} | |
} | |
@mixin MIN_MAX_QUERY($min , $max) { | |
@media screen and (min-width: $min) and (max-width: $max) { | |
@content; | |
} | |
} | |
// how to use | |
@include MAX_QUERY(768px) { | |
... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment