-
Notifications
You must be signed in to change notification settings - Fork 18
/
index.html
1544 lines (1470 loc) · 76.9 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
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
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>yeti.css • &yet's visual style guide</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
<link href="public/css/andlight.css" rel="stylesheet">
<link href="public/css/main.min.css" rel="stylesheet">
<link rel="icon" type="image/png" href="/public/img/favicon.png">
<script src="//use.typekit.net/jle1tuk.js"></script>
<script>
try{Typekit.load();}catch(e){}
</script>
</head>
<header role="banner">
<div class="container">
<div class="cf"><a href="https://github.com/andyet/yeticss" title="See on Github" class="button button-primary pull-right">See on Github</a></div>
<h1>yeti.css</h1>
<p>&yet's lightweight, modular pattern library written in Stylus.</p>
</div>
</header>
<nav role="navigation" class="top-nav top-nav-light cf main-nav">
<input id="menu-toggle" type="checkbox" class="menu-toggle">
<label for="menu-toggle">Menu</label>
<ul class="list-unstyled list-inline cf">
<li><a href="#typography">Typography</a></li>
<li><a href="#colors">Colors</a></li>
<li><a href="#grid">Grid</a></li>
<li><a href="#buttons">Buttons</a></li>
<li><a href="#forms">Forms</a></li>
<li><a href="#progress">Progress Bars</a></li>
<li><a href="#tables">Tables</a></li>
<li><a href="#messages">Messages</a></li>
<li><a href="#navigation">Navigation</a></li>
<li><a href="#modals">Modals</a></li>
<li><a href="#media">Media</a></li>
<li><a href="#code">Code</a></li>
<li><a href="#logos">Logos</a></li>
</ul>
</nav>
<div class="container">
<section id="typography">
<h2>Typography</h2>
<h3>Body copy</h3>
<p>The default <code>font-size</code> is <strong>1rem</strong> (16px-ish) with <code>line-height</code> of <strong>1.5</strong>. Additionally all paragraphs have a bottom margin of <code>30px</code> (the default spacing unit).</p><pre><code class="lang-html"> <p>...</p>
</code></pre>
<h3>Headings</h3>
<p>All HTML headings are available—running from <code>h1</code> to <code>h6</code>.</p>
<div class="sample">
<h1>Headline 1</h1>
<h2>Headline 2</h2>
<h3>Headline 3</h3>
<h4>Headline 4</h4>
<h5>Headline 5</h5>
<h6>Headline 6</h6>
</div><pre><code class="lang-html"> <h1>Headline 1</h1>
<h2>Headline 2</h2>
<h3>Headline 2</h3>
<h4>Headline 2</h4>
<h5>Headline 2</h5>
<h6>Headline 2</h6>
</code></pre>
<h4>Headings Usage</h4>
<dl>
<dt>Heading 1</dt>
<dd><code>h1</code> is a top-level header that should appear only once per page, usually within <code>header</code> area.</dd>
</dl>
<dl>
<dt>Heading 2</dt>
<dd><code>h2</code> can be alternatively used as a top-level page header, optionally outside of <code>header</code>.</dd>
</dl>
<dl>
<dt>Heading 3</dt>
<dd><code>h3</code> is used to denotate sections on a page.</dd>
</dl>
<dl>
<dt>Heading 4, 5, 6</dt>
<dd><code>h4</code>, <code>h5</code>, <code>h6</code> are used for sub-sections on a page.</dd>
</dl>
<h3>Text manipulations</h3>
<p>Basic HTML inline text manipulations are supported.</p>
<div class="sample">
<ul class="list-unstyled">
<li>This text snippet will be <strong>bold</strong></li>
<li>This text snippet will be <em>emphasized</em></li>
<li>This text snippet will be <u>underlined</u></li>
<li>This text snippet will be <s>strikedthrough</s></li>
<li>This text snippet will be <small>small</small></li>
<li>This text snippet will be <sub>subscripted</sub></li>
<li>This text snippet will be <sup>superscripted</sup></li>
<li>This text snippet will be <abbr title='abbreviation'>abbreviated</abbr></li>
<li>This text snippet will be <mark>highlighted</mark></li>
<li>This text snippet will be an <code>inline code sample</code></li>
</ul>
</div><pre><code class="lang-html"> This text snippet will be <strong>bold</strong>
This text snippet will be <em>emphasized</em>
This text snippet will be <u>underlined</u>
This text snippet will be <s>strikedthrough</s>
This text snippet will be <small>small</small>
This text snippet will be <sub>subscripted</sub>
This text snippet will be <sup>superscripted</sup>
This text snippet will be <abbr title='abrreviation'>abbreviated</abbr>
This text snippet will be <mark>highlighted</mark>
This text snippet will be an <code>inline code sample</code>
</code></pre>
<h3>Blockquotes</h3>
<p>To quote an external source use a <code>blockquote</code> element. </p>
<blockquote>
<p>If you give a good idea to a mediocre team, they will screw it up. If you give a mediocre idea to a brilliant team, they will either fix it or throw it away and come up with something better.</p>
</blockquote><pre><code class="lang-html"> <blockquote>
<p>You are not your idea, and if you identify too closely with your ideas, you will take offense when they are challenged.</p>
</blockquote>
</code></pre>
<p>To add a source of the quote use the <code>footer</code> element.</p>
<blockquote>
<p>Failure isn’t a necessary evil. In fact, it isn’t evil at all. It is a necessary consequence of doing something new.</p>
<footer>Ed Catmull in <cite>Creativity, Inc.</cite></footer>
</blockquote><pre><code class="lang-html"> <blockquote>
<p>Failure isn’t a necessary evil. In fact, it isn’t evil at all. It is a necessary consequence of doing something new.</p>
<footer>Ed Catmull in <cite>Creativity, Inc.</cite></footer>
</blockquote>
</code></pre>
<p>To center a <code>blockquote</code> add <code>blockquote-centered</code> class.</p>
<blockquote class="blockquote-centered">
<p>Getting the right people and the right chemistry is more important than getting the right idea.</p>
</blockquote><pre><code class="lang-html"> <blockquote class='blockquote-centered'>
<p>Getting the right people and the right chemistry is more important than getting the right idea.</p>
</blockquote>
</code></pre>
<p>Blockquotes come with three different font sizes—<strong>base</strong>, <strong>medium</strong> and <strong>large</strong>. Use no class for base appearance.</p>
<blockquote class="blockquote-medium">
<p>“I like too many things and get all confused and hung-up running from one falling star to another till I drop. This is the night, what it does to you. I had nothing to offer anybody except my own confusion.” </p>
</blockquote>
<blockquote class="blockquote-large">
<p>“War is peace. Freedom is slavery. Ignorance is strength.”</p>
</blockquote>
<blockquote class="blockquote-large blockquote-centered">
<p>“A strong leader has the humility to listen, the confidence to challenge, and the wisdom to know when to quit arguing and to get on board.” </p>
</blockquote><pre><code class="lang-html"> <blockquote class='blockquote-medium'>
<p>“I like too many things and get all confused and hung-up running from one falling star to another till I drop. This is the night, what it does to you. I had nothing to offer anybody except my own confusion.”</p>
</blockquote>
<blockquote class='blockquote-large'>
<p>“War is peace. Freedom is slavery. Ignorance is strength.”</p>
</blockquote>
<blockquote class='blockquote-centered blockquote-large'>
<p>“A strong leader has the humility to listen, the confidence to challenge, and the wisdom to know when to quit arguing and to get on board.”</p>
</blockquote>
</code></pre>
<h3>Lists</h3>
<p>Both ordered and unordered lists can be customized with <code>list-unstyled</code> class, that will remove the <code>padding</code> as well as individual list item style and <code>list-inline</code> class, that will change the display of list items to <code>inline-block</code>.</p>
<h4>Unordered list</h4>
<p>An unordered list represents a collection of items that do not have any particular order.</p>
<ul>
<li>List element one</li>
<li>List element two
<ul>
<li>Nested list element one
<ul>
<li>Nested list element one</li>
<li>Nested list element two</li>
</ul>
</li>
<li>List element two</li>
</ul>
</li>
<li>List element three</li>
<li>List element four</li>
</ul><pre><code class="lang-html"> <ul>
<li>List element one</li>
<li>List element two
<ul>
<li>Nested list element one
<ul>
<li>Nested list element one</li>
<li>Nested list element two</li>
</ul>
</li>
<li>Nested list element two</li>
</ul>
</li>
<li>List element three</li>
<li>List element four</li>
</ul>
</code></pre>
<h4>Ordered list</h4>
<p>An ordered list represents a collection of items that do have order and will be displayed with a preceding number.</p>
<ol>
<li>List element one</li>
<li>List element two
<ol>
<li>Nested list element one</li>
<li>Nested list element two</li>
</ol>
</li>
<li>List element three</li>
<li>List element four</li>
</ol><pre><code class="lang-html"> <ol>
<li>List element one</li>
<li>List element two
<ol>
<li>Nested list element one</li>
<li>Nested list element two</li>
</ol>
</li>
<li>List element three</li>
<li>List element four</li>
</ol>
</code></pre>
<h4>Definition list</h4>
<p>A definition list consists of pairs of terms and their descriptions.</p>
<dl>
<dt>Definition term</dt>
<dd>Definition description</dd>
</dl><pre><code class="lang-html"> <dl>
<dt>Definition term</dt>
<dd>Definition description</dd>
</dl>
</code></pre>
</section>
<section id="colors">
<h2>Colors</h2>
<p>Colors are available as variables and downloadable <a href='https://github.com/andyet/yeticss/blob/gh-pages/assets/swatches/andyet.aco'>Photoshop swatch</a>.</p>
<h3>Blues</h3>
<ul class="cf list-unstyled list-inline">
<li class="color blue1">
<p>$blue-saturated-darker</p>
<p>hsl(195, 100%, 5%)</p>
<p>rgb(0, 19, 26)</p>
<p>#00131a</p>
</li>
<li class="color blue2">
<p>$blue-saturated-dark</p>
<p>hsl(195, 100%, 10%)</p>
<p>rgb(0, 38, 51)</p>
<p>#002633</p>
</li>
<li class="color blue3">
<p>$blue-saturated</p>
<p>hsl(195, 100%, 14%)</p>
<p>rgb(0, 54, 71)</p>
<p>#003647</p>
</li>
<li class="color blue4">
<p>$blue-saturated-light</p>
<p>hsl(195,46%, 22%)</p>
<p>rgb(30, 69, 82)</p>
<p>#1e4552</p>
</li>
<li class="color blue5">
<p>$blue-saturated-lighter</p>
<p>hsl(195,46%, 42%)</p>
<p>rgb(58, 132, 156)</p>
<p>#3a849c</p>
</li>
</ul>
<ul class="cf list-unstyled list-inline">
<li class="color blue6">
<p>$blue</p>
<p>hsl(195, 100%, 46%)</p>
<p>rgb(0, 176, 235)</p>
<p>#00b0eb</p>
</li>
<li class="color blue7">
<p>$blue-light</p>
<p>hsl(195, 100%, 70%)</p>
<p>rgb(102, 217, 255)</p>
<p>#66d9ff</p>
</li>
<li class="color blue8">
<p>$blue-lighter</p>
<p>hsl(195, 100%, 95%)</p>
<p>rgb(230, 249, 255)</p>
<p>#e6f9ff</p>
</li>
</ul>
<h3>Monochromatic</h3>
<ul class="cf list-unstyled list-inline">
<li class="color gray1">
<p>$gray-darker</p>
<p>hsl(194, 7%, 16%)</p>
<p>rgb(38, 42, 44)</p>
<p>#262a2c</p>
</li>
<li class="color gray2">
<p>$gray-dark</p>
<p>hsl(194, 5%, 33%)</p>
<p>rgb(80, 86, 88)</p>
<p>#505658</p>
</li>
<li class="color gray3">
<p>$gray</p>
<p>hsl(194, 5%, 54%)</p>
<p>rgb(132, 141, 144)</p>
<p>#848d90</p>
</li>
<li class="color gray4">
<p>$gray-light</p>
<p>hsl(194, 9%, 82%)</p>
<p>rgb(205, 211, 213)</p>
<p>#cdd3d5</p>
</li>
<li class="color gray5">
<p>$gray-lighter</p>
<p>hsl(194,9%, 92%)</p>
<p>rgb(233, 236, 236)</p>
<p>#e9ecec</p>
</li>
</ul>
<h3>Pinks</h3>
<ul class="cf list-unstyled list-inline">
<li class="color pink1">
<p>$pink</p>
<p>hsl(326, 94%, 48%)</p>
<p>rgb(237, 7, 138)</p>
<p>#ed078a</p>
</li>
<li class="color pink2">
<p>$pink-light</p>
<p>hsl(344, 97%, 88%)</p>
<p>rgb(254, 195, 211)</p>
<p>#fec3d3</p>
</li>
<li class="color pink3">
<p>$pink-lighter</p>
<p>hsl(326, 94%, 96%)</p>
<p>rgb(254, 235, 246)</p>
<p>#feebf6</p>
</li>
</ul>
<h3>Reds</h3>
<ul class="cf list-unstyled list-inline">
<li class="color red1">
<p>$red</p>
<p>hsl(342, 100%, 45%)</p>
<p>rgb(230, 0, 69)</p>
<p>#e60045</p>
</li>
<li class="color red2">
<p>$red-light</p>
<p>hsl(342, 100%, 89%)</p>
<p>rgb(255, 199, 216)</p>
<p>#ffc7d8</p>
</li>
<li class="color red3">
<p>$red-lighter</p>
<p>hsl(342, 100%, 95%)</p>
<p>rgb(255, 230, 237)</p>
<p>#ffe6ed</p>
</li>
</ul>
<h3>Oranges</h3>
<ul class="cf list-unstyled list-inline">
<li class="color orange1">
<p>$orange</p>
<p>hsl(34, 98%, 48%)</p>
<p>rgb(242, 138, 2)</p>
<p>#f28a02</p>
</li>
<li class="color orange2">
<p>$orange-light</p>
<p>hsl(34, 98%, 74%)</p>
<p>rgb(254, 197, 124)</p>
<p>#fec57c</p>
</li>
<li class="color orange3">
<p>$orange-lighter</p>
<p>hsl(34, 98%, 92%)</p>
<p>rgb(255, 237, 215)</p>
<p>#ffedd7</p>
</li>
</ul>
<h3>Greens</h3>
<ul class="cf list-unstyled list-inline">
<li class="color green1">
<p>$green</p>
<p>hsl(142, 47%, 50%)</p>
<p>rgb(68, 187, 112)</p>
<p>#44bb70</p>
</li>
<li class="color green2">
<p>$green-light</p>
<p>hsl(142, 48%, 85%)</p>
<p>rgb(198, 235, 212)</p>
<p>#c6ebd4</p>
</li>
<li class="color green3">
<p>$green-lighter</p>
<p>hsl(142, 48%, 94%)</p>
<p>rgb(232, 247, 238)</p>
<p>#e8f7ee</p>
</li>
</ul>
</section>
<section id="grid">
<h2>Grid</h2>
<p>The starting point to maintaining the document flow is by wrapping the content in a container element that defaults to <code>max-width: 960px</code>.</p><pre><code> <div class='container'>
<h1>My Website</h1>
<p>My content.</p>
</div>
</code></pre>
<p>The following responsive breakpoints are defined in the <a href='https://github.com/andyet/yeticss/blob/gh-pages/lib/yeticss/globals/_variables.styl#L62-L75'>variables file</a>:</p><pre><code> $breakpoint-smartphone ?= 480px
$breakpoint-mid-mobile ?= 600px
$breakpoint-tablet ?= 768px
$breakpoint-desktop ?= 900px
$breakpoint-desktop-wide ?= 1200px
</code></pre>
<p>Grid is built on top of <a href='http://css-tricks.com/snippets/css/a-guide-to-flexbox/'>flexbox</a>. Cells (<code>grid-flex-cell</code>) will have the width of <code>100%</code> below <code>481px</code> and automatically calculated width (depending on cell count) above that breakpoint. Grid must be placed within <code>div</code> with <code>container</code> class as described above.</p>
<p><em>There are several different ways to implement the grid:</em></p>
<h4>Regular column widths, automatically-calculated</h4>
<p>The default use of grid is to wrap each row in a separate container div. A row consists of a set of <code>.grid-flex-cell</code> divs wrapped in a <code>.grid-flex-container</code> div. For example, if you place 2 <code>.grid-flex-cell</code> divs within a <code>.grid-flex-container</code> div, it will automatically size 2 columns of equal width. This eliminates the need for any helper classes.</p>
<div class="grid-flex-container">
<div class="grid-flex-cell">
<p>auto</p>
</div>
<div class="grid-flex-cell">
<p>auto</p>
</div>
</div>
<div class="grid-flex-container">
<div class="grid-flex-cell">
<p>auto</p>
</div>
<div class="grid-flex-cell">
<p>auto</p>
</div>
<div class="grid-flex-cell">
<p>auto</p>
</div>
</div>
<div class="grid-flex-container">
<div class="grid-flex-cell">
<p>auto</p>
</div>
<div class="grid-flex-cell">
<p>auto</p>
</div>
<div class="grid-flex-cell">
<p>auto</p>
</div>
<div class="grid-flex-cell">
<p>auto</p>
</div>
</div><pre><code class="lang-html"> <div class="grid-flex-container">
<div class="grid-flex-cell">
<p>auto</p>
</div>
<div class="grid-flex-cell">
<p>auto</p>
</div>
</div>
<div class="grid-flex-container">
<div class="grid-flex-cell">
<p>auto</p>
</div>
<div class="grid-flex-cell">
<p>auto</p>
</div>
<div class="grid-flex-cell">
<p>auto</p>
</div>
</div>
<div class="grid-flex-container">
<div class="grid-flex-cell">
<p>auto</p>
</div>
<div class="grid-flex-cell">
<p>auto</p>
</div>
<div class="grid-flex-cell">
<p>auto</p>
</div>
<div class="grid-flex-cell">
<p>auto</p>
</div>
</div>
</code></pre>
<h4>Multiple rows within a single container div</h4>
<p>If you'd like to place multiple rows within a single <code>.grid-flex-container</code> div, you will need to make use of helper classes which explicitly define the fractional width of each column. These helper classes are <code>.grid-flex-cell-1of2</code>, <code>.grid-flex-cell-1of3</code>, and <code>.grid-flex-cell-1of4</code>.</p>
<div class="grid-flex-container">
<div class="grid-flex-cell-1of2">
<p>1/2</p>
</div>
<div class="grid-flex-cell-1of2">
<p>1/2</p>
</div>
<div class="grid-flex-cell-1of3">
<p>1/3</p>
</div>
<div class="grid-flex-cell-1of3">
<p>1/3</p>
</div>
<div class="grid-flex-cell-1of3">
<p>1/3</p>
</div>
<div class="grid-flex-cell-1of4">
<p>1/4</p>
</div>
<div class="grid-flex-cell-1of4">
<p>1/4</p>
</div>
<div class="grid-flex-cell-1of4">
<p>1/4</p>
</div>
<div class="grid-flex-cell-1of4">
<p>1/4</p>
</div>
</div><pre><code class="lang-html"> <div class="grid-flex-container">
<div class="grid-flex-cell-1of2">
<p>1/2</p>
</div>
<div class="grid-flex-cell-1of2">
<p>1/2</p>
</div>
<div class="grid-flex-cell-1of3">
<p>1/3</p>
</div>
<div class="grid-flex-cell-1of3">
<p>1/3</p>
</div>
<div class="grid-flex-cell-1of3">
<p>1/3</p>
</div>
<div class="grid-flex-cell-1of4">
<p>1/4</p>
</div>
<div class="grid-flex-cell-1of4">
<p>1/4</p>
</div>
<div class="grid-flex-cell-1of4">
<p>1/4</p>
</div>
<div class="grid-flex-cell-1of4">
<p>1/4</p>
</div>
</div>
</code></pre>
<h4>Irregular column widths</h4>
<p>The automatically-calculated column widths can be used in conjuction with the helper classes (<code>.grid-flex-cell-1of2</code>, <code>.grid-flex-cell-1of3</code>, and <code>.grid-flex-cell-1of4</code>) to enable a layout with irregular column widths.</p>
<div class="grid-flex-container">
<div class="grid-flex-cell">
<p>auto</p>
</div>
<div class="grid-flex-cell grid-flex-cell-1of4">
<p>1/4</p>
</div>
<div class="grid-flex-cell">
<p>auto</p>
</div>
</div>
<div class="grid-flex-container">
<div class="grid-flex-cell">
<p>auto</p>
</div>
<div class="grid-flex-cell">
<p>auto</p>
</div>
<div class="grid-flex-cell grid-flex-cell-1of2">
<p>1/2</p>
</div>
<div class="grid-flex-cell">
<p>auto</p>
</div>
</div>
<div class="grid-flex-container">
<div class="grid-flex-cell grid-flex-cell-1of3">
<p>1/3</p>
</div>
<div class="grid-flex-cell">
<p>auto</p>
</div>
</div><pre><code class="lang-html"> <div class="grid-flex-container">
<div class="grid-flex-cell">
<p>auto</p>
</div>
<div class="grid-flex-cell grid-flex-cell-1of4">
<p>1/4</p>
</div>
<div class="grid-flex-cell">
<p>auto</p>
</div>
</div>
<div class="grid-flex-container">
<div class="grid-flex-cell">
<p>auto</p>
</div>
<div class="grid-flex-cell">
<p>auto</p>
</div>
<div class="grid-flex-cell grid-flex-cell-1of2">
<p>1/2</p>
</div>
<div class="grid-flex-cell">
<p>auto</p>
</div>
</div>
<div class="grid-flex-container">
<div class="grid-flex-cell grid-flex-cell-1of3">
<p>1/3</p>
</div>
<div class="grid-flex-cell">
<p>auto</p>
</div>
</div>
</code></pre>
<h4>Centering columns</h4>
<p>In cases where you are not using the full width of a column and would like to center the element inside of it use the helper class (<code>.grid-flex-cell-centered</code>).</p>
<div class="grid-flex-container">
<div class="grid-flex-cell-1of3 grid-flex-cell-centered">
<p>1/3, centered</p>
</div>
</div>
<div class="grid-flex-container">
<div class="grid-flex-cell grid-flex-cell-1of3 grid-flex-cell-centered">
<p>1/3, centered</p>
</div>
<div class="grid-flex-cell grid-flex-cell-1of3 grid-flex-cell-centered">
<p>1/3, centered</p>
</div>
</div><pre><code class="lang-html"> <div class="grid-flex-container">
<div class="grid-flex-cell grid-flex-cell-1of3 grid-flex-cell-centered">
<p>1/3, centered</p>
</div>
</div>
<div class="grid-flex-container">
<div class="grid-flex-cell grid-flex-cell-1of3 grid-flex-cell-centered">
<p>1/3, centered</p>
</div>
<div class="grid-flex-cell grid-flex-cell-1of3 grid-flex-cell-centered">
<p>1/3, centered</p>
</div>
</div>
</code></pre>
<p>For simple, one-column layout use only <code>container</code> element.</p><pre><code class="lang-html"> <div class='container'>
...
</div>
</code></pre>
</section>
<section id="buttons" class="buttons">
<h2>Buttons</h2>
<p>Use <code>button</code> class for default button appearance with optional <code>button-primary</code> and <code>button-secondary</code> classes for customized color variants. These classes can be applied to either <code>button</code> or <code>a</code> tags.</p>
<button class="button">Button</button><a href="#" class="button">Button (text link)</a>
<button class="button button-approve">Approval Button</button>
<button class="button button-warn">Warning Button</button>
<button class="button button-neutral">Neutral Button</button>
<button class="button button-outlined-neutral">Neutral Outlined Button</button>
<button class="button button-outlined-warn">Warning Outlined Button</button>
<button class="button button-outlined-approve">Approval Outlined Button</button>
<button class="button button-outlined">Outlined Button</button>
<button class="button button-caution">Caution Button</button>
<button class="button button-unstyled">Unstyled Button</button><pre><code class="lang-html"> <button class='button'>Button</button>
<a href="#" class="button">Button (text link)</a>
<button class='button button-approve'>Approval Button</button>
<button class='button button-warn'>Warning Button</button>
<button class='button button-neutral'>Neutral Button</button>
<button class='button button-outlined-neutral'>Neutral Outlined Button</button>
<button class='button button-outlined-warn'>Warning Outlined Button</button>
<button class='button button-outlined-approval'>Approval Outlined Button</button>
<button class='button button-outlined'>Outlined Button</button>
<button class='button button-caution'>Caution Button</button>
<button class='button button-unstyled'>Unstyled Button</button>
</code></pre>
<h3>Button sizes</h3>
<p>Buttons come in three different sizes—large, regular and small. Use <code>button-large</code>, no class and <code>button-small</code> classes respectively.</p>
<button class="button button-large">Large Button</button>
<button class="button">Regular Button</button>
<button class="button button-small">Small Button</button><pre><code class="lang-html"> <button class='button button-large'>Large Button</button>
<button class='button'>Regular Button</button>
<button class='button button-small'>Small Button</button>
</code></pre>
<h3>Disabled buttons</h3>
<p>For disabled (unclickable) apperance use <code>disabled</code> attribute for <code>button</code> elements and <code>button-disabled</code> class for links.</p>
<button disabled class="button">Button</button>
<button disabled class="button button-approve">Approval Button </button><a href="#" class="button button-warn button-disabled">Warning Button (text link)</a>
<button disabled class="button button-neutral">Neutral Button </button>
<button disabled class="button button-outlined">Outlined Button</button>
<button disabled class="button button-outlined-neutral">Neutral Outlined Button</button>
<button disabled class="button button-outlined-warn">Warning Outlined Button</button>
<button disabled class="button button-outlined-approve">Approval Outlined Button</button><pre><code class="lang-html"> <button class='button' disabled>Button</button>
<button class='button button-approve' disabled>Approval Button</button>
<a href='#' class='button button-warn button-disabled'>Warning Button (text link)</a>
<button class='button button-neutral' disabled>Neutral Button</button>
<button class='button button-outlined' disabled>Outlined Button</button>
<button class='button button-outlined-neutral' disabled>Neutral Outlined Button</button>
<button class='button button-outlined-warn' disabled>Warning Outlined Button</button>
<button class='button button-outlined-approve' disabled>Approval Outlined Button</button>
</code></pre>
<h3>Button groups</h3>
<p>To create a button group place any number of button elements in <code>button-group</code> container.</p>
<div class="button-group">
<button class="button">Button</button>
<button class="button">Button</button>
<button class="button">Button</button>
</div>
<div class="button-group">
<button class="button button-neutral">Button</button>
<button class="button button-neutral">Button</button>
<button class="button button-neutral">Button</button>
</div>
<div class="button-group">
<button class="button button-outlined">Button</button>
<button class="button button-outlined">Button</button>
<button class="button button-outlined">Button</button>
</div><pre><code class="lang-html"> <div class="button-group">
<button class="button">Button</button>
<button class="button">Button</button>
<button class="button">Button</button>
</div>
<div class="button-group">
<button class="button button-neutral">Button</button>
<button class="button button-neutral">Button</button>
<button class="button button-neutral">Button</button>
</div>
<div class="button-group">
<button class="button button-outlined">Button</button>
<button class="button button-outlined">Button</button>
<button class="button button-outlined">Button</button>
</div>
</code></pre>
</section>
<section id="forms">
<h2>Forms</h2>
<form>
<fieldset>
<legend>Comment Form</legend>
<div class="form-element">
<label for="username">Username</label>
<input type="text" id="username" placeholder="Your username" class="form-input">
</div>
<div class="form-element">
<label for="comment">Write a comment</label>
<textarea id="comment" placeholder="This is a sample message" class="form-input"></textarea>
</div>
<button type="submit" class="button button-primary">Send</button>
</fieldset>
</form><pre><code class="lang-html"> <form>
<fieldset>
<legend>Comment Form</legend>
<div class='form-element'>
<label for='username'>Username</label>
<input type='text' id='username' placeholder='Your username' class='form-input'>
</div>
<div class='form-element'>
<label for='comment'>Write a comment</label>
<textarea id='comment' class='form-input' placeholder='This is a sample message'></textarea>
</div>
<button type='submit' class='button button-primary'>Send</button>
</fieldset>
</form>
</code></pre>
<p>Use <code>form-inline</code> class for inline form elements (works on desktop resolutions).</p>
<form class="form-inline">
<fieldset>
<div class="form-element">
<label for="username">Username</label>
<input type="text" id="username" placeholder="Your username" class="form-input">
</div>
<div class="form-element">
<label for="password">Password</label>
<input type="text" id="password" placeholder="Your password" class="form-input">
</div>
<button type="submit" class="button button-primary">Send</button>
</fieldset>
</form>
<p>If not using labels in an inline form add <code>form-no-labels</code> to form element.</p>
<form class="form-inline form-no-labels">
<fieldset>
<div class="form-element">
<input type="text" id="username" placeholder="Your username" class="form-input">
</div>
<div class="form-element">
<button type="submit" class="button button-outlined">Send</button>
</div>
</fieldset>
</form><pre><code class="lang-html"> <form class='form-inline'>
<fieldset>
<div class='form-element'>
<label for='username'>Username</label>
<input type='text' id='username' placeholder='Your username' class='form-input'>
</div>
<div class='form-element'>
<label for='password'>Password</label>
<input type='text' id='password' placeholder='Your password' class='form-input'>
</div>
<button type='submit' class='button button-primary'>Send</button>
</fieldset>
</form>
</code></pre>
<h3>Required inputs</h3>
<p>To denotate that filling an input is mandatory add <code>required</code> attribute to an <code>input</code>, <code>textarea</code> or <code>select</code>.</p>
<input type="text" placeholder="This input is required" required class="form-input"><pre><code class="lang-html"> <input type='text' class='form-input form-element' placeholder='This input is required' required>
</code></pre>
<h3>Disabled inputs</h3>
<p>You can disable the following elements <code>input</code>, <code>select</code>, <code>textarea</code> and <code>button</code> by adding the <code>disabled</code> attribute.</p>
<input type="text" placeholder="This input is disabled" disabled class="form-input"><pre><code class="lang-html"> <input type='text' class='form-input' placeholder='This input is disabled' disabled>
</code></pre>
<h3>Input validity</h3>
<p>Use <code>input-invalid</code> and <code>input-valid</code> classes for error and success states respectively.</p>
<input type="text" value="@anyet" class="form-input input-invalid">
<input type="text" value="Philip Roberts" class="form-input input-valid "><pre><code class="lang-html"> <input type='text' value='@anyet' class='form-input form-element input-invalid'>
<input type='text' value='Philip Roberts' class='form-input form-element input-valid'>
</code></pre>
<h3>Other form elements</h3>
<p>Remember about wrapping both checkboxes and radio buttons in labels with <code>input-radio</code> and <code>input-checkbox</code> class.</p>
<form>
<fieldset>
<input type="file" class="form-input form-element">
<label class="disabled input-checkbox form-element">
<input type="checkbox" disabled>This is a disabled checkbox
</label>
<label class="input-radio form-element">
<input type="radio">This is a radio button
</label>
<select class="form-element">
<option>Option One</option>
</select>
</fieldset>
</form><pre><code class="lang-html"> <form>
<fieldset>
<input type='file' class='form-input form-element'>
<label for='checkbox' class='disabled input-checkbox form-element'>
<input type='checkbox' disabled>
This is a disabled checkbox
</label>
<label for='radio' class='input-radio form-element'>
<input type='radio'>
This is a radio button
</label>
<select class='form-element'>
<option>Option one</option>
</select>
</fieldset>
</form>
</code></pre>
</section>
<section id="progress">
<h2>Progress Bars</h2>
<p>Currently progress bars are built as <code>div</code> elements due to still incomplete implementation of <code>progress</code> element. Take note that progress meter is a dummy value that should be adjusted.</p>
<h3>Large progress bar</h3>
<div class="progress progress-large progress-success"><span class="meter"></span></div>
<div class="progress progress-large progress-warning"><span class="meter"></span></div>
<div class="progress progress-large progress-error"><span class="meter"></span></div>
<div class="progress progress-large"><span class="meter"></span></div><pre><code class="lang-html"> <div class='progress progress-large progress-success'>
<span class='meter'></span>
</div>
<div class='progress progress-large progress-warning'>
<span class='meter'></span>
</div>
<div class='progress progress-large progress-error'>
<span class='meter'></span>
</div>
<div class='progress progress-large'>
<span class='meter'></span>
</div>
</code></pre>
<h3>Small progress bar</h3>
<p>For small bars use <code>progress-small</code> class.</p>
<div class="progress progress-small progress-success"><span class="meter"></span></div>
<div class="progress progress-small progress-warning"><span class="meter"></span></div>
<div class="progress progress-small progress-error"><span class="meter"></span></div>
<div class="progress progress-small"><span class="meter"></span></div><pre><code class="lang-html"> <div class='progress progress-small'>
<span class='meter'></span>
</div>
</code></pre>
<h3>Rounded progress bar</h3>
<p>For rounded bars use <code>progress-rounded</code> class.</p>
<div class="progress progress-small progress-rounded progress-error"><span class="meter"></span></div>
<div class="progress progress-small progress-rounded progress-warning"><span class="meter"></span></div>
<div class="progress progress-small progress-rounded progress-success"><span class="meter"></span></div>
<div class="progress progress-small progress-rounded"><span class="meter"></span></div><pre><code class="lang-html"> <div class='progress progress-small progress-rounded'>
<span class='meter'></span>
</div>
</code></pre>
</section>
<section id="tables">
<h2>Tables</h2>
<p>When using tables remember about appropriate content grouping with <code>thead</code> and <code>tbody</code>. </p>
<div class="table-responsive">
<table>
<thead>
<tr>
<th>#</th>
<th>Name</th>
<th>Surname</th>
<th>Email</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>Adam</td>
<td>Brault</td>
<td> <a>[email protected]</a></td>
</tr>
<tr>
<td>2</td>
<td>Lynn </td>
<td>Fisher</td>
<td> <a>[email protected]</a></td>
</tr>
<tr>
<td>3</td>
<td>Adam</td>
<td>Baldwin</td>
<td><a>[email protected]</a></td>
</tr>
</tbody>
</table>
</div><pre><code class="lang-html"> <table>
<thead>
<tr>
<th>#</th>
<th>Name</th>
<th>Surname</th>
<th>Email</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>Adam</td>
<td>Brault</td>
<td>[email protected]</td>
</tr>
<tr>
<td>2</td>
<td>Lynn</td>
<td>Fisher</td>
<td>[email protected]</td>
</tr>
<tr>
<td>3</td>
<td>Adam</td>
<td>Baldwin</td>
<td>[email protected]</td>
</tr>
</tbody>
</table>
</code></pre>
<h3>Outlined tables</h3>
<p>Use <code>table-outlined</code> class for additional border around the <code>table</code>. For hover effects on rows add <code>table-with-hover</code>.</p>
<div class="table-responsive">
<table class="table-outlined table-with-hover">
<thead>
<tr>
<th>#</th>
<th>Name</th>
<th>Surname</th>
<th>Email</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>Adam</td>
<td>Brault</td>
<td> <a>[email protected]</a></td>