-
Notifications
You must be signed in to change notification settings - Fork 2
/
grids.css
147 lines (129 loc) · 2.34 KB
/
grids.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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
/*
* EasUI | A simple & lovely responsive CSS framework.
* ----------------------------------------------------------
* https://github.com/interwebstars/EASUI
* ----------------------------------------------------------
*
* Made by : Interwebstars (https://github.com/interwebstars)
* Licensed under MIT
*
* grid.css
* ----------------------------------------------------------
*
* This grid is from :
*
* Lemonade v1.1
* Copyright 2013, Joe Richardson
* lemonade.im
* Free to use under the MIT license.
* http://www.opensource.org/licenses/mit-license.php
*
*/
*,
*:after,
*:before {
margin: 0;
padding: 0;
/* Removes padding behavior on widths */
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
/* Attribute selector */
[class*='bit-'] {
float: left;
padding: 5px;
}
/* Floats last ".bit-" to the right
Old syntax : [class*='bit-']:last-of-type {
padding-right: 5px;
float: right;
}
New syntax below */
[class*='bit-']:not([class*="bit-1"]):last-of-type {
padding-right: 5px;
float: right;
}
/* Alternative for IE8 */
.last-type {
padding:5px;
float:right;
}
/* Clearfix */
.frame:after {
content: "";
display: table;
clear: both;
}
/* Main Widths */
.bit-1 {width: 100%;}
.bit-2 {width: 50%;}
.bit-3 {width: 33.33%;}
.bit-4 {width: 25%;}
.bit-5 {width: 20%;}
.bit-6 {width: 16.6666666667%;}
.bit-7 {width: 14.2857142857%;}
.bit-8 {width: 12.5%;}
.bit-9 {width: 11.1111111111%;}
.bit-10 {width: 10%;}
.bit-11 {width: 9.09090909091%;}
.bit-12 {width: 8.33%;}
/* Landscape mobile & down */
@media (max-width: 30em) {
.bit-1,
.bit-2,
.bit-3,
.bit-4,
.bit-5,
.bit-6,
.bit-7,
.bit-8,
.bit-9,
.bit-10,
.bit-11,
.bit-12 {
width: 100%;
}
.frame .bit-4:nth-child(2) {
float: right;
}
.frame .bit-4:nth-child(3) {
clear: both;
float: left;
}
.frame .bit-4:nth-child(4) {
float: right;
}
}
/* Portrait tablet to landscape */
@media (min-width: 30em) and (max-width: 50em) {
.bit-4,
.bit-6,
.bit-8,
.bit-10,
.bit-12 {
width: 50%;
}
.bit-1,
.bit-2,
.bit-3,
.bit-5,
.bit-7,
.bit-9,
.bit-11 {
width: 100%;
}
}
/* Landscape to small desktop */
@media (min-width: 50em) and (max-width: 68.750em) {
.bit-2,
.bit-7 {
width: 100%;
}
.bit-4,
.bit-8,
.bit-10,
.bit-12 {
width: 50%;
}
}