Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
silent classes #38
Hi, how about rewritting code in this direction? https://speakerdeck.com/u/anotheruiguy/p/sass-32-silent-classes
I don’t really agree with that methodology on the whole; it will still lead to bloated CSS (more so than OOCSS) because your abstractions have become 1:1 with your HTML. A class like
If you take a look at my talk Big CSS from this point onward (and slide 25 in particular) you can see how using the same class over and over means it can be applied to many different things without necessarily needing a second ‘semantic’ class.
There might be scope for invisible classes, sure, and I shall cross those bridges when I come to them, but for now classes reused in the HTML are more flexible than having to constantly assign new names to them in the CSS…
Cheers for all your feedback!