@@ -8,9 +8,10 @@ In `plugins/css-grid/index.js` you'll find an example of a plugin that adds new
88
99![ ] ( https://user-images.githubusercontent.com/4323180/37525015-fb5c78f2-2901-11e8-97be-18c66d12bf84.png )
1010
11- It exposes three configuration options:
11+ It exposes four configuration options:
1212
1313- ` grids ` , for specifying all of the grid sizes you'd like to generate
14+ - ` colwidth ` for applying min width for the auto-grid
1415- ` gaps ` , for specifying the gap sizes you'd like to generate
1516- ` variants ` , for specifying which variants to generate
1617
@@ -22,6 +23,7 @@ module.exports = {
2223 // ...
2324 require (' ./plugins/css-grid' )({
2425 grids: [2 , 3 , 5 , 6 , 8 , 10 , 12 ],
26+ colwidth: [5 , 10 , 15 , 20 ], // in REM
2527 gaps: {
2628 0 : ' 0' ,
2729 4 : ' 1rem' ,
@@ -39,6 +41,7 @@ The plugin generates the following sets of classes:
3941
4042- ` .grid ` , for setting ` display: grid ` on an element
4143- ` .grid-columns-{size} ` , for specifying the number of columns in the grid
44+ - ` .auto-grid-{size} ` , for specifying the minimum width of the columns generated with auto-grid
4245- ` .grid-gap-{size} ` , for specifying the size of the gap between columns/rows
4346- ` .col-span-{columns} ` , for specifying how wide a cell should be
4447- ` .col-start-{line} ` and ` .col-end-{line} ` , for specifying a cell's start and end points explicitly (useful for reordering cells or leaving gaps)
0 commit comments