Skip to content

Instantly share code, notes, and snippets.

@joshbedo
Last active August 29, 2015 14:13
Show Gist options
  • Save joshbedo/10e63815e5c50bdceabc to your computer and use it in GitHub Desktop.
Save joshbedo/10e63815e5c50bdceabc to your computer and use it in GitHub Desktop.
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}
}
}
$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