Earlier quoted context omitted.
The entire point of @extend is so that you don't get the extreme code duplication of mixins. I can't speak authoritatively on LESS since I stopped using it a long time ago, but what happens when you apply that `.media` pattern to another selector? It duplicates all the styles, instead of grouping common selectors into one style definition like @extend does. And the point is even @extend can get bloaty when nested, bu…
"It duplicates all the styles, instead of grouping common selectors into one style definition like @extend does." This didn't come through entirely until I read the comment. I think an example of what mixins would produce would be helpful. At the end of the day we have two goals: 1) keeping things easy to develop and 2) keeping the CSS filesize as small as possible. Mixins accomplished 1 but not 2. One potentially re…
OOCSS + Sass = The best way to CSS
21–30 of 57 posts
Re: OOCSS + Sass = The best way to CSS
#22Re: OOCSS + Sass = The best way to CSS
#23From the creator (of Sass) "it's Sass not SASS" https://twitter.com/hcatlin/status/256142344431214592
Re: OOCSS + Sass = The best way to CSS
#24The post also suggests that certain class names are "unsemantic", when they obviously aren't. They just have different meaning to the sorts of class names the author is advocating.
Re: OOCSS + Sass = The best way to CSS
#25tl;dr Somebody discovered the power of mixins I don't see how SASS is doing something unique here that other preprocessors can't do as well.
Re: OOCSS + Sass = The best way to CSS
#26So... basically, author uses a compiles-to-css to DRY up his code.
Re: OOCSS + Sass = The best way to CSS
#27Re: OOCSS + Sass = The best way to CSS
#28From the creator (of Sass) "it's Sass not SASS" https://twitter.com/hcatlin/status/256142344431214592
Re: OOCSS + Sass = The best way to CSS
#29Earlier quoted context omitted.
The entire point of @extend is so that you don't get the extreme code duplication of mixins. I can't speak authoritatively on LESS since I stopped using it a long time ago, but what happens when you apply that `.media` pattern to another selector? It duplicates all the styles, instead of grouping common selectors into one style definition like @extend does. And the point is even @extend can get bloaty when nested, bu…
It's quite easy to create duplicate styles in the output with mixins - the compiler isn't that smart yet, do placeholders avoid all of that? I haven't seen a lot of comparisons or examples that really drive it home so far. I'm actually working on a css post-processor script that optimizes css output. Grouping styles in the most efficient way possible is quite tricky.
Re: OOCSS + Sass = The best way to CSS
#30Earlier quoted context omitted.
The entire point of @extend is so that you don't get the extreme code duplication of mixins. I can't speak authoritatively on LESS since I stopped using it a long time ago, but what happens when you apply that `.media` pattern to another selector? It duplicates all the styles, instead of grouping common selectors into one style definition like @extend does. And the point is even @extend can get bloaty when nested, bu…
It's quite easy to create duplicate styles in the output with mixins - the compiler isn't that smart yet, do placeholders avoid all of that? I haven't seen a lot of comparisons or examples that really drive it home so far. I'm actually working on a css post-processor script that optimizes css output. Grouping styles in the most efficient way possible is quite tricky.