3 ms·
Couldn't agree more. I'm actually starting to become very skeptical of my own use of compass and sass. SASS makes it extremely easy to generate loads of really
by bobfunk 15y ago
Couldn't agree more. I'm actually starting to become very skeptical of my own use of compass and sass.
SASS makes it extremely easy to generate loads of really complex selectors that are very tightly coupled to the HTML they are styling.
Mixins also makes it very easy to end up with badly bloated CSS. When a mixin defines a gradient and you apply it to different selectors, you'll get the whole bunch of browser prefixed gradient declarations repeated in lots of different places of your final css. A simple class with the gradient defined used in the HTML will make the final CSS much leaner.
Personally I've decided to limit my use of SASS/compass far more and follow a style much closer to what's described in this article.