-
Notifications
You must be signed in to change notification settings - Fork 9
/
grid-layouts-v2.css
61 lines (49 loc) · 1.05 KB
/
grid-layouts-v2.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
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
56
57
58
59
60
/* Grid version 2 (at first breakpoint)
========================================================================== */
.v2-Grid--1col > .Grid-cell,
.v2-Grid--3on1 > .Grid-cell--4 {
width: 100%;
}
.v2-Grid--1to3 > .Grid-cell--2,
.v2-Grid--3to1 > .Grid-cell--1 {
width: 75%;
}
.v2-Grid--1to2 > .Grid-cell--2,
.v2-Grid--2to1 > .Grid-cell--1 {
width: 66.666%;
}
.v2-Grid--2col > .Grid-cell {
width: 50%;
}
.v2-Grid--1to2 > .Grid-cell--1,
.v2-Grid--2to1 > .Grid-cell--2,
.v2-Grid--3col > .Grid-cell,
.v2-Grid--3on1 > .Grid-cell--1,
.v2-Grid--3on1 > .Grid-cell--2,
.v2-Grid--3on1 > .Grid-cell--3 {
width: 33.333%;
}
.v2-Grid--1to3 > .Grid-cell--1,
.v2-Grid--3to1 > .Grid-cell--2,
.v2-Grid--4col > .Grid-cell {
width: 25%;
}
/**
* Fit and Fill
*/
.v2-Grid--fitToFill > .Grid-cell--1 {
display: block;
float: left;
width: auto;
}
.v2-Grid--fitToFill > .Grid-cell--2 {
display: block;
overflow: hidden;
width: auto;
}
/* Contain floats */
.v2-Grid--fitToFill:after {
display: table;
content: " ";
clear: both;
}