Created
April 28, 2014 20:16
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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