An Interest In:
Web News this Week
- April 19, 2024
- April 18, 2024
- April 17, 2024
- April 16, 2024
- April 15, 2024
- April 14, 2024
- April 13, 2024
May 4, 2015 12:45 pm GMT
Original Link: http://www.smashingmagazine.com/2015/05/04/extending-in-sass-without-mess/
Extending In Sass Without Creating A Mess
The @extend
directive in Sass is a powerful directive that facilitates the sharing of rules and relationships between selectors. However, it can produce undesirable side effects if it is not carefully implemented. Thankfully, there are many strategies for using @extend
effectively that can prevent these side effects and produce clean, organized CSS.
By examining @extend
in detail and exploring these various strategies, you can accurately predict exactly what happens when you use @extend
, and make more informed decisions about when to use a @mixin
and when to use @extend
, to ensure optimal organization and to restrict unused styles in your style sheets.
The post Extending In Sass Without Creating A Mess appeared first on Smashing Magazine.
Original Link: http://www.smashingmagazine.com/2015/05/04/extending-in-sass-without-mess/
Share this article:
Tweet
View Full Article
Smashing Magazine
Smashing Magazine delivers useful and innovative information to Web designers and developers.More About this Source Visit Smashing Magazine