You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 .media can be applied to many different types of markup but if we were to use silent classes then we’d need to pick a new, unique name for every occurrence of what would previously have just been .media.
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…
Hi, how about rewritting code in this direction? https://speakerdeck.com/u/anotheruiguy/p/sass-32-silent-classes
The text was updated successfully, but these errors were encountered: