Element: [Feature Request] Spacing Utilities

Created on 27 Mar 2018  ·  3Comments  ·  Source: ElemeFE/element

Existing Component

No

Component Name

Layout

Description

Element UI already provides utilities to control the horizontal layout of elements as well as their visibility, but doesn't offer any tools to control the vertical spacing.

It would be nice to also have a set of spacing utilities similar to what Bootstrap 4 is offering https://getbootstrap.com/docs/4.0/utilities/spacing/ to control adjust the spacing (margin & padding) of elements.

Most helpful comment

In addition to layout - it would be useful to have helper utilities for spacing around cards and other items.

All 3 comments

Sorry, we have no plan to support this.

In addition to layout - it would be useful to have helper utilities for spacing around cards and other items.

I ended up solving this by including tachyons-spacing, a lightweight CSS lib which provides a set of responsive padding/margin helpers.

Docs: http://tachyons.io/docs/layout/spacing/

Was this page helpful?
0 / 5 - 0 ratings

Related issues

makunsusu picture makunsusu  ·  3Comments

yuchonghua picture yuchonghua  ·  3Comments

dbskccc picture dbskccc  ·  3Comments

FranzSkuffka picture FranzSkuffka  ·  3Comments

Kingwl picture Kingwl  ·  3Comments