Cornflex

Modern CSS flexbox grid framework

v1.4 | npm | github | cornflex.css | cornflex.min.css 8ko

Container

Wrap your content based on the breakpoint, become fluid when smaller to the breakpoint value.

.container(-sm|-md|-lg)

ex:

Grid

Let you define a grid of row containing columns with a specific size.

.row .col(-sm|-md|-lg) -> use remaining space
.row .col-[1..12](-sm|-md|-lg) -> limit to n/12

ex:

1
2
3
4

Gutter

Add space based on the gutter value between columns.

.row-gutter

ex:

1
2
3
4

Reverse

Reverse order for right-to-left languages.

.row-rtl

ex:

1
2
3
4

Justify

Specify how to horizontally align cols in row.

.row-[left|center|right|between|around](-sm|-md|-lg)

ex:

1
2

Align

Specify how to vertically align cols in row.

.row-[top|middle|bottom](-sm|-md|-lg)

ex:

1
2
3

Self-align

Individually specify how to vertically align cols in row.

.col-[top|middle|bottom](-sm|-md|-lg)

ex:

1
2
3

Order

Re-order cols in row (dot not change the `dom`)

.col-nth-[1..12](-sm|-md|-lg)

ex:

1
2
3
4

Shift

Shift cols using the remaining space or to specific offset.

.col-shift(-sm|-md|-lg)         -> use the remaining space
.col-shift-[0..11](-sm|-md|-lg) -> to specific col offset

ex:

1
2
3

Hide

Hide cols from specific breakpoint.

.col-hide(-sm|-md|-lg)

ex:

1
2
3
Fork me on GitHub