Skip to content

Instantly share code, notes, and snippets.

Created February 1, 2017 14:10
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 anonymous/ee4617eef57123761633536b54a8c40b to your computer and use it in GitHub Desktop.
Save anonymous/ee4617eef57123761633536b54a8c40b to your computer and use it in GitHub Desktop.
$queryMaxNotEnough: 'only screen and (max-width: 1140px) and (min-width: 1024px)';
$queryMaxMobile: 'only screen and (max-width: 1023px)';
@mixin queryMaxMobile {
@media #{$queryMaxMobile}
{
@content;
}
}
@mixin queryMaxNotEnough {
@media #{$queryMaxNotEnough}
{
@content;
}
}
@mixin queryRetina {
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
@content;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment