forked from soffes/grater
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgrater.css
73 lines (57 loc) · 1.01 KB
/
grater.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
61
62
63
64
65
66
67
68
69
70
71
72
73
/* ==================================
Controls the widths of the layers
===================================== */
.grater-container {
width:640px;
margin:0 auto;
}
@media all and (max-width: 660px) {
.grater-container{
width:300px;
}
}
.grater {
zoom:1;
}
.grater > div {
width:300px;
margin:0 0 2em;
}
/* =============================
Controls how the divs float
================================ */
.grater > div:first-child {
float:left;
}
.grater > div:last-child{
float:right;
}
.grater.reverse > div:first-child {
float:right;
}
.grater.reverse > div:last-child {
float:left;
}
.grater:before,
.grater:after {
content:"";
display:table;
}
/* =============================
Clears the floats
================================ */
.grater:after {
clear:both;
}
/* =============================
Clears the floats on mobile
================================ */
@media all and (max-width: 660px){
.grater{
margin-bottom:1em;
}
.grater > div {
float:none !important;
margin:0 auto 2em;
}
}