Created
November 4, 2015 15:10
-
-
Save dfdeagle47/9cdadfe618c4e649df22 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ---- | |
// 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; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.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