Skip to content

Instantly share code, notes, and snippets.

@redclov3r
Created October 30, 2012 12:29
Show Gist options
  • Select an option

  • Save redclov3r/3979905 to your computer and use it in GitHub Desktop.

Select an option

Save redclov3r/3979905 to your computer and use it in GitHub Desktop.
Responsive Sass mixin with IE support (IE < 9 == largest media)
mixin respond-to($media) {
@if $media == medium {
@media only screen and (min-width: $breakMedium) { @content; }
}
@else if $media == large {
@media only screen and (min-width: $breakLarge) { @content; }
}
body.lt-ie9 & {
@content; //serve IE < 9 with all media queries
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment