Created
October 31, 2013 20:50
Old IE media queries
This file contains 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
/ Named media queries | |
// ========================================================================== | |
$bp-small: em(650px); | |
$bp-medium: em(1024px); | |
$bp-large: em(1280px); | |
@mixin at-least($device-width, $old-ie: "false") { | |
@media screen and (min-width: $device-width) { | |
@content; | |
} | |
@if $old-ie == "true" { | |
.lt-ie9 & { | |
@content; | |
} | |
} | |
} | |
@mixin until($device-width, $old-ie: "false") { | |
@media screen and (max-width: $device-width) { | |
@content; | |
} | |
@if $old-ie == "true" { | |
.lt-ie9 & { | |
@content; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment