Flexbox-based grid that has modifiers for gutters, equal column heights and different alignments. Grid cells are sized separately with sizing utilities.
Grid
: base container classGrid--fit
: modifier to equally distribute cellsGrid--equalHeight
: modifier to make cells in a row the same heightGrid--alignCenter
: modifier to align cells horizontally centerGrid--alignMiddle
: modifier to align cells vertically centerGrid-cell
: child of Grid
A grid cell
Another grid cell
<div class="Grid Grid--fit Grid--withGutter">
<div class="Grid-cell">
<p class="u-pad" data-bg="fill">A grid cell</p>
</div>
<div class="Grid-cell">
<p class="u-pad" data-bg="fill">Another grid cell</p>
</div>
</div>