Last active
December 20, 2015 21:28
-
-
Save SimplGy/6197533 to your computer and use it in GitHub Desktop.
Allows you to use simple block statements to conditionally target +phone, +desktop, and +tablet
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
$sizePhone: 603px | |
$sizeTablet: 1024px | |
@mixin phone | |
@media (max-width: $sizePhone) | |
@content | |
@mixin tablet | |
@media (min-width: $sizePhone+1) and (max-width: $sizeTablet) | |
@content | |
@mixin desktop | |
@media (min-width: $sizeTablet+1) | |
@content |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Usage: