Created
October 30, 2012 12:29
-
-
Save redclov3r/3979905 to your computer and use it in GitHub Desktop.
Responsive Sass mixin with IE support (IE < 9 == largest media)
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) { | |
| @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