Skip to content

Instantly share code, notes, and snippets.

@bencallahan
Created December 20, 2012 19:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bencallahan/4347955 to your computer and use it in GitHub Desktop.
Save bencallahan/4347955 to your computer and use it in GitHub Desktop.
// _my-media-nomq.scss
@mixin my-base {
// never serve the base styles to old IE
// (it will already receive this in mq.css)
// note, SCSS won't compile unless you use @content
@if false {
@content;
}
}
@mixin my-media($theQuery, $serveToOldIE: true) {
// allows us to exclude queries from old IE
// by passing "false"
@if $serveToOldIE {
@content;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment