Last active
January 17, 2016 22:42
-
-
Save JoeCianflone/b1299d5f965ee4160791 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
This file contains hidden or 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.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%; | |
} | |
} | |
} | |
} |
This file contains hidden or 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
.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