-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpolygrids.html
473 lines (450 loc) · 18.4 KB
/
polygrids.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
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0"/>
<title>PolyGrids Demo</title>
<meta name="description" content="MOLDS shapes demo." />
<!-- Favicons -->
<link rel="icon" href="core/files/favicon-16.ico" type="image/x-icon" />
<link rel="shortcut icon" href="core/files/favicon-96.png" type="image/png" />
<link rel="apple-touch-icon" href="core/files/favicon-180.png" type="image/png" />
<!-- CORE CSS -->
<link href="source/brutalist.min.css" type="text/css" rel="stylesheet" media="all"/>
<link href="source/blueprintgrid.css" type="text/css" rel="stylesheet" media="all"/>
<style>
.shape{color: #fff; font-size: 1rem;}
.shape:nth-child(odd){background-color: #a47764;}
.shape:nth-child(even){background-color: #5c4451;}
.polygrid.fifths>.shape, .polygrid.sixths>.shape{font-size: 0.8rem; font-weight: 700;}
</style>
</head>
<body>
<!-- PAGE -->
<header class="padded flex middle" id="uptop" style="min-height: 25vh; margin-bottom: 0;">
<h1 class="fluid-text courier center">▲<br /><strong>PolyGrids</strong></h1>
</header>
<div class="wrap-1200 lucida">
<h3 class="flow-text"><strong>Getting Started</strong></h3>
<div class="flex"><div class="half padded">
<p><strong>MARKUP.</strong><br />PolyGrids are Flexbox items arranged in a row. Use the following markup:</p>
<p class="padded terminal">
<div class="polygrid <em>SHAPE SIZE</em>"><br /> <div class="shape"><br /> ..content..<br />
</div><br /> ...<br /></div>
</p>
<p>Where <em>SHAPE</em> and <em>SIZE</em> are a shape and size class.</p>
</div><div class="half padded">
<p><strong>REQUIRED SCRIPT.</strong><br />The following javascript is required and needs to be placed before the closing <em>body</em> tag:</p>
<p class="padded warning"><strong>source/methods/js/poly-grid.js</strong></p>
<p>The javascript automatically inserts the necessary shape elements that will be floated left and right within each shape grid item.</p>
</div></div>
<hr />
<h3 class="flow-text"><strong>Constructing Grids</strong></h3>
<div class="flex"><div class="half padded">
<p><strong>SIZES.</strong><br />Grid shape items have pre-defined widths and heights that are proportionate to the <strong>height</strong> of the viewport. For example, if we want shape items to occupy 25% of the height of the screen, we would apply the class <em>fourths</em>. Use any of the following size classes:</p>
<p class="padded info"><strong>.sixths</strong> - 16.5% (1/6) height<br />
<strong>.fifths</strong> - 20% (1/5) height<br /><strong>.fourths</strong> - 25% (1/4) height<br />
<strong>.thirds</strong> - 33% (1/3) height<br /><strong>.halves</strong> - 50% (1/2) height<br />
</div><div class="half padded">
<p><strong>SHAPES</strong><br />Use any of the following shape classes:</p>
<p class="padded info"><strong>.circle<br />.triangle<br />.rhombus<br />.hexagon<br />.octagon<br />.plus<br />.hourglass<br />.chevron</strong></p>
</div></div>
<hr />
<h3 class="flow-text"><strong>Additional Options</strong></h3>
<div class="flex"><div class="half padded">
<p><strong>GAPS.</strong><br />Gap spacing can be added between items for several shape grids. Simply add the class <em><strong>gaps</strong></em> to the polygrid wrapper. In the example below, we have applly gaps to a sixth triangle polygrid:<br /><br /><strong>.gaps</strong>.polygrid triangle.sixths</p>
<div class="polygrid packed triangle sixths gaps">
<div class="shape">1</div>
<div class="shape">2</div>
<div class="shape">3</div>
<div class="shape">4</div>
</div>
</div><div class="padded half">
<p><strong>REVERSE.</strong><br />We can reverse the flow of grid items from last to first by applying the class <em><strong>reverse</strong></em>. In the example below, we have a reversed packed triangle grid:<br /><br /><strong>.reverse</strong>.polygrid.triangle.packed.sixths.gaps</p>
<div class="polygrid reverse packed triangle sixths gaps">
<div class="shape">1</div>
<div class="shape">2</div>
<div class="shape">3</div>
<div class="shape">4</div>
</div>
</div></div>
</div>
<div class="clear-block jagged"><p class="checkerboard padding"></p></div>
<div class="container">
<h3 class="flow-text"><strong>Circle Fourths PolyGrid w/ Gaps</strong></h3>
<p>In the example below, we wrap a circle fourths polygrid (with gap spacing) within a container.<br /><br /></p>
<!-- Circle Fourths PolyGrid -->
<div class="polygrid fourths circle gaps">
<div class="shape">
<p>Let your hopes, not your hurts, shape your future.</p>
</div>
<div class="shape">
<p>Strategy is about shaping the future.</p>
</div>
<div class="shape">
<p>We shape our buildings; thereafter they shape us.</p>
</div>
<div class="shape">
<p>If you change the way you look at things, the things you look at change.</p>
</div>
<div class="shape">
<p>Every day do something that will inch you closer to a better tomorrow.</p>
</div>
<div class="shape">
<p>In the long run, we shape our lives, and we shape ourselves</p>
</div>
<div class="shape">
<p>It takes a big heart to shape little minds.</p>
</div>
<div class="shape">
<p>The name we give to something shapes our attitude toward it.</p>
</div>
<div class="shape">
<p>Everything has shape, if you look for it. There is no escape from form.</p>
</div>
<div class="shape">
<p>The only way to predict the future is to have power to shape the future.</p>
</div>
<div class="shape">
<p>Colors answer feeling in man; shapes answer thought; and motion answers will.</p>
</div>
<div class="shape">
<p>Human nature is like water. It takes the shape of its container.</p>
</div>
<div class="shape">
<p>Eagles come in all shapes and size, but you will recognize them chiefly by their attitudes.</p>
</div>
</div>
<p class="spacer"></p>
<div class="clear-block jagged"><p class="checkerboard padding"></p></div>
<p class="spacer"></p>
<h3 class="flow-text"><strong>PACKED Triangle Thirds PolyGrid w/ Gaps</strong></h3>
<p>In the example below, we wrap a triangle thirds polygrid (with gap spacing) within a container.<br /><br /></p>
<!-- Circle Fourths PolyGrid -->
<div class="polygrid thirds triangle packed gaps">
<div class="shape">
<p>Let your hopes, not your hurts, shape your future.</p>
</div>
<div class="shape">
<p>Strategy is about shaping the future.</p>
</div>
<div class="shape">
<p>We shape our buildings; thereafter they shape us.</p>
</div>
<div class="shape">
<p>If you change the way you look at things, the things you look at change.</p>
</div>
<div class="shape">
<p>Every day do something that will inch you closer to a better tomorrow.</p>
</div>
<div class="shape">
<p>In the long run, we shape our lives, and we shape ourselves</p>
</div>
<div class="shape">
<p>It takes a big heart to shape little minds.</p>
</div>
<div class="shape">
<p>The name we give to something shapes our attitude toward it.</p>
</div>
<div class="shape">
<p>Everything has shape, if you look for it. There is no escape from form.</p>
</div>
<div class="shape">
<p>The only way to predict the future is to have power to shape the future.</p>
</div>
<div class="shape">
<p>Colors answer feeling in man; shapes answer thought; and motion answers will.</p>
</div>
<div class="shape">
<p>Human nature is like water. It takes the shape of its container.</p>
</div>
<div class="shape">
<p>Eagles come in all shapes and size, but you will recognize them chiefly by their attitudes.</p>
</div>
</div>
<p class="spacer"></p>
<div class="clear-block jagged"><p class="checkerboard padding"></p></div>
<p class="spacer"></p>
<h3 class="flow-text"><strong>PACKED & REVERSED Rhombus Fifths PolyGrid</strong></h3>
<p>In the example below, we wrap a reversed rhombus thirds polygrid within a container.<br /><br /></p>
<!-- Rhombus Fifths PolyGrid -->
<div class="polygrid fifths rhombus packed reverse">
<div class="shape">
<p>Let your hopes, not your hurts, shape your future.</p>
</div>
<div class="shape">
<p>Strategy is about shaping the future.</p>
</div>
<div class="shape">
<p>We shape our buildings; thereafter they shape us.</p>
</div>
<div class="shape">
<p>If you change the way you look at things, the things you look at change.</p>
</div>
<div class="shape">
<p>Every day do something that will inch you closer to a better tomorrow.</p>
</div>
<div class="shape">
<p>In the long run, we shape our lives, and we shape ourselves</p>
</div>
<div class="shape">
<p>It takes a big heart to shape little minds.</p>
</div>
<div class="shape">
<p>The name we give to something shapes our attitude toward it.</p>
</div>
<div class="shape">
<p>Everything has shape, if you look for it. There is no escape from form.</p>
</div>
<div class="shape">
<p>The only way to predict the future is to have power to shape the future.</p>
</div>
<div class="shape">
<p>Colors answer feeling in man; shapes answer thought; and motion answers will.</p>
</div>
<div class="shape">
<p>Human nature is like water. It takes the shape of its container.</p>
</div>
<div class="shape">
<p>Eagles come in all shapes and size, but you will recognize them chiefly by their attitudes.</p>
</div>
</div>
<p class="spacer"></p>
<div class="clear-block jagged"><p class="checkerboard padding"></p></div>
<p class="spacer"></p>
<h3 class="flow-text"><strong>PACKED Hexagon Thirds PolyGrid</strong></h3>
<p>In the example below, we have a hexagon thirds polygrid within a container.<br /><br /></p>
<!-- Hexagon Thirds PolyGrid -->
<div class="polygrid thirds hexagon packed">
<div class="shape">
<p>Let your hopes, not your hurts, shape your future.</p>
</div>
<div class="shape">
<p>Strategy is about shaping the future.</p>
</div>
<div class="shape">
<p>We shape our buildings; thereafter they shape us.</p>
</div>
<div class="shape">
<p>If you change the way you look at things, the things you look at change.</p>
</div>
<div class="shape">
<p>Every day do something that will inch you closer to a better tomorrow.</p>
</div>
<div class="shape">
<p>In the long run, we shape our lives, and we shape ourselves</p>
</div>
<div class="shape">
<p>It takes a big heart to shape little minds.</p>
</div>
<div class="shape">
<p>The name we give to something shapes our attitude toward it.</p>
</div>
<div class="shape">
<p>Everything has shape, if you look for it. There is no escape from form.</p>
</div>
<div class="shape">
<p>The only way to predict the future is to have power to shape the future.</p>
</div>
<div class="shape">
<p>Colors answer feeling in man; shapes answer thought; and motion answers will.</p>
</div>
<div class="shape">
<p>Human nature is like water. It takes the shape of its container.</p>
</div>
<div class="shape">
<p>Eagles come in all shapes and size, but you will recognize them chiefly by their attitudes.</p>
</div>
</div>
<p class="spacer"></p>
<div class="clear-block jagged"><p class="checkerboard padding"></p></div>
<p class="spacer"></p>
<h3 class="flow-text"><strong>PACKED Hourglass Thirds PolyGrid</strong></h3>
<p>In the example below, we have a hourglass thirds polygrid within a container.<br /><br /></p>
<!-- Hourglass Thirds PolyGrid -->
<div class="polygrid fourths hourglass packed">
<div class="shape">
<p>Let your hopes, not your hurts, shape your future.</p>
</div>
<div class="shape">
<p>Strategy is about shaping the future.</p>
</div>
<div class="shape">
<p>We shape our buildings; thereafter they shape us.</p>
</div>
<div class="shape">
<p>If you change the way you look at things, the things you look at change.</p>
</div>
<div class="shape">
<p>Every day do something that will inch you closer to a better tomorrow.</p>
</div>
<div class="shape">
<p>In the long run, we shape our lives, and we shape ourselves</p>
</div>
<div class="shape">
<p>It takes a big heart to shape little minds.</p>
</div>
<div class="shape">
<p>The name we give to something shapes our attitude toward it.</p>
</div>
<div class="shape">
<p>Everything has shape, if you look for it. There is no escape from form.</p>
</div>
<div class="shape">
<p>The only way to predict the future is to have power to shape the future.</p>
</div>
<div class="shape">
<p>Colors answer feeling in man; shapes answer thought; and motion answers will.</p>
</div>
<div class="shape">
<p>Human nature is like water. It takes the shape of its container.</p>
</div>
<div class="shape">
<p>Eagles come in all shapes and size, but you will recognize them chiefly by their attitudes.</p>
</div>
</div>
<p class="spacer"></p>
<div class="clear-block jagged"><p class="checkerboard padding"></p></div>
<p class="spacer"></p>
<h3 class="flow-text"><strong>PACKED Chevron Fifths PolyGrid w/ Gaps</strong></h3>
<!-- Chevron Fifths PolyGrid -->
<div class="polygrid fifths chevron packed gaps">
<div class="shape">
<p>Let your hopes, not your hurts, shape your future.</p>
</div>
<div class="shape">
<p>Strategy is about shaping the future.</p>
</div>
<div class="shape">
<p>We shape our buildings; thereafter they shape us.</p>
</div>
<div class="shape">
<p>If you change the way you look at things, the things you look at change.</p>
</div>
<div class="shape">
<p>Every day do something that will inch you closer to a better tomorrow.</p>
</div>
<div class="shape">
<p>In the long run, we shape our lives, and we shape ourselves</p>
</div>
<div class="shape">
<p>It takes a big heart to shape little minds.</p>
</div>
<div class="shape">
<p>The name we give to something shapes our attitude toward it.</p>
</div>
<div class="shape">
<p>Everything has shape, if you look for it. There is no escape from form.</p>
</div>
<div class="shape">
<p>The only way to predict the future is to have power to shape the future.</p>
</div>
<div class="shape">
<p>Colors answer feeling in man; shapes answer thought; and motion answers will.</p>
</div>
<div class="shape">
<p>Human nature is like water. It takes the shape of its container.</p>
</div>
<div class="shape">
<p>Eagles come in all shapes and size, but you will recognize them chiefly by their attitudes.</p>
</div>
</div>
<p class="spacer"></p>
<div class="clear-block jagged"><p class="checkerboard padding"></p></div>
<p class="spacer"></p>
<h3 class="flow-text"><strong>Octagon Fourths PolyGrid w/ Gaps</strong></h3>
<!-- Octagon Fourths PolyGrid -->
<div class="polygrid fourths octagon gaps">
<div class="shape">
<p>Let your hopes, not your hurts, shape your future.</p>
</div>
<div class="shape">
<p>Strategy is about shaping the future.</p>
</div>
<div class="shape">
<p>We shape our buildings; thereafter they shape us.</p>
</div>
<div class="shape">
<p>If you change the way you look at things, the things you look at change.</p>
</div>
<div class="shape">
<p>Every day do something that will inch you closer to a better tomorrow.</p>
</div>
<div class="shape">
<p>In the long run, we shape our lives, and we shape ourselves</p>
</div>
<div class="shape">
<p>It takes a big heart to shape little minds.</p>
</div>
<div class="shape">
<p>The name we give to something shapes our attitude toward it.</p>
</div>
<div class="shape">
<p>Everything has shape, if you look for it. There is no escape from form.</p>
</div>
<div class="shape">
<p>The only way to predict the future is to have power to shape the future.</p>
</div>
<div class="shape">
<p>Colors answer feeling in man; shapes answer thought; and motion answers will.</p>
</div>
<div class="shape">
<p>Human nature is like water. It takes the shape of its container.</p>
</div>
<div class="shape">
<p>Eagles come in all shapes and size, but you will recognize them chiefly by their attitudes.</p>
</div>
</div>
<p class="spacer"></p>
<div class="clear-block jagged"><p class="checkerboard padding"></p></div>
<p class="spacer"></p>
<h3 class="flow-text"><strong>Plus Fourths PolyGrid w/ Gaps</strong></h3>
<!-- Plus Thirds PolyGrid -->
<div class="polygrid fourths plus gaps">
<div class="shape">
<p>Let your hopes, not your hurts, shape your future.</p>
</div>
<div class="shape">
<p>Strategy is about shaping the future.</p>
</div>
<div class="shape">
<p>We shape our buildings; thereafter they shape us.</p>
</div>
<div class="shape">
<p>If you change the way you look at things, the things you look at change.</p>
</div>
<div class="shape">
<p>Every day do something that will inch you closer to a better tomorrow.</p>
</div>
<div class="shape">
<p>In the long run, we shape our lives, and we shape ourselves</p>
</div>
<div class="shape">
<p>It takes a big heart to shape little minds.</p>
</div>
<div class="shape">
<p>The name we give to something shapes our attitude toward it.</p>
</div>
<div class="shape">
<p>Everything has shape, if you look for it. There is no escape from form.</p>
</div>
<div class="shape">
<p>The only way to predict the future is to have power to shape the future.</p>
</div>
<div class="shape">
<p>Colors answer feeling in man; shapes answer thought; and motion answers will.</p>
</div>
<div class="shape">
<p>Human nature is like water. It takes the shape of its container.</p>
</div>
<div class="shape">
<p>Eagles come in all shapes and size, but you will recognize them chiefly by their attitudes.</p>
</div>
</div>
</div>
<footer class="padded center courier disabled">
<p><a href="https://www.brutalistframework.com" target="_blank">Brutalist Framework</a> © 2025</p>
</footer>
<script src="source/methods/js/poly-grid.js"></script>
</body>
</html>