Skip to content

Instantly share code, notes, and snippets.

@jackmcmorrow
Last active December 26, 2015 23:59
Show Gist options
  • Save jackmcmorrow/7234476 to your computer and use it in GitHub Desktop.
Save jackmcmorrow/7234476 to your computer and use it in GitHub Desktop.
Media queries para SASS
@mixin print {
@media only print {
@content;
}
}
@mixin no-print {
@media only print {
display: none !important;
}
}
@mixin xs {
@media screen and (max-width : 767px) {
& {@content;}
}
}
@mixin sm {
@media screen and (min-width : 768px) and (max-width : 991px) {
& {@content;}
}
}
@mixin md {
@media screen and (min-width : 992px) and (max-width : 1199px) {
& {@content;}
}
}
@mixin lg {
@media screen and (min-width : 1200px) {
& {@content;}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment