Skip to content

Instantly share code, notes, and snippets.

@JonMcL
Created October 22, 2013 21:21
Show Gist options
  • Select an option

  • Save JonMcL/7108388 to your computer and use it in GitHub Desktop.

Select an option

Save JonMcL/7108388 to your computer and use it in GitHub Desktop.
Useful responsive SCSS breakpoint mixins with IE8/IE7 fallback
@import 'breakpoint';
$mobile: max-width 959px;
$desktop: min-width 960px;
@mixin break-mobile {
@include breakpoint($mobile) {
@content
}
}
@mixin break-desktop {
@include breakpoint($desktop) {
@content
}
.lt-ie9 & {
@content
}
}
@mixin break-desktop-base {
@include breakpoint($desktop) {
@content
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment