1.0.2 • Published 4 years ago

@wponion/flexboxgrid2 v1.0.2

Weekly downloads
5
License
MIT
Repository
-
Last release
4 years ago

FlexBoxGrid-2

npm version

Modern 12 column grid system based on flex property.

Documentation

Motivation

Forked from evgenyrodionov/flexboxgrid2 because original project seems to be abandoned for me. also i required a bit more change to the core. so i forked it.

Device Break Points

Device TypeMin WidthMax Width
xs0575px
sm576px767px
md768px991px
lg992px1199px
xl1200px

Grid System CSS Classes

Class NameUsage
wpo-containerFixed Width Container
wpo-container-fluidFull Width Container
wpo-rowColumn Row
wpo-col-xs-*Extra small Device Columns from wpo-col-xs to wpo-col-xs-12
wpo-col-sm-*Small Device Columns from wpo-col-sm to wpo-col-sm-12
wpo-col-md-*Medium Device Columns from wpo-col-md to wpo-col-md-12
wpo-col-lg-*Large Device Columns from wpo-col-lg to wpo-col-lg-12
wpo-col-xl-*Extra Large Device Columns from wpo-col-xl to wpo-col-xl-12
wpo-col-xs-offset-*Offset a div in Extra small Device Columns from wpo-col-xs to wpo-col-xs-12
wpo-col-sm-offset-*Offset a div in Small Device Columns from wpo-col-sm to wpo-col-sm-12
wpo-col-md-offset-*Offset a div in Medium Device Columns from wpo-col-md to wpo-col-md-12
wpo-col-lg-offset-*Offset a div in Large Device Columns from wpo-col-lg to wpo-col-lg-12
wpo-col-xl-offset-*Offset a div in Extra Large Device Columns from wpo-col-xl to wpo-col-xl-12
wpo-reverseReversing. Works with wpo-row and wpo-col-*

Utilites CSS Class

Class NameUsage
wpo-no-guttersNo Padding & No Margin used on wpo-row div's
wpo-no-paddingNo Padding
wpo-no-marginNo Margin
wpo-hidden-*Sets Display None
wpo-visible, wpo-*-visibleCSS Visibility Set to Visible
wpo-invisible, wpo-*-invisibleCSS Visibility Set to Hidden
wpo-float-right, wpo-float-*-rightCSS Visibility Set to Visible
wpo-float-left, wpo-float-*-leftCSS Visibility Set to Visible
wpo-float-none, wpo-float-*-noneCSS Visibility Set to Hidden
wpo-start-*Add classes to align elements
wpo-center-*Add classes to align elements
wpo-end-*Add classes to align elements
wpo-top-*Add classes to align elements
wpo-middle-*Add classes to align elements
wpo-bottom-*Add classes to align elements
wpo-around-*Add classes to distribute the contents of a row or column.
wpo-between-*Add classes to distribute the contents of a row or column.
wpo-first-*Add classes to reorder columns.
wpo-last-*Add classes to reorder columns.
wpo-initial-order-*Add classes to reorder columns.

Examples

Demo

Installation

with npm

npm install --save @wponion/flexboxgrid2

License

This project is licensed under MIT. See the LICENSE file for more info.

Backed By

DigitalOceanJetBrainsTidio Chat