-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgrid.css
More file actions
180 lines (152 loc) · 3.29 KB
/
grid.css
File metadata and controls
180 lines (152 loc) · 3.29 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
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
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
/* Box-sizing fix! */
html {
box-sizing: border-box;
}
*, *::before, *::after {
box-sizing: inherit;
}
/* utility class */
.responsive-img {
max-width: 100%;
}
.text-center {
text-align: center;
}
.row {
max-width: 1000px;
margin: 0 auto;
display: flex;
/* This will allow our row to display columns horizontally */
flex-wrap: wrap;
/* This will become necessary to allow our flex boxes to stack in responsive mode */
}
/* If an element needs all twelve columns, then its width is 100%. Easy. */
.col-small-12 {
width: 100%;
}
/* If an element needs 11 of 12 columns, its width is 11/12 * 100% */
.col-small-11 {
width: 91.666%;
}
.col-small-10 {
width: 83.333%;
}
.col-small-9 {
width: 75%;
}
.col-small-8 {
width: 66.666%;
}
.col-small-7 {
width: 58.333%;
}
/* This is the class we'd use if we want two 50/50 elements next to each other */
.col-small-6 {
width: 50%;
}
.col-small-5 {
width: 41.666%;
}
/* This is the class we'd use if we want three elements next to each other */
.col-small-4 {
width: 33.333%;
}
/* This is the class we'd use if we want four elements next to each other */
.col-small-3 {
width: 25%;
}
.col-small-2 {
width: 16.666%;
}
/* We'll almost NEVER use this */
.col-small-1 {
width: 8.333%;
}
/* Medium and up screen sizes */
@media only screen and (min-width: 641px) {
.col-medium-12 {
width: 100%;
}
/* If an element needs 11 of 12 columns, its width is 11/12 * 100% */
.col-medium-11 {
width: 91.666%;
}
.col-medium-10 {
width: 83.333%;
}
.col-medium-9 {
width: 75%;
}
.col-medium-8 {
width: 66.666%;
}
.col-medium-7 {
width: 58.333%;
}
/* This is the class we'd use if we want two 50/50 elements next to each other */
.col-medium-6 {
width: 50%;
}
.col-medium-5 {
width: 41.666%;
}
/* This is the class we'd use if we want three elements next to each other */
.col-medium-4 {
width: 33.333%;
}
/* This is the class we'd use if we want four elements next to each other */
.col-medium-3 {
width: 25%;
}
.col-medium-2 {
width: 16.666%;
}
/* We'll almost NEVER use this */
.col-medium-1 {
width: 8.333%;
}
}
/* Large screen sizes */
@media only screen and (min-width: 1025px) {
.col-large-12 {
width: 100%;
}
/* If an element needs 11 of 12 columns, its width is 11/12 * 100% */
.col-large-11 {
width: 91.666%;
}
.col-large-10 {
width: 83.333%;
}
.col-large-9 {
width: 75%;
}
.col-large-8 {
width: 66.666%;
}
.col-large-7 {
width: 58.333%;
}
/* This is the class we'd use if we want two 50/50 elements next to each other */
.col-large-6 {
width: 50%;
}
.col-large-5 {
width: 41.666%;
}
/* This is the class we'd use if we want three elements next to each other */
.col-large-4 {
width: 33.333%;
}
/* This is the class we'd use if we want four elements next to each other */
.col-large-3 {
width: 25%;
}
.col-large-2 {
width: 16.666%;
}
/* We'll almost NEVER use this */
.col-large-1 {
width: 8.333%;
}
}