diff --git a/docs/layout/grid.md b/docs/layout/grid.md index e69de29bb..b46b0be15 100644 --- a/docs/layout/grid.md +++ b/docs/layout/grid.md @@ -0,0 +1,104 @@ +--- +toc: false +theme: dashboard +--- + +# Layout: grid + +The CLI provides a set of grid CSS classes to help layout page content. These grids pair well with the [dashboard](./themes#dashboard) theme and the [card](./card) class. This page uses both. + +To see these examples change dynamically, adjust the page width or collapse the sidebar on the left. + +## Classes + +The following CSS classes are provided for grid layouts: + +Class | Description +---------------- | ------------ +`grid` | specify a grid layout for an element +`grid-cols-2` | restrict grid to two columns +`grid-cols-3` | restrict grid to three columns +`grid-cols-4` | restrict grid to four columns +`grid-colspan-2` | specify that a grid cell spans two columns +`grid-colspan-3` | specify that a grid cell spans three columns +`grid-colspan-4` | specify that a grid cell spans four columns +`grid-rowspan-2` | specify that a grid cell spans two rows +`grid-rowspan-3` | specify that a grid cell spans three rows +`grid-rowspan-4` | specify that a grid cell spans four rows + + +## Two column grid + +