Use following classes to add extra spacing.
Examples display outside spacing (margin) on the left and inside spacing (padding) on the right.
All around spacing
Vertical spacing
Directional vertical spacing
- use classes
ecl-u-mt-*orecl-u-pt-*to add spacing only on top - use classes
ecl-u-mb-*orecl-u-pb-*to add spacing below.
Horizontal spacing
Directional horizontal spacing
- use classes
ecl-u-ml-*orecl-u-pl-*to add spacing only on the start - use classes
ecl-u-mr-*orecl-u-pr-*to add spacing on the end
Other spacing
- use classes
ecl-u-m*-autoto set margin auto (horizontal, vertical or any direction) - use classes
ecl-u-m*-noneorecl-u-p*-noneto set margin or padding to zero.
Responsive spacing
Add the breakpoint before spacing size to display it only with corresponding screen size (works for all kind of spacing ahead).
Examples:
- spacing
lon screen size >= breakpointmecl-u-ma-m-lecl-u-pa-m-l - horizontal spacing
2xlon screen size >= breakpointlecl-u-mh-l-2xlecl-u-ph-l-2xl - no left spacing on screen size >= breakpoint
secl-u-ml-s-noneecl-u-pl-s-none