Skip to content

Instantly share code, notes, and snippets.

@JoeCianflone
Last active January 17, 2016 22:42
Show Gist options
  • Save JoeCianflone/b1299d5f965ee4160791 to your computer and use it in GitHub Desktop.
Save JoeCianflone/b1299d5f965ee4160791 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// libsass (v3.3.2)
// ----
.person {
width: 100%;
&__element {
width: 80%;
}
&--modifier {
width: 90%;
}
&--modifier & {
&__element {
width: 50%;
}
}
// as soon as you put the & inside an element the "parent" becomes
// the wrong tag
&--modifier-merged {
width: 20%;
& {
&__element {
width: 22%;
}
}
}
}
.person {
width: 100%;
}
.person__element {
width: 80%;
}
.person--modifier {
width: 90%;
}
.person--modifier .person__element {
width: 50%;
}
.person--modifier-merged {
width: 20%;
}
.person--modifier-merged__element {
width: 22%;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment