topcoat-grid
v0.1.0
Published
simple grid built on css flex
Downloads
6
Readme
Topcoat Grid
Grid system built on top of flex.
How to use
<div class="topcoat-grid__row">
<div class="topcoat-grid__column--1">
1 Column
</div>
</div>
<div class="topcoat-grid__row">
<div class="topcoat-grid__column--6">
6 Columns
</div>
</div>
<div class="topcoat-grid__row">
<div class="topcoat-grid__column--2 topcaot-grid__column-offset--6">
2 Columns Offset 6
</div>
</div>
There are also classes that fill the available space automatically.
<div class="topcoat-grid__row">
<div class="topcoat-grid__column--auto">
Auto Column
</div>
<div class="topcoat-grid__column--auto">
Auto Column
</div>
<div class="topcoat-grid__column--auto">
Auto Column
</div>
</div>
Inspiration
- flexbox-grid by @zeMicro
- ptb2.me/flexgrid
- codepen.io/marcolago/pen/lqGFb
- philipwalton.github.io/solved-by-flexbox/demos/grids
- davidwalsh.name/stylus-grid
Development
Make your changes in src/grid.styl
and run grunt
to compile css/grid.css
and css/grid.min.css