pgrid

1.0.0 • Public • Published

Pgrid

Simple flexbox grid system implemented in postcss

What's inside?

Pgrid is made of 2 parts: the grid and the cell. Grids can be column based or row based and support as many nested grids as you want.

Pgrid is built with a functional CSS aproach in mind.

How to use Pgrid

Simple three column grid

<div class="grid row justify-start wrap">
  <div class="cell four">
    <h1>This is a cell</h2>
  </div>
  <div class="cell four">
    <h1>This is a cell</h2>
  </div>
  <div class="cell four">
    <h1>This is a cell</h2>
  </div>
</div>

Responsive three column grid

<div class="grid xs-column sm-column md-row justify-start wrap">
  <div class="cell xs-twelve sm-twelve md-six mn-four">
    <h1>This is a cell</h2>
  </div>
  <div class="cell xs-twelve sm-twelve md-six mn-four">
    <h1>This is a cell</h2>
  </div>
  <div class="cell xs-twelve sm-twelve md-six mn-four">
    <h1>This is a cell</h2>
  </div>
</div>

Readme

Keywords

none

Package Sidebar

Install

npm i pgrid

Weekly Downloads

0

Version

1.0.0

License

ISC

Last publish

Collaborators

  • pburris