// Before - Support only single argment.
body {
@include font-size(16px); // Ok
@include font-size(16px !important); // No
@include margin(10px); // OK
@include margin(10px 50px 20px 5px); // No
}
// After - Support list argment.
body {
@include font-size(16px); // Ok
@include font-size(16px !important); // Ok
@include margin(10px); // OK
@include margin(10px 50px 20px 5px); // Ok
}
- Include default values in results.
Responding to small devices and accessibility.
// input
body {
@include font-size(16px !important);
}
// Add default values
body {
font-size: 1em !important;
}
- Option System - Wiki:Options
- Global: Setting it as a variable changes the default value of the whole.
- Scoped: It is provided as an argument(
map
type) to the function, and when used, applies only to the current value.
- Options
unit
: Unit of result (each
or Units
)
max
: Limit max size (null
or Length
)
limit
: How to limit it. (size
or break
)