Skip to content

Instantly share code, notes, and snippets.

@dfdeagle47
Created November 4, 2015 15:10
Show Gist options
  • Save dfdeagle47/9cdadfe618c4e649df22 to your computer and use it in GitHub Desktop.
Save dfdeagle47/9cdadfe618c4e649df22 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// libsass (v3.2.5)
// ----
.interactions {
//Bad because .interactions is at a higher level that body
body {
background: red;
}
//Bad because .interactions class should be on the same element
body & {
background: red;
}
//Bad because .interactions is also present at the higher level
body#{&} {
background: red;
}
//Bad because .interactions is still present at the higher level
@at-root body#{&} {
background: red;
}
//Works without variable interpolation... weird
@at-root body.interactions {
background: red;
}
}
.interactions body {
background: red;
}
body .interactions {
background: red;
}
.interactions body.interactions {
background: red;
}
.interactions body.interactions {
background: red;
}
body.interactions {
background: red;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment