Last active
August 29, 2015 14:13
-
-
Save joshbedo/10e63815e5c50bdceabc to your computer and use it in GitHub Desktop.
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
respond-below($width) | |
media = 'all and (max-width: %s)' % $width | |
@media media | |
{block} | |
respond-above($width) | |
media = 'all and (min-width: %s)' % $width | |
@media media | |
{block} | |
respond-between($min-width, $max-width) { | |
$max-width = $max-width - 1; | |
media = 'all and (min-width: %s) and (max-width: %s)' % ($min-width $max-width); | |
@media media { | |
{block} | |
} | |
} |
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
$xs-screen = 480px; | |
$sm-screen = 768px; | |
$md-screen = 1024px; // 992 bs-native | |
$lg-screen = 1200px; | |
$xl-screen = 1440px; | |
.sm-hidden { | |
+respond-below($sm-screen) { | |
display: none !important; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment