Skip to content

Instantly share code, notes, and snippets.

@dcadenas
Created November 5, 2013 02:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dcadenas/7312639 to your computer and use it in GitHub Desktop.
Save dcadenas/7312639 to your computer and use it in GitHub Desktop.
Suitcss design principles question: https://twitter.com/dcadenas/status/397542279033810944
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;
}
@dcadenas
Copy link
Author

dcadenas commented Nov 5, 2013

After all SomeComponent-someDescendant couples even the name to SomeComponent so I guess that doing the same with the dimension/width/positioning is ok too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment