Home

Awesome

Griss cells order

Cells order module for Griss.

Overview

Extends Griss by adding a set of classes that allows to change the default order of each cell, with three available breakpoints to make adjustments at different screen widths.

Key features:

Installation

Install it using npm:

npm install griss-cells-order

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

<link href="griss-cells-order.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 the push or pull classes.

The push class —i.e. gs-Grid-cell--push(1/2)— will move cells to the right while the pull class —i.e. gs-Grid-cell--pull(2/3)— will move cells to the left.

To define the size of each pull or push you can choose any fraction from halves to sixths. If you need to return to the original order you can use the value none represented as n —i.e. gs-Grid-cell--push(n).

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--pull(1/2)@m.

Examples

Some basic examples:

For more examples, please check out the test page.

Available classes

Base
Breakpoints

n stands for “none” and 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.