This repository was archived by the owner on Nov 1, 2017. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 46
Expand file tree
/
Copy pathgrid.css
More file actions
76 lines (66 loc) · 1.67 KB
/
grid.css
File metadata and controls
76 lines (66 loc) · 1.67 KB
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
/* Grid */
.container {
width: 960px;
margin: 0 auto;
overflow: hidden;
}
@media screen and (max-width: 960px){
.container {
width: auto;
}
}
.container .container {
width: 100%;
}
.container .whole,
.container .half,
.container .third,
.container .two-thirds,
.container .golden-small,
.container .golden-large,
.container .quarter,
.container .three-quarters,
.container .fifth,
.container .two-fifths,
.container .three-fifths,
.container .four-fifths
{
float: left;
}
.container .whole { width: 100%; }
.container .half { width: 50%; }
.container .third { width: 33.3333%; }
.container .two-thirds { width: 66.6666%; }
.container .golden-small { width: 38.2716%; }
.container .golden-large { width: 61.7283% }
.container .quarter { width: 25%; }
.container .three-quarters { width: 75%; }
.container .fifth { width: 20%; }
.container .two-fifths { width: 40%; }
.container .three-fifths { width: 60%; }
.container .four-fifths { width: 80%; }
@media screen and (max-width: 568px) {
/* Expand anything lower than .whole to full-width on smaller screens */
.container .half,
.container .third,
.container .two-thirds,
.container .golden-small,
.container .golden-large,
.container .quarter,
.container .three-quarters,
.container .fifth,
.container .two-fifths,
.container .three-fifths,
.container .four-fifths {
width: 100%;
}
/* ... and give them some better margins */
.container .content {
margin-left: 20px;
margin-right: 20px;
}
/* Sometimes, you want things centered on small screens */
.center-on-mobiles {
text-align: center !important;
}
}