Skip to content

Instantly share code, notes, and snippets.

Created December 21, 2012 20:37
Show Gist options
  • Save anonymous/4355633 to your computer and use it in GitHub Desktop.
Save anonymous/4355633 to your computer and use it in GitHub Desktop.
@mixin respond-to($media) {
if $media == medium-screens {
@media only screen and (min-width: $breakMedium + 1) { @content; }
}
@else if $media == wide-screens {
@media only screen and (min-width: $breakLarge + 1) { @content; }
html.lt-ie9 & { // Using Paul Irish's conditional comments for IE8 and below
@content;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment