Grid
Concise comes with a fluid, mobile-first grid system. Once the viewport of a device is larger than 768px, the rows of the grid display with 16 columns. Getting started with the grid system is as easy as wrapping any of the .column-*
classes inside of a .row
class.
Adding Gutters
By default, no gutters are added onto any of the grid columns. However, simply adding the class .gutters
to your .row
class provides a 2% gutter to each of the columns, except for the first one.
Nesting
You also can nest grids inside of each other by nesting a .row
class inside of a column.
Column Options
Column Number
Concise comes with a 16-column grid by default. The $column-number
variable can be changed in the /helpers/_variables.scss
file to accommodate any number of columns you would like.
If you do not use a preprocessor, Concise has pre-built CSS files for a 12 or 24-column grid. These files include proper styling for the grid columns with and without gutters, as as push and pull options.
Column Prefix
By default, the prefix for columns is .column-
. The $column-prefix
variable can be changed in the /helpers/_variables.scss
file to accommodate any prefix you would like. Many people like their column prefix to be .col-
or .span
.
Gutter Amount
The default gutter size for the .gutters
class is 2%. However, the $gutters
variable can be changed in the /helpers/_variables.scss
to accommodate any gutter size you would like.
Push and Pull
By using .push-*
and .pull-*
classes, you can easily manage positioning of grid columns. The number you use after a push or pull class is correlated with the column size. For example, .push-6
has the same size as .column-6
, which is 37.5%.
Push
Using the .push-*
class allows you to push a column to the left.
Pull
Using the .pull-*
class allows you to pull a column from the right.
I floated this column to the right to prevent it from laying outside of the preview box. You do not have to do that to every column that you pull.