Grid
The grid is based on flexbox and uses an outer .grid
class to define a horizontal grid container. From there, a number of .grid__col
column elements can be added. Per default until further classes have been added, all column elements are given even widths – below is shown 7 columns with even widths at all screen sizes. The grid uses set gutters by default.
To ensure proper responsive behavior, each grid column is usually given extra classes that correlate to the set breakpoints screen-xs
, screen-sm
, screen-md
, screen-lg
, screen-xl
and screen-xxl
– NOT screen-sm-plus
.
For example purposes .rm-this-class--grid-example
is added here to visualize the grid-items. This should be removed if html is copied from example.
Grid
Component status: WIP
The grid is based on flexbox and uses an outer .grid
class to define a horizontal grid container. From there, a number of .grid__col
column elements can be added. Per default until further classes have been added, all column elements are given even widths – below is shown 7 columns with even widths at all screen sizes. The grid uses set gutters by default.
To ensure proper responsive behavior, each grid column is usually given extra classes that correlate to the set breakpoints screen-xs
, screen-sm
, screen-md
, screen-lg
, screen-xl
and screen-xxl
– NOT screen-sm-plus
.
For example purposes .rm-this-class--grid-example
is added here to visualize the grid-items. This should be removed if html is copied from example.
Grid with column widths
The columns now have responsive widths
Grid with column widths
Component status: WIP
The columns now have responsive widths
Grid without gutter
The grid gutters are set to 0 with the class .no-gutter
.
Grid without gutter
Component status: WIP
The grid gutters are set to 0 with the class .no-gutter
.