July 2016
Intermediate to advanced
130 pages
2h 11m
English
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.