Package Exports
- aleut.utilities.spacing-responsive
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (aleut.utilities.spacing-responsive) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Spacing-responsive
The aleutcss spacing-responsive
extends utilities.spacing
by adding breakpoint-based classes for
nudging margins and paddings. It uses utilities.spacing-responsive
for generating the breakpoints.
Install using npm:
$ npm install --save-dev aleut.utilities.spacing-responsive
Usage
The conventions used in the classes in the spacing module are as follows:
.u-(m|p)(t|r|b|l|h|v)(-negative)(-tiny|-small|-large|-huge|-none)(@breakpoint) {}
E.g.:
.u-p@m
will give you a padding around the whole object (24px as default) on the @m-size.u-mh-huge@l
will give you a huge (96px as default) horizontal (h
) margin (m
) on the @l-size..u-mb-none@s
will give you no margin (m
) bottom (b
) at the @s-size.
Enable options
To enable the optional classes set the variables to true
before you import
the _utilities.spacing-responsive.scss
-file.
$u-m-responsive: false !default;
$u-m-responsive-tiny: false !default;
$u-m-responsive-small: false !default;
$u-m-responsive-large: false !default;
$u-m-responsive-huge: false !default;
$u-m-responsive-negative: false !default;
$u-m-responsive-negative-tiny: false !default;
$u-m-responsive-negative-small: false !default;
$u-m-responsive-negative-large: false !default;
$u-m-responsive-negative-huge: false !default;
$u-m-responsive-none: false !default;
$u-p-responsive: false !default;
$u-p-responsive-tiny: false !default;
$u-p-responsive-small: false !default;
$u-p-responsive-large: false !default;
$u-p-responsive-huge: false !default;
$u-p-responsive-none: false !default;