Home

Awesome

Griss cells

Cells module for Griss.

Overview

Extends Griss by adding a set of cell classes based on fractions —from halves to sixths— with three available breakpoints to adjust the size at different screen widths.

Key features:

Installation

Install it using npm:

npm install griss-cells

Or simply download the minified file and include it into your project:

<link href="griss-cells.min.css" rel="stylesheet" />

You will also need to install Griss core module.

Usage

Make sure you have read Griss core documentation first.

Combine the base cell class —gs-Grid-cell— with the class that defines the cell size that you need for your content —i.e. gs-Grid-cell--size(1/2).

To define the size of each cell you can choose any fraction from halves to sixths or use only the base cell class if you want it to be as wide as its container.

If you need to make adjustments at different screen widths use any of the available breakpoint suffixes: @s, @m and @l —i.e. gs-Grid-cell--size(1/2)@m.

Examples

Some basic examples:

For more examples, please check out the test page.

Available classes

Base
Breakpoints

n/n should be replaced with an available fraction.

Browser support

The following browsers are supported:

IE8 does not support media queries.

Contributing

Contributions are welcome! Please, read the contribution guidelines first.

License

Released under the MIT license.