Skip to content

Instantly share code, notes, and snippets.

@seafarer
Created April 28, 2014 20:16
Show Gist options
  • Save seafarer/11382806 to your computer and use it in GitHub Desktop.
Save seafarer/11382806 to your computer and use it in GitHub Desktop.
Simple mixin for throwing a fallback class on min width media query for IE. Via http://www.alwaystwisted.com/post.php?s=2012-08-06-a-sass-mixin-for-media-queries-and-ie
@mixin respond-to($media) {
@media #{$media} {
@content
}
}
@mixin respond-to-fallback($media, $wrapper-class) {
.#{$wrapper-class} & {
@content;
}
@include respond-to($media) {
@content;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment