-
Notifications
You must be signed in to change notification settings - Fork 0
/
GRID.css
58 lines (47 loc) · 985 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
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
*, *:before, *:after {
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
/* Small screens (default) */
/* Elements will default to full width */
html {
font-size: 100%;
}
.clearfix:before,
.clearfix:after {
content: " ";
display: table;
}
.clearfix:after {
clear: both;
}
.clearfix {
*zoom: 1;
}
.center {
text-align: center;
}
/******************************
MEDIA QUERIES
******************************/
/* Medium screens (640px) */
@media (min-width: 40rem) {
html { font-size: 112%; }
.column {
float: left;
padding-left: 1rem;
padding-right: 1rem;
}
.column.full { width: 100%; }
.column.two-thirds { width: 66.7%; }
.column.half { width: 50%; }
.column.third { width: 33.3%; }
.column.fourth { width: 24.95%; }
.column.three-fourths { width: 74.95%; }
.column.flow-opposite { float: right; }
}
/* Large screens (1024px) */
@media (min-width: 64rem) {
html { font-size: 120%; }
}