Chapter 6. Advanced Less Coding
In this chapter, you will learn:
- Giving your rules importance with the
!importantstatement - Using mixins with multiple parameters
- Using duplicate mixin names
- Building a switch to leverage argument matching
- Avoiding individual parameters to leverage the
@argumentsvariable - Using the
@rest...variable to use mixins with a variable number of arguments - Using mixins as functions
- Passing rulesets to mixins
- Using mixin guards (as an alternative for the
if…elsestatements) - Building loops leveraging mixin guards
- Applying guards to the CSS selectors
- Creating color contrasts with Less
- Changing the background color dynamically
- Aggregating values under a single property