Skip to content

Instantly share code, notes, and snippets.

@robdecker
Last active November 2, 2019 01:50
Show Gist options
  • Save robdecker/9535157 to your computer and use it in GitHub Desktop.
Save robdecker/9535157 to your computer and use it in GitHub Desktop.
[Testing Breakpoint and no-query fallbacks] Generated by SassMeister.com. #sass
// ----
// Sass (v3.2.14)
// Compass (v0.12.3)
// Breakpoint (v2.0.7)
// ----
@import "breakpoint";
@import "compass";
// $breakpoint-no-queries: false;
// $breakpoint-no-query-fallbacks: true;
$breakpoint-no-queries: true;
$breakpoint-no-query-fallbacks: false;
$tab: 601px;
$desk: 1000px;
@mixin bp($point, $ie8: false) {
@if $ie8 {
@include breakpoint($point, $no-query: true) {
@content;
}
}
@else {
@include breakpoint($point) {
@content;
}
}
}
div {
color: black;
@include bp($tab, true) {
color: red;
}
}
div {
color: black;
color: red;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment