4 ms·
I wrote a very very similar article many months ago (but no upvotes * sob *) - perhaps people interested in this article would also be interested in my take on
by jenius 14y ago
I wrote a very very similar article many months ago (but no upvotes * sob *) - perhaps people interested in this article would also be interested in my take on it, where I rely much more on mixins than extends:
http://carrotblog.com/css-patterns-evolved/ http://carrotblog.com/css-patterns-evolved/
- ianstormtaylor 14y agoOP here, nice article! As long as you always group your selectors, mixins would do exactly the same thing as I'm describing. What's awesome about Sass @extend though is that you can ungroup your `.post, .comment, .friend ` selectors and Sass will regroup them for you! If you did that with mixins you'd end up with code duplication. Cheers!
- jenius 14y agoThanks! And definitely agreed - I never used @extends too much previously, but I'm starting to see some use cases for it. The placeholder class is an especially nice new feature outlined here, also props to Chris Eppstein for his awesome work on this.