-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
403 lines (376 loc) · 15.1 KB
/
index.html
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
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8">
<title>Squares - Grid</title>
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<link rel="stylesheet" href="dist/css/squares-grid.min.css">
<style>
.box-child{
border-radius: 100%;
background-color: yellow;
height: 20px;
width: 20px;
}
</style>
</head>
<body>
<div class="grid-container">
<div>
<h1>Squares Grid</h1>
<h2>Automatic Columns</h2>
<p>The class: <code>column</code> inside class: <code>row</code> get an automatic width of the <code>row</code></p>
</div>
<xmp class="row panel" style="padding-top: 0;">
<div class="row">
<div class="column"></div>
<div class="column"></div>
<div class="column"></div>
<div class="column"></div>
<div class="column"></div>
</div>
</xmp>
<div class="row panel">
<div class="column box-mini"></div>
<div class="column box-mini"></div>
<div class="column box-mini"></div>
<div class="column box-mini"></div>
<div class="column box-mini"></div>
</div>
</div>
<div class="grid-container">
<div>
<h2>The Grid</h2>
<p>If you give width to column, add class <code>small-x</code> for small devices | <code>medium-x</code> for medium devices | <code>large-x</code> for large devices</p>
<p>The <strong>grid</strong> is made up of 12 columns</p>
</div>
<xmp class="row panel" style="padding-top: 0;">
<div class="row">
<div class="column medium-6"></div>
<div class="column medium-6"></div>
</div>
<div class="row">
<div class="column small-6 medium-6 align-middle-center">6</div>
<div class="column small-6 medium-6 align-middle-center">6</div>
</div>
<!-- Col-4 -->
<div class="row">
<div class="column small-4 medium-4 align-middle-center">4</div>
<div class="column small-4 medium-4 align-middle-center">4</div>
<div class="column small-4 medium-4 align-middle-center">4</div>
</div>
<!-- Col-3 -->
<div class="row">
<div class="column small-3 medium-3 align-middle-center">3</div>
<div class="column small-3 medium-3 align-middle-center">3</div>
<div class="column small-3 medium-3 align-middle-center">3</div>
<div class="column small-3 medium-3 align-middle-center">3</div>
</div>
<!-- Col 2 -->
<div class="row">
<div class="column small-2 medium-2 align-middle-center">2</div>
<div class="column small-2 medium-2 align-middle-center">2</div>
<div class="column small-2 medium-2 align-middle-center">2</div>
<div class="column small-2 medium-2 align-middle-center">2</div>
<div class="column small-2 medium-2 align-middle-center">2</div>
<div class="column small-2 medium-2 align-middle-center">2</div>
</div>
<!-- Col 1 -->
<div class="row">
<div class="column small-1 medium-1 align-middle-center">1</div>
<div class="column small-1 medium-1 align-middle-center">1</div>
<div class="column small-1 medium-1 align-middle-center">1</div>
<div class="column small-1 medium-1 align-middle-center">1</div>
<div class="column small-1 medium-1 align-middle-center">1</div>
<div class="column small-1 medium-1 align-middle-center">1</div>
<div class="column small-1 medium-1 align-middle-center">1</div>
<div class="column small-1 medium-1 align-middle-center">1</div>
<div class="column small-1 medium-1 align-middle-center">1</div>
<div class="column small-1 medium-1 align-middle-center">1</div>
<div class="column small-1 medium-1 align-middle-center">1</div>
<div class="column small-1 medium-1 align-middle-center">1</div>
</div>
</xmp>
<div class="row">
<div class="column small-6 medium-6 box-mini align-middle-center">6</div>
<div class="column small-6 medium-6 box-mini align-middle-center">6</div>
</div>
<!-- Col-4 -->
<div class="row">
<div class="column small-4 medium-4 box-mini align-middle-center">4</div>
<div class="column small-4 medium-4 box-mini align-middle-center">4</div>
<div class="column small-4 medium-4 box-mini align-middle-center">4</div>
</div>
<!-- Col-3 -->
<div class="row">
<div class="column small-3 medium-3 box-mini align-middle-center">3</div>
<div class="column small-3 medium-3 box-mini align-middle-center">3</div>
<div class="column small-3 medium-3 box-mini align-middle-center">3</div>
<div class="column small-3 medium-3 box-mini align-middle-center">3</div>
</div>
<!-- Col 2 -->
<div class="row">
<div class="column small-2 medium-2 box-mini align-middle-center">2</div>
<div class="column small-2 medium-2 box-mini align-middle-center">2</div>
<div class="column small-2 medium-2 box-mini align-middle-center">2</div>
<div class="column small-2 medium-2 box-mini align-middle-center">2</div>
<div class="column small-2 medium-2 box-mini align-middle-center">2</div>
<div class="column small-2 medium-2 box-mini align-middle-center">2</div>
</div>
<!-- Col 1 -->
<div class="row">
<div class="column small-1 medium-1 box-mini align-middle-center">1</div>
<div class="column small-1 medium-1 box-mini align-middle-center">1</div>
<div class="column small-1 medium-1 box-mini align-middle-center">1</div>
<div class="column small-1 medium-1 box-mini align-middle-center">1</div>
<div class="column small-1 medium-1 box-mini align-middle-center">1</div>
<div class="column small-1 medium-1 box-mini align-middle-center">1</div>
<div class="column small-1 medium-1 box-mini align-middle-center">1</div>
<div class="column small-1 medium-1 box-mini align-middle-center">1</div>
<div class="column small-1 medium-1 box-mini align-middle-center">1</div>
<div class="column small-1 medium-1 box-mini align-middle-center">1</div>
<div class="column small-1 medium-1 box-mini align-middle-center">1</div>
<div class="column small-1 medium-1 box-mini align-middle-center">1</div>
</div>
<!-- Diferent Columns -->
<div class="row">
<div class="column small-6 medium-2 box-mini align-middle-center">2</div>
<div class="column small-6 medium-10 box-mini align-middle-center">10</div>
</div>
<div class="row">
<div class="column small-6 medium-7 box-mini align-middle-center">7</div>
<div class="column small-6 medium-5 box-mini align-middle-center">5</div>
</div>
</div>
<div class="grid-container">
<h2>Alignment</h2>
<!-- Align Center -->
<h3>Align-center</h3>
<xmp>
<div class="row align-center">
<div class="column medium-2"></div>
<div class="column medium-2"></div>
<div class="column medium-2"></div>
</div>
</xmp>
<div class="row panel align-center">
<div class="column box-mini medium-2"></div>
<div class="column box-mini medium-2"></div>
<div class="column box-mini medium-2"></div>
</div>
<!-- Align Left -->
<h3>Align-left</h3>
<xmp>
<div class="row align-left">
<div class="column medium-2"></div>
<div class="column medium-2"></div>
<div class="column medium-2"></div>
</div>
</xmp>
<div class="panel row align-left">
<div class="column box-mini medium-2"></div>
<div class="column box-mini medium-2"></div>
<div class="column box-mini medium-2"></div>
</div>
<!-- Align Right -->
<h3>Align-Right</h3>
<xmp>
<div class="row align-right">
<div class="column medium-2"></div>
<div class="column medium-2"></div>
<div class="column medium-2"></div>
</div>
</xmp>
<div class="panel row align-right">
<div class="column box-mini medium-2"></div>
<div class="column box-mini medium-2"></div>
<div class="column box-mini medium-2"></div>
</div>
<!-- Align Justify -->
<h3>Align-justify</h3>
<xmp>
<div class="row align-justify">
<div class="column medium-2"></div>
<div class="column medium-2"></div>
<div class="column medium-2"></div>
</div>
</xmp>
<div class="panel row align-justify">
<div class="column box-mini medium-2"></div>
<div class="column box-mini medium-2"></div>
<div class="column box-mini medium-2"></div>
</div>
<!-- Align Justify -->
<h3>Align-spaced</h3>
<xmp>
<div class="row align-spaced">
<div class="column medium-2"></div>
<div class="column medium-2"></div>
<div class="column medium-2"></div>
</div>
</xmp>
<div class="panel row align-spaced">
<div class="column box-mini medium-2"></div>
<div class="column box-mini medium-2"></div>
<div class="column box-mini medium-2"></div>
</div>
<!-- Align Self -->
<h3>Align-self-middle | align-self-bottom | align-self-top</h3>
<xmp>
<div class="row align-spaced">
<div class="column medium-2 align-self-middle"></div>
<div class="column medium-2 align-self-bottom"></div>
<div class="column medium-2 align-self-top"></div>
</div>
</xmp>
<div class="panel row align-spaced" style="height: 200px;">
<div class="column box-mini medium-2 align-self-middle totaly-center">middle</div>
<div class="column box-mini medium-2 align-self-bottom totaly-center">bottom</div>
<div class="column box-mini medium-2 align-self-top totaly-center">top</div>
</div>
<!-- Align Top -->
<h3>Align-top</h3>
<xmp>
<div class="row align-top">
<div class="column medium-2"></div>
<div class="column medium-2"></div>
<div class="column medium-2"></div>
</div>
</xmp>
<div class="panel row align-top" style="height: 200px;">
<div class="column box-mini medium-2"></div>
<div class="column box-mini medium-2"></div>
<div class="column box-mini medium-2"></div>
</div>
<!-- Align Bottom -->
<h3>Align-bottom</h3>
<xmp>
<div class="row align-bottom">
<div class="column medium-2"></div>
<div class="column medium-2"></div>
<div class="column medium-2"></div>
</div>
</xmp>
<div class="panel row align-bottom" style="height: 200px;">
<div class="column box-mini medium-2"></div>
<div class="column box-mini medium-2"></div>
<div class="column box-mini medium-2"></div>
</div>
<!-- Align Bottom -->
<h3>Align-middle</h3>
<xmp>
<div class="row align-middle">
<div class="column medium-2"></div>
<div class="column medium-2"></div>
<div class="column medium-2"></div>
</div>
</xmp>
<div class="panel row align-middle" style="height: 200px;">
<div class="column box-mini medium-2"></div>
<div class="column box-mini medium-2"></div>
<div class="column box-mini medium-2"></div>
</div>
<!-- Align-middle-x -->
<h3>Align-middle-left | align-middle-right | align-middle-center</h3>
<xmp>
<div class="row align-middle-left">
<div class="column medium-4"></div>
</div>
<div class="row align-middle-right">
<div class="column medium-4"></div>
</div>
<div class="row align-middle-center">
<div class="column medium-4"></div>
</div>
</xmp>
<div class="row">
<div class="panel row align-middle-left column" style="height: 200px; border: 1px solid grey;">
<div class="column medium-4 box-mini"></div>
</div>
<div class="panel row align-middle-right column" style="height: 200px; border: 1px solid grey;">
<div class="column medium-4 box-mini"></div>
</div>
<div class="panel row align-middle-center column" style="height: 200px; border: 1px solid grey;">
<div class="column medium-4 box-mini"></div>
</div>
</div>
<!-- Align-top-x -->
<h3>Align-top-left | Align-top-right | Align-top-center</h3>
<xmp>
<div class="row align-top-left">
<div class="column medium-4"></div>
</div>
<div class="row align-top-right">
<div class="column medium-4"></div>
</div>
<div class="row align-top-center">
<div class="column medium-4"></div>
</div>
</xmp>
<div class="row">
<div class="panel row align-top-left column" style="height: 200px; border: 1px solid grey;">
<div class="column medium-4 box-mini"></div>
</div>
<div class="panel row align-top-right column" style="height: 200px; border: 1px solid grey;">
<div class="column medium-4 box-mini"></div>
</div>
<div class="panel row align-top-center column" style="height: 200px; border: 1px solid grey;">
<div class="column medium-4 box-mini"></div>
</div>
</div>
<!-- Align-bottom-x -->
<h3>Align-bottom-left | Align-bottom-right | Align-bottom-center</h3>
<xmp>
<div class="row align-bottom-left">
<div class="column medium-4"></div>
</div>
<div class="row align-bottom-right">
<div class="column medium-4"></div>
</div>
<div class="row align-bottom-center">
<div class="column medium-4"></div>
</div>
</xmp>
<div class="row">
<div class="panel row align-bottom-left column" style="height: 200px; border: 1px solid grey;">
<div class="column medium-4 box-mini"></div>
</div>
<div class="panel row align-bottom-right column" style="height: 200px; border: 1px solid grey;">
<div class="column medium-4 box-mini"></div>
</div>
<div class="panel row align-bottom-center column" style="height: 200px; border: 1px solid grey;">
<div class="column medium-4 box-mini"></div>
</div>
</div>
<!-- Align-center -->
<h3>Utility: Totaly center & childrens</h3>
<xmp>
<div class="row totaly-center">
<div class="column medium-4">Child</div>
</div>
<div class="row totaly-center childrens-too">
<div class="column medium-4">Child</div>
</div>
<div class="row totaly-center">
<div class="column medium-4">Child</div>
</div>
Other utilities:
.display-flex: give flex-box to some elements without flex
.flex-column: give direction column and flex to element
.flex-row: give direction row and flex to element
</xmp>
<div class="row">
<div class="panel row column totaly-center" style="height: 200px; border: 1px solid grey;">
<div class="column medium-4 box-mini"><div class="box-child"></div></div>
</div>
<div class="panel row column totaly-center childrens-too" style="height: 200px; border: 1px solid grey;">
<div class="column medium-4 box-mini"><div class="box-child"></div></div>
</div>
<div class="panel row column totaly-center" style="height: 200px; border: 1px solid grey;">
<div class="column medium-4 box-mini"><div class="box-child"></div></div>
</div>
</div>
</div>
<script src="js/main.bundle.js"></script>
</body>
</html>