Created
May 20, 2018 14:12
-
-
Save hwshim0810/7a45cecca575208275e4892a796022fb to your computer and use it in GitHub Desktop.
Simple responsive mixin
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 breakpoint($point) { | |
@if $point == desktop { | |
@media (min-width: 70em) { | |
@content; | |
} | |
} | |
@else if $point == laptop { | |
@media (min-width: 64em) { | |
@content; | |
} | |
} | |
@else if $point == tablet { | |
@media (min-width: 50em) { | |
@content; | |
} | |
} | |
@else if $point == phablet { | |
@media (min-width: 37.5em) { | |
@content; | |
} | |
} | |
@else if $point == mobileonly { | |
@media (max-width: 37.5em) { | |
@content; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment