@@ -8,9 +8,10 @@ In `plugins/css-grid/index.js` you'll find an example of a plugin that adds new
8
8
9
9
![ ] ( https://user-images.githubusercontent.com/4323180/37525015-fb5c78f2-2901-11e8-97be-18c66d12bf84.png )
10
10
11
- It exposes three configuration options:
11
+ It exposes four configuration options:
12
12
13
13
- ` grids ` , for specifying all of the grid sizes you'd like to generate
14
+ - ` colwidth ` for applying min width for the auto-grid
14
15
- ` gaps ` , for specifying the gap sizes you'd like to generate
15
16
- ` variants ` , for specifying which variants to generate
16
17
@@ -22,6 +23,7 @@ module.exports = {
22
23
// ...
23
24
require (' ./plugins/css-grid' )({
24
25
grids: [2 , 3 , 5 , 6 , 8 , 10 , 12 ],
26
+ colwidth: [5 , 10 , 15 , 20 ], // in REM
25
27
gaps: {
26
28
0 : ' 0' ,
27
29
4 : ' 1rem' ,
@@ -39,6 +41,7 @@ The plugin generates the following sets of classes:
39
41
40
42
- ` .grid ` , for setting ` display: grid ` on an element
41
43
- ` .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
42
45
- ` .grid-gap-{size} ` , for specifying the size of the gap between columns/rows
43
46
- ` .col-span-{columns} ` , for specifying how wide a cell should be
44
47
- ` .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