Skip to content

Instantly share code, notes, and snippets.

@danielmatthew
Created April 30, 2015 12:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danielmatthew/ae24c20729da8eec2b27 to your computer and use it in GitHub Desktop.
Save danielmatthew/ae24c20729da8eec2b27 to your computer and use it in GitHub Desktop.
Sass MQ Mixin
$medium-screen: 30em;
$big-screen: 50em;
@mixin medium {
@media (min-width: #{$medium-screen}) and (max-width: #{$big-screen} - 1px) {
@content;
}
}
@mixin large {
@media (min-width: #{$big-screen}) {
@content;
}
}
// @include medium {}
// @include large {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment