FPAWIP Grid Reference/Examples

Grid Definition Classes

.grid .grid__item .grid__box

The .grid class defines the grid context which will be the parent fot the .grid__items.

The .grid__item class defines the single grid element and can directly contains the element content but you should not mess with padding on this elements.

The optional .grid__box class defines the inner content of grid element and will be the context for the element content. You can do whathever you want with margin and padding o this elements.

Responsive Size Classes

Size classes are defined per breakpoint and work only into the defined breakpoint, so you can develop desktop-first or mobile-first as you prefer.
Breakpoints are large, medium, nml* (nomensland), small and micro*. You can define them in the _mq.scss file.

If a .grid__item does not have a size class applied it will always be large as the container.

* The nml breakpoint is an optional one that overlaps between the small and medium ones.
The micro breakpoint, when used, overrides the small one. If you want you can rename the breakpoint size classes name to better fit your needs.

Every size class has many modifiers to define the width of the element.
The grid could be used with 12, 10, 6, 5, 4, 3 and 2 columns and with a main-sidebar “golden ratio”, and you can mix the widths without define how many columns form the grid.
For example, if you want an element to be 1 half of the grid container, you can define an element as large--6-12 or large--1-2, or every other class with a 1/2 ratio.

Default

large--1-12 / medium--1-12 / nml--1-10
large--11-12 medium--11-12 nml--9-10
large--2-12 / medium--1-6 / nml--2-10
large--10-12 / medium--5-6 / nml--8-10
large--3-12 / medium--1-4 / nml--3-10
large--9-12 / medium--3-4 / nml--7-10
large--4-12 / medium--1-3 / nml--4-10
large--8-12 / medium--2-3 / nml--6-10
large--5-12 / medium--5-12 / nml--6-10
large--7-12 / medium--7-12 / nml--4-10
large--6-12 / medium--1-2 / nml--7-10
large--6-12 / medium--1-2 / nml--3-10
large--8-11 / medium--8-11 / nml--2-3
large--3-11 / medium--3-11 / nml--1-3
large--5-8 / medium--5-8 / nml--2-3
large--3-8 / medium--3-8 / nml--1-3
No size classes defined

.grid__item only Vs .grid__item .grid__box

grid__item without a grid__box
grid__item without a grid__box
grid__item without a grid__box
grid__item with a grid__box
grid__item with a grid__box
grid__item with a grid__box

.gutterless

grid__item with a grid__box
grid__item with a grid__box
grid__item with a grid__box
grid__item with a grid__box
grid__item with a grid__box
grid__item with a grid__box
grid__item with a grid__box
grid__item with a grid__box
grid__item with a grid__box
grid__item with a grid__box
grid__item with a grid__box

.rowgapless

grid__item with a grid__box
grid__item with a grid__box
grid__item with a grid__box
grid__item with a grid__box
grid__item with a grid__box
grid__item with a grid__box
grid__item with a grid__box
grid__item with a grid__box
grid__item with a grid__box
grid__item with a grid__box
grid__item with a grid__box

Both .gutterless and .rowgapless

grid__item with a grid__box
grid__item with a grid__box
grid__item with a grid__box
grid__item with a grid__box
grid__item with a grid__box
grid__item with a grid__box
grid__item with a grid__box
grid__item with a grid__box
grid__item with a grid__box
grid__item with a grid__box
grid__item with a grid__box

Nested Grids

grid__item without a grid__box
grid__item without a grid__box
grid__item without a grid__box
grid__item without a grid__box
grid__item without a grid__box
grid__item without a grid__box
grid__item without a grid__box
rowgapless grid
grid__item without a grid__box
grid__item without a grid__box
grid__item without a grid__box
grid__item without a grid__box
grid__item without a grid__box
grid__item without a grid__box
grid__item without a grid__box
grid__item with a grid__box
grid__item with a grid__box
grid__item with a grid__box
grid__item with a grid__box
grid__item with a grid__box
grid__item with a grid__box
grid__item with a grid__box

Optional --min Versions On .grid__item Sizes (Flexbox Only)

Minimum 1/3 (large and medium breakpoint)
Minimum 1/3 (large and medium breakpoint)
Minimum 1/3 (large and medium breakpoint)
Minimum 1/2 (large and medium breakpoint)
Minimum 1/2 (large and medium breakpoint)
Minimum 1/2 (large and medium breakpoint)

.set-of-[x] Modifier(Flexbox Only)

.grid__item takes all the available space but only in the first row
.grid__item takes all the available space but only in the first row
.grid__item takes all the available space but only in the first row
.grid__item takes all the available space but only in the first row
.grid__item takes all the available space but only in the first row
.grid__item takes all the available space but only in the first row
.grid__item takes all the available space but only in the first row
.grid__item takes all the available space but only in the first row
.grid__item takes all the available space but only in the first row
.grid__item takes all the available space but only in the first row

Symmetric Gutters (Forced)

Gutters (margin and padding) on both sides
Gutters (margin and padding) on both sides
Gutters (margin and padding) on both sides
Gutters (margin and padding) on both sides
Gutters (margin and padding) on both sides
Gutters (margin and padding) on both sides
Gutters (margin and padding) on both sides
Gutters (margin and padding) on both sides
Gutters (margin and padding) on both sides
Gutters (margin and padding) on both sides
Gutters (margin and padding) on both sides

Nested Grids With Messed Symmetric Gutters

grid__item without a grid__box
grid__item without a grid__box
grid__item without a grid__box
grid__item without a grid__box
grid__item without a grid__box
grid__item without a grid__box
grid__item without a grid__box
grid__item with a grid__box
grid__item with a grid__box
grid__item with a grid__box
grid__item with a grid__box
grid__item with a grid__box
grid__item with a grid__box
grid__item with a grid__box

Equal Heights Vs. Auto Heights

Default behavior
grid__item child the same height of the siblings

Additional line for testing purposes only
Default behavior
grid__item child the same height of the siblings
Default behavior
grid__item child the same height of the siblings
.auto-heights on grid element
grid__item child with independent height than the siblings

Additional line for testing purposes only
.auto-heights on grid element
grid__item child with independent height than the siblings
.auto-heights on grid element
grid__item child with independent height than the siblings
Default behavior
grid__item child the same height of the siblings

Additional line for testing purposes only
Default behavior
grid__item child the same height of the siblings
.auto-height on grid__item element
grid__item child with independent height than the siblings