-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathgrid.css
30 lines (29 loc) · 805 Bytes
/
grid.css
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
@media (min-width: 40em) { /* 40 × 16px = 640px */
.grid {
margin: 0 -0.75em;
}
[class*="grid__col--"] {
display: inline-block;
padding: 0 0.75em;
vertical-align: top;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box; /* Enables the use of padding without breaking the grid */
}
.grid[class*="grid__col--"] {
margin: 0;
padding: 0;
}
.grid__col--20 { width: 20%; }
.grid__col--25 { width: 25%; }
.grid__col--30 { width: 30%; }
.grid__col--33 { width: 33%; }
.grid__col--40 { width: 40%; }
.grid__col--50 { width: 50%; }
.grid__col--60 { width: 60%; }
.grid__col--67 { width: 67%; }
.grid__col--70 { width: 70%; }
.grid__col--75 { width: 75%; }
.grid__col--80 { width: 80%; }
.grid__col--100 { width: 100%; }
}