Personal 12 columns mobile first grid system based on flexbox and written in PostCSS. This project is largely inspired by :
- Simply add flex_grid.css to your workflow.
- You can also add the minified production version (flex_grid.min.css) for better performances.
The columns classes system follow the bootstrap grid naming convention :
- col-xs-6 (640 pixels)
- col-sm-6 (768 pixels)
- col-md-6 (1024 pixels)
- col-lg-6 (1280 pixels)
- col-xs-offset-3 (640 pixels)
- col-sm-offset-3 (768 pixels)
- col-md-offset-3 (1024 pixels)
- col-lg-offset-3 (1280 pixels)
- col-xs (640 pixels)
- col-sm (768 pixels)
- col-md (1024 pixels)
- col-lg (1280 pixels)
Add noGutter class to your to avoid gutters.
- col-fixed-xs-3 (640 pixels)
- col-fixed-sm-3 (768 pixels)
- col-fixed-md-3 (1024 pixels)
- col-fixed-lg-3 (1280 pixels)
- .start-md
- .center-md
- .end-md
- .top-md
- .middle-md
- .bottom-md
- Add .spaceBetween to
- Add .spaceAround to
- Add .center to
- first-xs (640 pixels)
- first-sm (768 pixels)
- first-md (1024 pixels)
- first-lg (1280 pixels)
Add equalHeight class to your for the direct children to inherit from the same height.
Add on of the following classes to your :
- fullHeight-xs (640 pixels)
- fullHeight-sm (768 pixels)
- fullHeight-md (1024 pixels)
- fullHeight-lg (1280 pixels)
Hidden columns
- col-hidden-xs (640 pixels)
- col-hidden-sm (768 pixels)
- col-hidden-md (1024 pixels)
- col-hidden-lg (1280 pixels)