Skip to content

Instantly share code, notes, and snippets.

@dragstarcrowant
Created March 27, 2015 09:11
Show Gist options
  • Save dragstarcrowant/caef96824397c3e00420 to your computer and use it in GitHub Desktop.
Save dragstarcrowant/caef96824397c3e00420 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// Sass (v3.4.7)
// Compass (v1.0.1)
// ----
.a {
$parent: &;
.b {
&__c {
color: red;
@at-root #{selector-replace(&, $parent, selector-append($parent, '.d'))} {
color: green;
}
}
}
}
.a .b__c {
color: red;
}
.a.d .b__c {
color: green;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment