Skip to content

Instantly share code, notes, and snippets.

@iamcarrico
Last active August 29, 2015 14:05
Show Gist options
  • Select an option

  • Save iamcarrico/0453ee0ca829e75b5f67 to your computer and use it in GitHub Desktop.

Select an option

Save iamcarrico/0453ee0ca829e75b5f67 to your computer and use it in GitHub Desktop.
Simple Breakpoint Noquery fallback
header {
color: blue;
}
/**
* @file
* Styles for IE 8 and lower.
*/
// Set the legacy IE support variables.
$browser-minimum-versions: (ie: '7');
$graceful-usage-threshold: 0.1;
$critical-usage-threshold: .01;
// Force the breakpoint mixin to discard all media queries except ones with
// $no-query set to true.
$breakpoint-no-queries : true;
$breakpoint-no-query-fallbacks : true;
@import "style";
<html>
<head>
<!--[if (gte IE 9)|(IEMobile)|(!IE)]><!-->
<link rel="stylesheet" href="style.css">
<!--<![endif]-->
<!--[if (lt IE 9)]>
<link rel="stylesheet" href="is8-style.css" />
<![endif]-->
</head>
<body>
</body>
</html>
@media (min-width: 500px) {
header {
color: blue;
}
}
@import "breakpoint";
@include breakpoint(500px, true) {
header {
color: blue;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment