Spacing
The spacing utility provides styles to alter the spacing (margins and padding) of the element they're applied to.
Structure
All spacing utility classes share the .cwf-$--& and .cwf-$__%--& structure, where:
$is either themarginorpaddingproperty, indicating which property will be modified.%is one of the following directions:left,top,right, orbottom. This indicates the side/direction of the property that will be modified.&is one of the following spacing keywords:auto,zero,third,half,full, ordouble. This indicated the amount of modificating to the specificed property (and optional direction). Theautokeyword cannot be used in conjunction with thepaddingproperty. When used with themarginproperty, the spacing keyword can be prefixed with--negativeto get the negative value of the spacing amount; This cannot be used in conjunction with theautoorzerospacing keywords.
Spacings
The following are the spacing keywords and their respectively values:
auto:autozero:0third:1rem ÷ 3, or0.3333333333remhalf:1rem ÷ 2, or0.5remfull:1remdouble:1rem * 2, or2rem
Examples
Margin
I'm a paragraph with a double bottom margin (.cwf-margin__bottom--double).
I'm a paragraph with a third bottom margin (.cwf-margin__bottom--third).
I'm a regular paragraph.
Padding
I'm a paragraph with full padding (.cwf-padding--full).
I'm a paragraph with double left padding (.cwf-padding__left--double).
I'm a regular paragraph.