- Source:
Methods
spacing-based-attribute($attribute, $size, $factoropt)
Define an attribute based on breakpoint-dependent spacing values. Since this version does not optimize the usage of media queries, please make sure to only use this mixin, if you'll definitely only have one attribute to be defined in multiple breakpoints.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
$attribute |
String | the name of the attribute you want to set |
||
$size |
String | on of the named sized defined in jig's spacing config (sm, l, xxl, ...) |
||
$factor |
Number |
<optional> |
null | if a float factor is provided the value will be multiplied with this factor |
- Source:
- See:
Throws:
error if size is unknown
Example
spacing-based-attribute(margin-top, 'xl', 1.0)