Created
November 5, 2013 02:03
-
-
Save dcadenas/7312639 to your computer and use it in GitHub Desktop.
Suitcss design principles question: https://twitter.com/dcadenas/status/397542279033810944
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
SomeComponent { | |
background-color: red; | |
SomeComponent-someDescendant { | |
width: 100%; | |
} | |
} | |
SomeComponent-someDescendant { | |
background-color: white; | |
} | |
//vs | |
SomeComponent { | |
background-color: red; | |
} | |
SomeComponent-someDescendant { | |
width: 100%; | |
background-color: white; | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
After all
SomeComponent-someDescendant
couples even the name toSomeComponent
so I guess that doing the same with the dimension/width/positioning is ok too.