Description
A series of design column spanning classes (for flex/float/other), which allow nesting and have responsive helpers.
Setup
The required $structure
map (Setup).
Output
Based on the reference config mentioned in this guide, we'd get the following in our CSS:
Note: Each colspan-
also includes a rule set to include a CSS variable - this allows nesting of CSS colspans and CSS grid/col-
classes. See nesting.
Demos
The CSS for these docs contains a .colspan-demo
class to add some color, spacing and to display the classname of the columns.
Responsive
The breakpoints helpers are breakpoint up - so col-4@lg
would apply a 4 column spanning at lg
and every breakpoint larger than that:
Alternative grids
Need a random 10 column grid?
Need a random 24 column grid?
Nesting
Nesting .colspan
and .grid/.col-x
(docs):
Notes
As you can see, this generates a lot of CSS classes - you will want to purge your CSS of unused classes to remove any of these that you don't use.
Alternatively, if you don't want to generate the CSS classes, see CSS-Class-Generation.