-
-
Save julienhay/0147459557efab535d31 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
@mixin media($point) { | |
@if $point == mobile { | |
@media screen and (max-width : em(768)) { @content ; } | |
} | |
@else if $point == tablet { | |
@media screen and (max-width : em(992)) and (min-width: em(768)) { @content ; } | |
} | |
@else if $point == laptop { | |
@media screen and (max-width : em(1200)) and (min-width: em(992)) { @content ; } | |
} | |
@else if $point == desktop { | |
@media screen and (min-width: em(1200)) { @content ; } | |
} | |
@else if $point == desktop-only { | |
@media screen and (min-width: em(992)) { @content ; } | |
} | |
@else if $point == tablet-only { | |
@media screen and (max-width: em(992)) { @content ; } | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment