Usage
Sometimes it can be a pain writing out padding & margin responsively using CSS, which is why we have included handy utility classes to make things easier.
Notation:
- You can target the margin util classes by using
m{side}-{breakpoint}-{number}
. - The side being is optional and is notated with t, b, l, r, x or y.
- The breakpoint is also optional and would be be one of our five breakpoints and the amount ranging from 1 to 5.
- You can target the padding util classes by using
p{side}-{breakpoint}-{number}
.
Properties:
Class
Side (optional)
Space
{p} padding
{m} margin
{} All sides
{t} top
{r} right
{b} bottom
{l} left
{x} horizontal
{y} vertical
{1} 0.5rem
{2} 0.75rem
{3} 1rem
{4} 2rem
{5} 3rem