-
Notifications
You must be signed in to change notification settings - Fork 1
/
smartgrid.js
55 lines (52 loc) · 1.5 KB
/
smartgrid.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
var smartgrid = require('smart-grid');
/* It's principal settings in smart grid project */
var settings = {
outputStyle: 'scss', /* less || scss || sass || styl */
columns: 12, /* number of grid columns */
offset: '2.3%', /* gutter width px || % || rem */
mobileFirst: false, /* mobileFirst ? 'min-width' : 'max-width' */
container: {
maxWidth: '1320px', /* max-width оn very large screen */
fields: '30px' /* side fields */
},
breakPoints: {
// lg: {
// width: '1100px', /* -> @media (max-width: 1100px) */
// },
// md: {
// width: '960px'
// },
// sm: {
// width: '780px',
// fields: '15px' /* set fields only if you want to change container.fields */
// },
// xs: {
// width: '560px'
// }
lg: {
width: '1400px', /* -> @media (max-width: 1100px) */
},
md: {
width: '1024px', /* -> @media (max-width: 1100px) */
},
sm: {
width: '960px'
},
xs: {
width: '780px',
fields: '15px' /* set fields only if you want to change container.fields */
},
xss: {
width: '560px'
}
/*
We can create any quantity of break points.
some_name: {
width: 'Npx',
fields: 'N(px|%|rem)',
offset: 'N(px|%|rem)'
}
*/
}
};
smartgrid('./src/scss', settings);