In Sass, a " hybrid macro (a mixin) " same CSS code blocks is often used to handle a plurality of places . Mixed macro, very similar in JavaScript function, we can call it "Sass in function."
1. Mix macro definition call:
In Sass, we use "@mixin" to define a macro mix , then use the "@include" to call a macro mix.
Note: the so-called "macro" refers to the reusable blocks of code.
2. Mix the macro parameters:
Sass macro can be defined without parameters, a macro can be defined with parameters (This parameter may be one, or may be a plurality)
With default parameter values, if it does not pass parameter values is to use the default parameters, pass parameters, that is, pass over the parameters .