by ryantownsend · 10y ago · 0 comments
Obviously this is a fairly basic example, but with more chaining comes more levels of specificity which makes for increasingly difficult changes and worse productivity.
One thing bothers me though. Isn't this very WET? You have to repeat the `.primary` rules in every `--primary` thing?
I'm still torn apart about `.button.primary` and `.button--primary`. Also semantic classes vs style bound classes. I'm not completely convinced by any methology.
What's the difference between
.c-button.primary { … }
.c-button.large { … }
and .c-button--primary { … }
.c-button--large { … }
?Like mentioned above, this keeps things simple and prevents the snowball effect of people continually adding classes or selectors to override styles.