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
This would improve the output if one uses OOCSS or SMACSS, as one can put layout rules into a placeholder class and theme rules into a “real” class without adding unnecessary code when there is just one theme. If there is more than one theme it works as expected.
The text was updated successfully, but these errors were encountered:
If we take a look at the testing that came out of the nested media query debate it shows that micro optimizations like these don't have much of an effect, on rendering time or gzipped page weight. And that was with whole @media declarations.
As a kid who used to optimize animated gifs by hand I feel your pain, but I believe this is a case where adding complexity to Sass's code won't have any real benefits.
We plan to implement an optimizer at some point. When we do, this is an example of a obvious optimization that would be performed whether or not the output was generated via the use of placeholders/extend.
It would be great if Sass could check if a placeholder class is extended just once and if that’s the case work like @include instead of @extend.
This currently compiles to:
It would be great if it compiles to:
This would improve the output if one uses OOCSS or SMACSS, as one can put layout rules into a placeholder class and theme rules into a “real” class without adding unnecessary code when there is just one theme. If there is more than one theme it works as expected.
The text was updated successfully, but these errors were encountered: