-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
demo.html
781 lines (623 loc) · 30.6 KB
/
demo.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
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
<!DOCTYPE html>
<head>
<link rel="stylesheet" href="./css/gibki.css">
<style>
* {
margin: 0;
padding: 0;
}
html {
box-sizing: border-box;
font-kerning: normal;
overflow-y: scroll;
overscroll-behavior: none;
scroll-behavior: smooth;
text-size-adjust: 100%;
}
*,
*::before,
*::after {
box-sizing: inherit;
}
body {
background-color: #fff;
color: #111;
margin-top: 2rem;
margin-bottom: 2rem;
}
p:not(> span) {
max-width: 69ch;
}
* + p {
margin-top: 1rem;
}
* + ul {
margin-top: 1rem;
}
html,
body {
font: normal normal 400 112.5%/1.65 '-apple-system', BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}
h1,
h2,
h3 {
font: normal normal 700 1.25em/1.6 '-apple-system', BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}
@media screen and (min-width: 43.75em) {
h1 {
font-size: 2.05em;
line-height: 1.53659;
}
h2 {
font-size: 1.6em;
line-height: 1.5625;
}
}
* + h2,
* + h3 {
margin-top: 2rem;
}
code,
pre {
font-size: 0.889em;
background-color: #f7f7f7;
color: inherit;
overflow-x: auto;
}
code {
padding-left: 0.222rem;
padding-right: 0.222rem;
padding-top: 0.222rem;
padding-bottom: 0.222rem;
}
pre {
padding-left: 1rem;
padding-right: 1rem;
padding-top: 1rem;
padding-bottom: 1rem;
}
* + pre {
margin-top: 1rem;
}
.container .container {
background-color: #f7f7f7;
color: inherit;
margin-top: 1rem;
}
.flex .flex {
margin-top: 0;
margin-bottom: 0;
}
[class*="flex__"] span {
background: rgba(255, 215, 0, 0.4);
padding-top: 1rem;
padding-bottom: 1rem;
padding-left: 1rem;
padding-right: 1rem;
display: block;
height: 100%;
}
[class*="flex__"] span:empty {
padding: 0;
}
</style>
</head>
<body>
<div class="container">
<h1>Gibki</h1>
<p>Gibki is an open-source grid system based on Flexbox.</p>
<h2>General</h2>
<h3>.container</h3>
<p>Containers provide a way to center content. Use <code>.container</code> for a responsive width:</p>
<div class="container"><span style="padding: 1rem; display: inline-block;">container</span>
<p><span style="padding: 0 1rem 1rem; display: inline-block;">Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.</span></p>
</div>
<pre>
<div class="container">
</div></pre>
<p>If needed, you can also use <code>.container--small</code> for a smaller width:</p>
<div class="container container--small"><span style="padding: 1rem; display: inline-block;">container container--small</span>
<p><span style="padding: 0 1rem 1rem; display: inline-block;">Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum.</span></p>
</div>
<pre>
<div class="container container--small">
</div></pre>
<h3>.flex</h3>
<p><code>.flex</code> is the wrapper for columns.</p>
<pre>
<div class="container">
<div class="flex">
</div>
</div></pre>
<h3>.flex__</h3>
<p><code>.flex__</code> classes create different column sizes.</p>
<div class="container"><span style="padding: 1rem; display: inline-block;">flex</span>
<div class="flex">
<div class="flex__2"><span>flex__2</span></div>
<div class="flex__10"><span>flex__10</span></div>
<div class="flex__8"><span>flex__8</span></div>
<div class="flex__4"><span>flex__4</span></div>
<div class="flex__7"><span>flex__7</span></div>
<div class="flex__5"><span>flex__5</span></div>
</div>
</div>
<pre>
<div class="flex">
<div class="flex__2"></div>
<div class="flex__10"></div>
<div class="flex__8"></div>
<div class="flex__4"></div>
<div class="flex__7"></div>
<div class="flex__5"></div>
</div></pre>
<h3>.flex__auto</h3>
<p><code>.flex__auto</code> creates columns that take up the remaining space.</p>
<div class="container"><span style="padding: 1rem; display: inline-block;">flex</span>
<div class="flex">
<div class="flex__6"><span>flex__6</span></div>
<div class="flex__auto"><span>flex__auto</span></div>
<div class="flex__auto"><span>flex__auto</span></div>
<div class="flex__8"><span>flex__8</span></div>
<div class="flex__auto"><span>flex__auto</span></div>
</div>
</div>
<pre>
<div class="flex">
<div class="flex__6"></div>
<div class="flex__auto"></div>
<div class="flex__auto"></div>
<div class="flex__8"></div>
<div class="flex__auto"></div>
</div></pre>
<h2>Nesting</h2>
<p>To nest content with the default grid, add a new <code>.flex</code> container and a set of <code>.flex__</code> columns within an existing <code>.flex__</code> column.</p>
<div class="container"><span style="padding: 1rem; display: inline-block;">flex</span>
<div class="flex">
<div class="flex__4"><span>flex__4</span></div>
<div class="flex__8"><span style="padding: 0; background-color: #f7f7f7; border: .111rem solid #fbeb95;"><span style="background-color: #fbeb95; color: inherit; height: auto;">flex__8</span><span style="background-color: transparent; color: inherit; height: auto;">flex</span>
<div class="flex">
<div class="flex__6"><span>flex__6</span></div>
<div class="flex__auto"><span>flex__auto</span></div>
<div class="flex__auto"><span>flex__auto</span></div>
</div></span>
</div>
</div>
</div>
<pre>
<div class="flex">
<div class="flex__lg-4"></div>
<div class="flex__lg-8">
<div class="flex">
<div class="flex__6"></div>
<div class="flex__auto"></div>
<div class="flex__auto"></div>
</div>
</div>
</div></pre>
<h2>Responsive Layouts</h2>
<p>The grid system allows you to create responsive layouts by defining different column widths for each viewport. There are four breakpoints that determine the viewports:</p>
<ul>
<li>>= 500px: Small <code>sm</code></li>
<li>>= 700px: Medium <code>md</code></li>
<li>>= 1000px: Large <code>lg</code></li>
<li>>= 1200px: Extra large <code>xl</code></li>
</ul>
<div class="container"><span style="padding: 1rem; display: inline-block;">flex</span>
<div class="flex">
<div class="flex__md-6 flex__lg-3"><span>flex__md-6 flex__lg-3</span></div>
<div class="flex__md-6 flex__lg-3"><span>flex__md-6 flex__lg-3</span></div>
<div class="flex__md-6 flex__lg-3"><span>flex__md-6 flex__lg-3</span></div>
<div class="flex__md-6 flex__lg-3"><span>flex__md-6 flex__lg-3</span></div>
</div>
</div>
<pre>
<div class="flex">
<div class="flex__md-6 flex__lg-3"></div>
<div class="flex__md-6 flex__lg-3"></div>
<div class="flex__md-6 flex__lg-3"></div>
<div class="flex__md-6 flex__lg-3"></div>
</div></pre>
<p>These breakpoints can be customized/expanded using <a href="#sass-variables">Sass variables</a>.</p>
<h2>Wrapping</h2>
<p>By default, columns will wrap if necessary.</p>
<div class="container"><span style="padding: 1rem; display: inline-block;">flex</span>
<div class="flex">
<div class="flex__6"><span>flex__6</span></div>
<div class="flex__8"><span>flex__8</span></div>
</div>
</div>
<pre>
<div class="flex">
<div class="flex__6"></div>
<div class="flex__8"></div>
</div></pre>
<h3>.flex--wrap-reverse</h3>
<p>The columns will wrap if necessary but in reverse order.</p>
<div class="container"><span style="padding: 1rem; display: inline-block;">flex flex--wrap-reverse</span>
<div class="flex flex--wrap-reverse">
<div class="flex__6"><span>flex__6</span></div>
<div class="flex__8"><span>flex__8</span></div>
</div>
</div>
<pre>
<div class="flex flex-wrap-reverse">
<div class="flex__6"></div>
<div class="flex__8"></div>
</div></pre>
<h3>.flex--nowrap</h3>
<p>The columns will not wrap.</p>
<div class="container"><span style="padding: 1rem; display: inline-block;">flex flex--nowrap</span>
<div class="flex flex--nowrap">
<div class="flex__6"><span>flex__6</span></div>
<div class="flex__8"><span>flex__8</span></div>
</div>
</div>
<pre>
<div class="flex flex--nowrap">
<div class="flex__6"></div>
<div class="flex__8"></div>
</div></pre>
<h2>Gutters</h2>
<p>The columns and rows have horizontal and vertical spacing. These can be customized using <a href="#css-custom-properties">CSS Custom properties</a>.</p>
<p>You can remove the spacing with <code>.flex--no-gutters</code>.</p>
<div class="container"><span style="padding: 1rem; display: inline-block;">flex flex--no-gutters</span>
<div class="flex flex--no-gutters">
<div class="flex__md-6"><span>flex__md-6</span></div>
<div class="flex__md-6"><span>flex__md-6</span></div>
<div class="flex__md-6"><span>flex__md-6</span></div>
<div class="flex__md-6"><span>flex__md-6</span></div>
</div>
</div>
<pre>
<div class="flex flex--no-gutters">
<div class="flex__md-6"></div>
<div class="flex__md-6"></div>
<div class="flex__md-6"></div>
<div class="flex__md-6"></div>
</div></pre>
<p>You can also only remove the horizontal gutters with <code>.flex--no-horizontal-gutters</code>.</p>
<div class="container"><span style="padding: 1rem; display: inline-block;">flex flex--no-horizontal-gutters</span>
<div class="flex flex--no-horizontal-gutters">
<div class="flex__md-6"><span>flex__md-6</span></div>
<div class="flex__md-6"><span>flex__md-6</span></div>
<div class="flex__md-6"><span>flex__md-6</span></div>
<div class="flex__md-6"><span>flex__md-6</span></div>
</div>
</div>
<pre>
<div class="flex flex--no-horizontal-gutters">
<div class="flex__md-6"></div>
<div class="flex__md-6"></div>
<div class="flex__md-6"></div>
<div class="flex__md-6"></div>
</div></pre>
<p>Or you remove only the vertical gutters with <code>.flex--no-vertical-gutters</code>.</p>
<div class="container"><span style="padding: 1rem; display: inline-block;">flex flex--no-vertical-gutters</span>
<div class="flex flex--no-vertical-gutters">
<div class="flex__md-6"><span>flex__md-6</span></div>
<div class="flex__md-6"><span>flex__md-6</span></div>
<div class="flex__md-6"><span>flex__md-6</span></div>
<div class="flex__md-6"><span>flex__md-6</span></div>
</div>
</div>
<pre>
<div class="flex flex--no-vertical-gutters">
<div class="flex__md-6"></div>
<div class="flex__md-6"></div>
<div class="flex__md-6"></div>
<div class="flex__md-6"></div>
</div></pre>
<h2>Directions</h2>
<p>The following classes define the direction in which the columns are placed within the wrapper. By default, columns are set from left to right in <code>ltr</code> (left-to-right languages) and from right to left in <code>rtl</code> (right-to-left languages).</p>
<div class="container"><span style="padding: 1rem; display: inline-block;">flex</span>
<div class="flex">
<div class="flex__4"><span>flex__4</span></div>
<div class="flex__8"><span>flex__8</span></div>
</div>
</div>
<pre>
<div class="flex">
<div class="flex__4"></div>
<div class="flex__8"></div>
</div></pre>
<h3>.flex--row-reverse</h3>
<p>The columns are placed from right to left in <code>ltr</code> and left to right in <code>rtl</code>.</p>
<div class="container"><span style="padding: 1rem; display: inline-block;">flex flex--row-reverse</span>
<div class="flex flex--row-reverse">
<div class="flex__4"><span>flex__4</span></div>
<div class="flex__8"><span>flex__8</span></div>
</div>
</div>
<pre>
<div class="flex flex--row-reverse">
<div class="flex__4"></div>
<div class="flex__8"></div>
</div></pre>
<h3>.flex--column</h3>
<p><code>.flex--column</code> behaves the same way as <code>.flex--row</code> but the columns are stacked from top to bottom.</p>
<div class="container"><span style="padding: 1rem; display: inline-block;">flex flex--column</span>
<div class="flex flex--column">
<div class="flex__4"><span>flex__4</span></div>
<div class="flex__8"><span>flex__8</span></div>
</div>
</div>
<pre>
<div class="flex flex--column">
<div class="flex__4"></div>
<div class="flex__8"></div>
</div></pre>
<h3>.flex--column-reverse</h3>
<p><code>.flex--column-reverse</code> behaves the same way as <code>.flex--row-reverse</code> but the columns are stacked from bottom to top.</p>
<div class="container"><span style="padding: 1rem; display: inline-block;">flex flex--column-reverse</span>
<div class="flex flex--column-reverse">
<div class="flex__4"><span>flex__4</span></div>
<div class="flex__8"><span>flex__8</span></div>
</div>
</div>
<pre>
<div class="flex flex--column-reverse">
<div class="flex__4"></div>
<div class="flex__8"></div>
</div></pre>
<h2>Horizontal Alignment</h2>
<p>The following classes define how columns are aligned along the main axis. They help distribute extra space between the items when they don't reach their maximum size. By default, columns are positioned at the beginning of the container.</p>
<div class="container"><span style="padding: 1rem; display: inline-block;">flex</span>
<div class="flex">
<div class="flex__3"><span>flex__3</span></div>
<div class="flex__3"><span>flex__3</span></div>
<div class="flex__3"><span>flex__3</span></div>
</div>
</div>
<pre>
<div class="flex">
<div class="flex__3"></div>
<div class="flex__3"></div>
<div class="flex__3"></div>
</div></pre>
<h3>.flex--right</h3>
<p>The columns are positioned at the end of the container.</p>
<div class="container"><span style="padding: 1rem; display: inline-block;">flex flex--right</span>
<div class="flex flex--right">
<div class="flex__3"><span>flex__3</span></div>
<div class="flex__3"><span>flex__3</span></div>
<div class="flex__3"><span>flex__3</span></div>
</div>
</div>
<pre>
<div class="flex flex--right">
<div class="flex__3"></div>
<div class="flex__3"></div>
<div class="flex__3"></div>
</div></pre>
<h3>.flex--center</h3>
<p>The columns are positioned at the center of the container.</p>
<div class="container"><span style="padding: 1rem; display: inline-block;">flex flex--center</span>
<div class="flex flex--center">
<div class="flex__3"><span>flex__3</span></div>
<div class="flex__3"><span>flex__3</span></div>
<div class="flex__3"><span>flex__3</span></div>
</div>
</div>
<pre>
<div class="flex flex--center">
<div class="flex__3"></div>
<div class="flex__3"></div>
<div class="flex__3"></div>
</div></pre>
<h3>.flex--space-between</h3>
<p>The columns are evenly spread horizontally; the first column is at the beginning of the container, and the last column is at the end of the container. Space is distributed between the columns.</p>
<div class="container"><span style="padding: 1rem; display: inline-block;">flex flex--space-between</span>
<div class="flex flex--space-between">
<div class="flex__3"><span>flex__3</span></div>
<div class="flex__3"><span>flex__3</span></div>
<div class="flex__3"><span>flex__3</span></div>
</div>
</div>
<pre>
<div class="flex flex--space-between">
<div class="flex__3"></div>
<div class="flex__3"></div>
<div class="flex__3"></div>
</div></pre>
<h3>.flex--space-around</h3>
<p>The columns are positioned with equal space before, between, and after them.</p>
<div class="container"><span style="padding: 1rem; display: inline-block;">flex flex--space-around</span>
<div class="flex flex--space-around">
<div class="flex__3"><span>flex__3</span></div>
<div class="flex__3"><span>flex__3</span></div>
<div class="flex__3"><span>flex__3</span></div>
</div>
</div>
<pre>
<div class="flex flex--space-around">
<div class="flex__3"></div>
<div class="flex__3"></div>
<div class="flex__3"></div>
</div></pre>
<h2>Vertical Alignment</h2>
<p>The following classes define how columns are aligned along the cross axis when they don't reach their maximum size.</p>
<h3>.flex--stretch</h3>
<p>This is the default value. You don't need to add the class to the wrapper; it stretches the height of the columns to fill the container while respecting <code>min-width</code> and <code>max-width</code>.</p>
<div class="container"><span style="padding: 1rem; display: inline-block;">flex</span>
<div class="flex">
<div class="flex__4"><span>Lorem ipsum dolor sit amet.</span></div>
<div class="flex__4"><span>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam.</span></div>
<div class="flex__4"><span>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod.</span></div>
</div>
</div>
<pre>
<div class="flex">
<div class="flex__4"></div>
<div class="flex__4"></div>
<div class="flex__4"></div>
</div></pre>
<p>You can also apply <code>.flex--stretch</code> to individual columns if necessary.</p>
<div class="container"><span style="padding: 1rem; display: inline-block;">flex flex--top</span>
<div class="flex flex--top">
<div class="flex__4 flex--stretch"><span>flex--stretch</span></div>
<div class="flex__4"><span>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam.</span></div>
<div class="flex__4"><span>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod.</span></div>
</div>
</div>
<pre>
<div class="flex flex--top">
<div class="flex__4 flex--stretch"></div>
<div class="flex__4"></div>
<div class="flex__4"></div>
</div></pre>
<h3>.flex--top</h3>
<p>The columns are positioned at the top of the container.</p>
<div class="container"><span style="padding: 1rem; display: inline-block;">flex flex--top</span>
<div class="flex flex--top">
<div class="flex__4"><span>Lorem ipsum dolor sit amet.</span></div>
<div class="flex__4"><span>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam.</span></div>
<div class="flex__4"><span>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod.</span></div>
</div>
</div>
<pre>
<div class="flex flex--top">
<div class="flex__4"></div>
<div class="flex__4"></div>
<div class="flex__4"></div>
</div></pre>
<p>You can also apply <code>.flex--top</code> to individual columns.</p>
<div class="container"><span style="padding: 1rem; display: inline-block;">flex</span>
<div class="flex">
<div class="flex__4 flex--top"><span>flex--top</span></div>
<div class="flex__4"><span>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam.</span></div>
<div class="flex__4"><span>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod.</span></div>
</div>
</div>
<pre>
<div class="flex">
<div class="flex__4 flex--top"></div>
<div class="flex__4"></div>
<div class="flex__4"></div>
</div></pre>
<h3>.flex--bottom</h3>
<p>The columns are positioned at the bottom of the container.</p>
<div class="container"><span style="padding: 1rem; display: inline-block;">flex flex--bottom</span>
<div class="flex flex--bottom">
<div class="flex__4"><span>Lorem ipsum dolor sit amet.</span></div>
<div class="flex__4"><span>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam.</span></div>
<div class="flex__4"><span>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod.</span></div>
</div>
</div>
<pre>
<div class="flex flex--bottom">
<div class="flex__4"></div>
<div class="flex__4"></div>
<div class="flex__4"></div>
</div></pre>
<p>You can also apply <code>.flex--bottom</code> to individual columns.</p>
<div class="container"><span style="padding: 1rem; display: inline-block;">flex</span>
<div class="flex">
<div class="flex__4 flex--bottom"><span>flex--bottom</span></div>
<div class="flex__4"><span>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam.</span></div>
<div class="flex__4"><span>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod.</span></div>
</div>
</div>
<pre>
<div class="flex">
<div class="flex__4 flex--bottom"></div>
<div class="flex__4"></div>
<div class="flex__4"></div>
</div></pre>
<h3>.flex--middle</h3>
<p>The columns are positioned at the vertical center of the container.</p>
<div class="container"><span style="padding: 1rem; display: inline-block;">flex flex--middle</span>
<div class="flex flex--middle">
<div class="flex__4"><span>Lorem ipsum dolor sit amet.</span></div>
<div class="flex__4"><span>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam.</span></div>
<div class="flex__4"><span>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod.</span></div>
</div>
</div>
<pre>
<div class="flex flex--middle">
<div class="flex__4"></div>
<div class="flex__4"></div>
<div class="flex__4"></div>
</div></pre>
<p>You can also apply <code>.flex--middle</code> to individual columns.</p>
<div class="container"><span style="padding: 1rem; display: inline-block;">flex</span>
<div class="flex">
<div class="flex__4 flex--middle"><span>flex--middle</span></div>
<div class="flex__4"><span>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam.</span></div>
<div class="flex__4"><span>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod.</span></div>
</div>
</div>
<pre>
<div class="flex">
<div class="flex__4 flex--middle"></div>
<div class="flex__4"></div>
<div class="flex__4"></div>
</div></pre>
<h2>Reordering</h2>
<p>Use <code>.flex--order-</code> classes to control the visual order of your content.</p>
<div class="container"><span style="padding: 1rem; display: inline-block;">flex</span>
<div class="flex">
<div class="flex__6 flex--order-5"><span>flex__6 flex--order-5</span></div>
<div class="flex__6 flex--order-6 flex--order-lg-3"><span>flex__6 flex--order-6 flex--order-lg-3</span></div>
<div class="flex__6 flex--order-2"><span>flex__6 flex--order-2</span></div>
<div class="flex__6 flex--order-3 flex--order-lg-6"><span>flex__6 flex--order-3 flex--order-lg-6</span></div>
<div class="flex__6 flex--order-4"><span>flex__6 flex--order-4</span></div>
<div class="flex__6 flex--order-1"><span>flex__6 flex--order-1</span></div>
</div>
</div>
<pre>
<div class="flex">
<div class="flex__6 flex--order-5"></div>
<div class="flex__6 flex--order-6 flex--order-lg-3"></div>
<div class="flex__6 flex--order-2"></div>
<div class="flex__6 flex--order-3 flex--order-lg-6"></div>
<div class="flex__6 flex--order-4"></div>
<div class="flex__6 flex--order-1"></div>
</div></pre>
<h3>Offsetting columns</h3>
<p>Offset a column by adding <code>.flex--offset-</code> classes.</p>
<div class="container"><span style="padding: 1rem; display: inline-block;">flex</span>
<div class="flex">
<div class="flex__2"><span>flex__2</span></div>
<div class="flex__8 flex--offset-2"><span>flex__8 flex--offset-2</span></div>
<div class="flex__md-8 flex--offset-md-4"><span>flex__md-8 flex--offset-md-4</span></div>
<div class="flex__6 flex__lg-4"><span>flex__6 flex__lg-4</span></div>
<div class="flex__6 flex--offset-lg-2"><span>flex__6 flex--offset-lg-2</span></div>
</div>
</div>
<pre>
<div class="flex">
<div class="flex__2"></div>
<div class="flex__8 flex--offset-2"></div>
<div class="flex__md-8 flex--offset-md-4"></div>
<div class="flex__6 flex__lg-4"></div>
<div class="flex__6 flex--offset-lg-2"></div>
</div></pre>
<h2>Variables</h2>
<h3 id="css-custom-properties">CSS custom properties</h3>
<pre>
// Container max width
// Based on 16px
--gibki-container-max-width: 75rem; // 1200px
--gibki-small-container-max-width: 38.25rem; // 612px
// Container padding
// Based on 16px
--gibki-container-padding: 1.5rem; // 24px
// Gutter width
// Based on 16px
--gibki-gutter-vertical: 1.5rem; // 24px
--gibki-gutter-horizontal: 1.5rem; // 24px</pre>
<h3 id="sass-variables">Sass variables</h3>
<pre>
// Breakpoints map
// Based on 16px
$gibki-breakpoints: (
'sm': 31.25em, // 500px
'md': 43.75em, // 700px
'lg': 62.5em, // 1000px
'xl': 75em // 1200px
);
// Available columns
$gibki-columns: 12;</pre>
</div>
</body>
</html>