1.0.3 • Published 4 years ago

d-flex v1.0.3

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

d-flex

Easy CSS positioning

Documentation

To start using d-flex, add the d-flex class to your parent element. This should usually be a div. Example:

<div class="d-flex"></div>

This div will now be flexified. You can start adding the following classes to it now.

ClassDescription
.fillAdds flex: 1; to the element to fill up the space (if the parent is also d-flex)
.text-rightMakes the text-align be right (useful for positioning stuff to the right)
.columnTurns the parent flex direction into a column.
.justify-centerJustifies the d-flex content into the center (along the main axis)
.align-centerMoves the content into the center on the opposite axis to the main axis (e.g. y => x)
.child-growMakes each direct child fill up according to their content
.child-fillMakes each direct child be equal width and fill up the parent's width/height depending on axis
1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago