Part 3Advanced Mixins
You learned how to create a mixin in Task 8, Keeping Code Clean with Mixins. However, mixins are far more powerful than what was described there. In this part, you’ll dive deeper into all the features of mixins.
You’ll pass arguments into mixins in Task 14, Adding Mixin Arguments.
Then, you’ll use a couple more argument tricks in Task 15, Using More Mixin Argument Tricks.
In Task 16, Controlling Flow with @if, you’ll control flow through a mixin.
Then, you’ll pass content into a mixin in Task 17, Manipulating @content.
Finally, you’ll discover a common use case for mixins in Task 18, Using Mixins for Cross-Browser Compatibility.
Get Pragmatic Guide to Sass 3 now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.