Spacing
Spacing helpers are useful for modifying the padding and margin of an element.
How It Works
These classes can be applied using the following format u-{property}{direction}-{size}.
The property applies the type of spacing:
m- applies margin.p- applies padding.
The direction designates the side, the property applies to:
t- applies the spacing formargin-toporpadding-top.r- applies the spacing formargin-rightorpadding-right.b- applies the spacing formargin-bottomorpadding-bottom.l- applies the spacing formargin-leftorpadding-left.h- applies the spacing for both*-leftand*-right.v- applies the spacing for both*-topand*-bottom.- If left empty, applies the spacing for the property in all directions. (Ex:
u-p,u-m)
The size controls the increment of the property:
xxs- setsmarginorpaddingto 4px.xs- setsmarginorpaddingto 8px.sm- setsmarginorpaddingto 12px.- If left empty, sets
marginorpaddingto 20px. (Ex:u-pt,u-mt) lg- setsmarginorpaddingto 32px.xl- setsmarginorpaddingto 40px.xxl- setsmarginorpaddingto 48px.