Margin
←Sometimes your elements just need a little space on the outside. Use margin to separate the block from things outside it. Here are utility classes for all cardinal directions, plus combined horizontal and vertical helpers.
Example: ma-t_s
— where the first letter m
obviously stands for margin, while -t
is for top and _s
for the small size.
Syntax:
.m{-direction}{_size}
SCSS:
_margin.scss
Top
ma-t_xs
ma-t_s
ma-t_m
ma-t_l
Right
ma-r_xs
ma-r_s
ma-r_m
ma-r_l
Bottom
ma-b_xs
ma-b_s
ma-b_m
ma-b_l
Left
ma-l_xs
ma-l_s
ma-l_m
ma-l_l
Vertical
ma-v_xs
ma-v_s
ma-v_m
ma-v_l
Horizontal
ma-h_xs
ma-h_s
ma-h_m
ma-h_l