Skip to content

Instantly share code, notes, and snippets.

@spigotdesign
Created November 22, 2013 16:05
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 spigotdesign/7602301 to your computer and use it in GitHub Desktop.
Save spigotdesign/7602301 to your computer and use it in GitHub Desktop.
@mixin mq($mq) {
@if $mq == 690 { @media (max-width: 690px) { @content; } }
@if $mq == 320 { @media (max-width: 320px) { @content; } }
@if $mq == retina {
@media
only screen and (-webkit-min-device-pixel-ratio: 2),
only screen and ( min--moz-device-pixel-ratio: 2),
only screen and ( -o-min-device-pixel-ratio: 2/1),
only screen and ( min-device-pixel-ratio: 2),
only screen and ( min-resolution: 192dpi),
only screen and ( min-resolution: 2dppx) {
@content;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment