-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
1501 lines (1409 loc) · 52.4 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 lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="stylesheets/main.css" />
<title>Style Guide</title>
<script
defer
src="https://pro.fontawesome.com/releases/v5.0.9/js/all.js"
integrity="sha384-DtPgXIYsUR6lLmJK14ZNUi11aAoezQtw4ut26Zwy9/6QXHH8W3+gjrRDT+lHiiW4"
crossorigin="anonymous"
></script>
</head>
<body id="top">
<header>
<h1>Project Boilerplate</h1>
<p>A base style guide of UI elements for starting new projects.</p>
</header>
<aside>
<nav class="list-group">
<a href="#colors" class="list-group__item"> Colors </a>
<a href="#typography" class="list-group__item"> Typography </a>
<a href="#forms" class="list-group__item"> Forms </a>
<a href="#buttons" class="list-group__item"> Buttons </a>
<a href="#tables" class="list-group__item"> Tables </a>
<a href="#cards" class="list-group__item"> Cards </a>
<a href="#lists" class="list-group__item"> Lists </a>
<a href="#accordion" class="list-group__item"> Acordion </a>
<a href="#alert" class="list-group__item"> Alerts </a>
</nav>
</aside>
<main>
<div id="grid-toggle" class="toggle-button">
<input
type="checkbox"
name="grid-toggle"
value=""
id="grid-toggle-button"
class="toggle-button__input"
onchange="toggleGrid()"
data-show="false"
/>
<label for="grid-toggle-button" class="toggle-button__label">
<span class="button__icon u-hidden">
<i class="far fa-eye-slash"></i>
</span>
<span class="button__icon">
<i class="far fa-eye"></i>
</span>
Grid
</label>
</div>
<script type="text/javascript">
let body = document.querySelector("body");
let toggleButtonIcons = document.querySelectorAll(
"#grid-toggle .button__icon"
);
function toggleGrid() {
body.classList.toggle("show-grid");
for (var icon of toggleButtonIcons) {
icon.classList.toggle("u-hidden");
}
}
</script>
<!-- //==========================// -->
<!-- // COLORS // -->
<!-- //==========================// -->
<section id="colors">
<h1 class="u-pt-0">Colors</h1>
<p>
Colors can be used stylistically, but are more often used to
communicate meaning. Confirmation and success are generally green,
warnings are generally yellow, and errors and generally red. Links and
informational messages that require attention are usually treated with
a blue color. Primary and secondary colors are mostly presentational
and can be adjusted to fit the given context. Try to avoid using state
colors as primary or secondary colors if at all possible so that users
don't get confused.
</p>
<div class="grid">
<div>
<h3>State Colors</h3>
<div class="paint-chip paint-chip--primary">
<div class="paint-chip__color"></div>
<span class="paint-chip__title"> Primary Color </span>
<span class="paint-chip__values">
<span> #6B52C7 </span>
<span> $color-primary </span>
</span>
</div>
<div class="paint-chip paint-chip--secondary">
<div class="paint-chip__color"></div>
<span class="paint-chip__title"> Secondary Color </span>
<span class="paint-chip__values">
<span> #35247C </span>
<span> $color-secondary </span>
</span>
</div>
<div class="paint-chip paint-chip--success">
<div class="paint-chip__color"></div>
<span class="paint-chip__title"> Success Color </span>
<span class="paint-chip__values">
<span> #1A8A60 </span>
<span> $color-success </span>
</span>
</div>
<div class="paint-chip paint-chip--warning">
<div class="paint-chip__color"></div>
<span class="paint-chip__title"> Warning Color </span>
<span class="paint-chip__values">
<span> #FCA42D </span>
<span> $color-warning </span>
</span>
</div>
<div class="paint-chip paint-chip--danger">
<div class="paint-chip__color"></div>
<span class="paint-chip__title"> Danger Color </span>
<span class="paint-chip__values">
<span> #DA3E42 </span>
<span> $color-danger </span>
</span>
</div>
<div class="paint-chip paint-chip--info">
<div class="paint-chip__color"></div>
<span class="paint-chip__title"> Info Color </span>
<span class="paint-chip__values">
<span> #1861C8 </span>
<span> $color-info </span>
</span>
</div>
</div>
<div>
<h3>Grayscale Colors</h3>
<div class="paint-chip paint-chip--gray-100">
<div class="paint-chip__color"></div>
<span class="paint-chip__title"> Gray 100 </span>
<span class="paint-chip__values">
<span> #fafcfc </span>
<span> $gray-100 </span>
</span>
</div>
<div class="paint-chip paint-chip--gray-200">
<div class="paint-chip__color"></div>
<span class="paint-chip__title"> Gray 200 </span>
<span class="paint-chip__values">
<span> #c4c9cb </span>
<span> $gray-200 </span>
</span>
</div>
<div class="paint-chip paint-chip--gray-300">
<div class="paint-chip__color"></div>
<span class="paint-chip__title"> Gray 300 </span>
<span class="paint-chip__values">
<span> #9aa2a9 </span>
<span> $gray-300 </span>
</span>
</div>
<div class="paint-chip paint-chip--gray-400">
<div class="paint-chip__color"></div>
<span class="paint-chip__title"> Gray 400 </span>
<span class="paint-chip__values">
<span> #6F7281 </span>
<span> $gray-400 </span>
</span>
</div>
<div class="paint-chip paint-chip--gray-500">
<div class="paint-chip__color"></div>
<span class="paint-chip__title"> Gray 500 </span>
<span class="paint-chip__values">
<span> #53555c </span>
<span> $gray-500 </span>
</span>
</div>
<div class="paint-chip paint-chip--gray-600">
<div class="paint-chip__color"></div>
<span class="paint-chip__title"> Gray 600 </span>
<span class="paint-chip__values">
<span> #363639 </span>
<span> $gray-600 </span>
</span>
</div>
</div>
</div>
</section>
<!-- //==========================// -->
<!-- // TYPOGRAPHY // -->
<!-- //==========================// -->
<section id="typography">
<h1>Typography</h1>
<p>Base typographic elements and vertical rhythm.</p>
<h1>Heading 1: Gilroy Bold 44px</h1>
<p>
Inter Medium 16px. Lorem ipsum dolor sit amet, consectetur adipisicing
elit, sed do eiusmod tempor incididunt ut labore et dolore magna
aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco
laboris nisi ut aliquip ex ea commodo consequat.
<a href="#">Duis aute irure dolor</a> in reprehenderit in voluptate
velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint
occaecat cupidatat non proident, sunt in culpa qui officia deserunt
mollit anim id est laborum.
</p>
<h2>Heading 2: Gilroy Bold 32px</h2>
<p>
Inter Medium 16px. Lorem ipsum dolor sit amet, consectetur adipisicing
elit, sed do eiusmod tempor incididunt ut labore et dolore magna
aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco
laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor
in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla
pariatur. Excepteur sint occaecat cupidatat non proident, sunt in
culpa qui officia deserunt mollit anim id est laborum.
</p>
<h3>Heading 3: Gilroy Bold Uppercase 20px</h3>
<p>
Inter Medium 16px. Lorem ipsum dolor sit amet, consectetur adipisicing
elit, sed do eiusmod tempor incididunt ut labore et dolore magna
aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco
laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor
in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla
pariatur. Excepteur sint occaecat cupidatat non proident, sunt in
culpa qui officia deserunt mollit anim id est laborum.
</p>
<h4>Heading 4: Inter Medium 24px</h4>
<p>
Inter Medium 16px. Lorem ipsum dolor sit amet, consectetur adipisicing
elit, sed do eiusmod tempor incididunt ut labore et dolore magna
aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco
laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor
in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla
pariatur. Excepteur sint occaecat cupidatat non proident, sunt in
culpa qui officia deserunt mollit anim id est laborum.
</p>
<h5>Heading 5: Inter Bold 14px</h5>
<p>
Inter Medium 16px. Lorem ipsum dolor sit amet, consectetur adipisicing
elit, sed do eiusmod tempor incididunt ut labore et dolore magna
aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco
laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor
in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla
pariatur. Excepteur sint occaecat cupidatat non proident, sunt in
culpa qui officia deserunt mollit anim id est laborum.
</p>
<h6>Heading 6: Inter Medium Italic 16px</h6>
<p>
Inter Medium 16px. Lorem ipsum dolor sit amet, consectetur adipisicing
elit, sed do eiusmod tempor incididunt ut labore et dolore magna
aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco
laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor
in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla
pariatur. Excepteur sint occaecat cupidatat non proident, sunt in
culpa qui officia deserunt mollit anim id est laborum.
</p>
<div class="grid">
<div>
<h1>Heading 1</h1>
<h4 class="u-mb-lg">
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do
eiusmod tempor incididunt.
</h4>
<p>
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do
eiusmod tempor incididunt ut labore et dolore magna aliqua.
</p>
</div>
<div>
<h3 class="u-mt-md">Header 3</h3>
<p>
Lorem ipsum dolor sit amet consectetur adipisicing elit. Est
minima, adipisci porro totam in eligendi dolorem dignissimos velit
facilis fuga tempore neque natus repudiandae, unde necessitatibus
sit. Dolor optio corrupti fugit eveniet minima et. Odio tempora
similique eaque quae at illum voluptate nobis sint corporis, eos
placeat recusandae sed nam fuga excepturi perferendis. Sapiente ab
recusandae tempora odio eius quam mollitia numquam error quisquam
amet dicta ipsa, reiciendis ipsam accusantium ad ipsum eos?
Mollitia, necessitatibus?
</p>
</div>
</div>
</section>
<!-- //==========================// -->
<!-- // FORMS // -->
<!-- //==========================// -->
<section id="forms">
<h1>Forms</h1>
<p>
Forms are made up of three main components - a
<code>form</code> element, form controls (text inputs, checkboxes,
radio buttons), and form actions that include a submit button and
sometimes a cancel button.
</p>
<p>
It is also a best practice to include a <code>label</code> for each
input. If an input has accompanying help text be sure to set the
input's <code>aria-describedby</code> attribute to the
<code>id</code> of its help text element.
</p>
<h3>Text Inputs</h3>
<p>
Text based input fields are the most common type of form control. For
full support, every text field should have its <code>type</code> set.
</p>
<div class="form-group form-group--inline">
<label class="form-group__label" for="input1"> Input Label </label>
<input
id="input1"
class="form-group__input"
type="text"
name=""
value=""
placeholder="Text input"
/>
</div>
<h3>Select Boxes</h3>
<p>
Select boxes should be used if the user has more than 4 options to
choose from. Otherwise, it's more beneficial to use radio buttons or
checkboxes.
</p>
<div class="form-group form-group--select form-group--inline">
<label for="#select5" class="form-group__label"> Select Label </label>
<select name="colors" id="select5" class="form-group__input">
<option value="0">Select a color</option>
<option value="1">Red</option>
<option value="2">Blue</option>
<option value="3">Green</option>
<option value="4">Yellow</option>
</select>
</div>
<h3>Text Areas</h3>
<p>
Textareas should be used for long form inputs where the user will need
to potentially input multiple lines of text.
</p>
<div class="form-group form-group--textarea">
<label for="textarea1" class="form-group__label">Text Area</label>
<textarea
id="textarea1"
class="form-group__input"
name=""
placeholder="Text area"
></textarea>
</div>
<h3>Checkboxes and Radio Buttons</h3>
<p>
Checkboxes and radio buttons use the same
<code>form-group</code> structure as text inputs. However, many
<code>form-group__input</code> elements can be added in succession
within the form group to create a list of options.
</p>
<div class="grid">
<div class="form-group form-group--checkbox">
<label for="" class="form-group__label"> Checkboxes </label>
<label class="form-group__input">
<input
type="checkbox"
name="checkbox"
class="form-group__checkbox"
/>
<span class="form-group__checkbox-label"> Option 1 </span>
</label>
<label class="form-group__input">
<input
type="checkbox"
name="checkbox"
class="form-group__checkbox"
/>
<span class="form-group__checkbox-label">
Long Name Option 2
</span>
</label>
<label class="form-group__input">
<input
type="checkbox"
name="checkbox"
class="form-group__checkbox"
/>
<span class="form-group__checkbox-label"> Option 3 </span>
</label>
</div>
<div class="form-group form-group--radio">
<label for="" class="form-group__label"> Radio Buttons </label>
<label class="form-group__input">
<input type="radio" name="radio" class="form-group__radio" />
<span class="form-group__radio-label"> Option 1 </span>
</label>
<label class="form-group__input">
<input type="radio" name="radio" class="form-group__radio" />
<span class="form-group__radio-label"> Long Name Option 2 </span>
</label>
<label class="form-group__input">
<input type="radio" name="radio" class="form-group__radio" />
<span class="form-group__radio-label"> Option 3 </span>
</label>
</div>
</div>
<h3>File Upload Input</h3>
<div class="grid">
<div class="form-group form-group--file">
<label for="file-input1" class="form-group__label">
Upload Files
</label>
<label for="file-input1" class="form-group__input">
<input type="file" id="file-input1" class="form-group__file" />
<span class="form-group__file-icon">
<i class="fal fa-cloud-upload"></i>
</span>
<span class="form-group__file-label">
Select files to upload
</span>
</label>
</div>
<div class="form-group form-group--file">
<label for="file-input2" class="form-group__label">
Upload files
</label>
<label
for="file-input2"
class="form-group__input"
aria-describedby="help-block4"
>
<input type="file" id="file-input2" class="form-group__file" />
<span class="form-group__file-icon">
<i class="fal fa-cloud-upload"></i>
</span>
<span class="form-group__file-label">
Select files to upload
</span>
</label>
<span id="help-block4" class="form-group__help-text">
<i class="far fa-info-circle"></i>
Acceptable file types: .jpg .png .gif
</span>
</div>
</div>
<h3>Toggles</h3>
<div class="grid">
<div class="">
<label for="" id="binary-label">Binary</label>
<div class="form-group form-group--toggle">
<label for="toggle1" class="form-group__label"
>Enable preference</label
>
<input
type="checkbox"
name="assembly"
id="toggle1"
class="form-group__toggle-checkbox"
/>
<label for="toggle1" class="form-group__toggle"></label>
</div>
<div class="form-group form-group--toggle">
<label for="toggle2" class="form-group__label"
>Enable preference</label
>
<input
type="checkbox"
name="assembly"
id="toggle2"
class="form-group__toggle-checkbox"
/>
<label for="toggle2" class="form-group__toggle"></label>
</div>
<div class="form-group form-group--toggle">
<label for="toggle3" class="form-group__label"
>Enable preference</label
>
<input
type="checkbox"
name="assembly"
id="toggle3"
class="form-group__toggle-checkbox"
/>
<label for="toggle3" class="form-group__toggle"></label>
</div>
</div>
<div class="">
<label for="" id="toggle-button-label">Toggle Buttons</label>
<div class="combo-button combo-button--stretch">
<div class="toggle-button">
<input
type="radio"
name="toggle-buttons"
value=""
id="toggle-button1"
class="toggle-button__input"
/>
<label for="toggle-button1" class="toggle-button__label"
>Option 1</label
>
</div>
<div class="toggle-button">
<input
type="radio"
name="toggle-buttons"
value=""
id="toggle-button2"
class="toggle-button__input"
/>
<label for="toggle-button2" class="toggle-button__label"
>Option 2</label
>
</div>
<div class="toggle-button">
<input
type="radio"
name="toggle-buttons"
value=""
id="toggle-button3"
class="toggle-button__input"
/>
<label for="toggle-button3" class="toggle-button__label"
>Option 3</label
>
</div>
</div>
</div>
</div>
<h3>States & Validation</h3>
<div class="grid grid-columns">
<!-- success -->
<div class="form-group form-group--success">
<label class="form-group__label" for="states-input1">
Input Label
</label>
<input
id="states-input1"
class="form-group__input"
type="text"
name=""
value=""
placeholder="Success"
/>
<span class="form-group__help-text">
<i class="far fa-check"></i>
Success
</span>
</div>
<!-- warning -->
<div class="form-group form-group--warning">
<label class="form-group__label" for="states-input2">
Input Label
</label>
<input
id="states-input2"
class="form-group__input"
type="text"
name=""
value=""
placeholder="Warning"
/>
<span class="form-group__help-text">
<i class="far fa-exclamation-triangle"></i>
Warning
</span>
</div>
<!-- danger -->
<div class="form-group form-group--danger">
<label class="form-group__label" for="states-input3">
Input Label
</label>
<input
id="states-input3"
class="form-group__input"
type="text"
name=""
value=""
placeholder="Error"
/>
<span class="form-group__help-text">
<i class="far fa-times"></i>
Error
</span>
</div>
<!-- info -->
<div class="form-group form-group--info">
<label class="form-group__label" for="states-input4">
Input Label
</label>
<input
id="states-input4"
class="form-group__input"
type="text"
name=""
value=""
placeholder="Info"
/>
<span class="form-group__help-text">
<i class="far fa-info-circle"></i>
Info
</span>
</div>
<!-- disabled -->
<div class="form-group">
<label class="form-group__label" for="states-input5">
Input Label
</label>
<input
id="states-input5"
class="form-group__input"
type="text"
name=""
value=""
placeholder="Disabled"
disabled
/>
<span class="form-group__help-text">
<i class="far fa-question-circle"></i>
Disabled
</span>
</div>
<!-- readonly -->
<div class="form-group">
<label class="form-group__label" for="states-input6">
Input Label
</label>
<input
id="states-input6"
class="form-group__input"
type="text"
name=""
value="Read Only"
placeholder="Text input"
readonly
/>
<span class="form-group__help-text">
<i class="far fa-eye"></i>
Read Only
</span>
</div>
</div>
<h3>Icons</h3>
<div class="grid">
<!-- left -->
<div class="form-group form-group--has-icon-left">
<label class="form-group__label" for="icons-input1">
Input Label
</label>
<input
id="icons-input1"
class="form-group__input"
type="text"
name=""
value=""
placeholder="Text input"
/>
<span class="form-group__input-icon form-group__input-icon--left">
<i class="far fa-user"></i>
</span>
</div>
<!-- right -->
<div class="form-group form-group--has-icon-right">
<label class="form-group__label" for="icons-input2">
Input Label
</label>
<input
id="icons-input2"
class="form-group__input"
type="text"
name=""
value=""
placeholder="Text input"
/>
<span
class="form-group__input-icon form-group__input-icon--right form-group__input-icon--success"
>
<i class="far fa-check"></i>
</span>
</div>
<!-- both -->
<div
class="form-group form-group--has-icon-left form-group--has-icon-right"
>
<label class="form-group__label" for="icons-input3">
Input Label
</label>
<input
id="icons-input3"
class="form-group__input"
type="text"
name=""
value=""
placeholder="Text input"
/>
<span class="form-group__input-icon form-group__input-icon--left">
<i class="far fa-user"></i>
</span>
<span
class="form-group__input-icon form-group__input-icon--right form-group__input-icon--success"
>
<i class="far fa-check"></i>
</span>
</div>
</div>
</section>
<!-- //==========================// -->
<!-- // BUTTONS // -->
<!-- //==========================// -->
<section id="buttons">
<h1>Buttons</h1>
<p>
Use any combination of the available button classes and modifiers to
quickly create a styled button.
</p>
<h3>Default Buttons</h3>
<p>
Default buttons should be used for any primary user action, such as
submit buttons.
</p>
<div class="grid">
<button class="button">Button</button>
<button class="button button--primary">Primary</button>
<button class="button button--secondary">Secondary</button>
<button class="button button--success">Success</button>
<button class="button button--warning">Warning</button>
<button class="button button--danger">Danger</button>
<button class="button button--info">Info</button>
<button class="button disabled" disabled>Disabled</button>
</div>
<h3>Outline Buttons</h3>
<p>
Outlined buttons have no background color and colored text. All cancel
buttons within a form should be outlined buttons.
</p>
<div class="grid">
<button class="button button--outline">Button</button>
<button class="button button--outline button--primary">
Primary
</button>
<button class="button button--outline button--secondary">
Secondary
</button>
<button class="button button--outline button--success">
Success
</button>
<button class="button button--outline button--warning">
Warning
</button>
<button class="button button--outline button--danger">Danger</button>
<button class="button button--outline button--info">Info</button>
<button class="button button--outline disabled" disabled>
Disabled
</button>
</div>
<h3>Link Buttons</h3>
<p>
Link buttons work particularly well in situations where you might use
a small button (e.g. within a table cell) to focus more visual
attention on the data rather than a bright colorful button.
</p>
<div class="grid">
<button class="button button--link">Button</button>
<button class="button button--link button--primary">Primary</button>
<button class="button button--link button--secondary">
Secondary
</button>
<button class="button button--link button--success">Success</button>
<button class="button button--link button--warning">Warning</button>
<button class="button button--link button--danger">Danger</button>
<button class="button button--link button--info">Info</button>
<button class="button button--link disabled" disabled>
Disabled
</button>
</div>
<h3>Icon Buttons</h3>
<p>
Icon buttons can be used in a situations where you need to save space,
or if there are several secondary actions the that user can take. All
icon buttons have a tooltip built in so be sure to set the
<code>aria-label=""</code> property for good accessibility.
</p>
<div class="grid">
<button class="button button--icon" aria-label="Menu">
<i class="far fa-bars"></i>
</button>
<button class="button button--icon button--primary" aria-label="Menu">
<i class="far fa-bars"></i>
</button>
<button
class="button button--icon button--secondary"
aria-label="Menu"
>
<i class="far fa-bars"></i>
</button>
<button class="button button--icon button--success" aria-label="Menu">
<i class="far fa-bars"></i>
</button>
<button class="button button--icon button--warning" aria-label="Menu">
<i class="far fa-bars"></i>
</button>
<button class="button button--icon button--danger" aria-label="Menu">
<i class="far fa-bars"></i>
</button>
<button class="button button--icon button--info" aria-label="Menu">
<i class="far fa-bars"></i>
</button>
<button
class="button button--icon disabled"
aria-label="Menu"
disabled
>
<i class="far fa-bars"></i>
</button>
</div>
<h3>Rounded Buttons</h3>
<p>
Rounds the bounds of the button into a pill shape. This class can be
added to any of the other button moddifiers to achieve the same
effect.
</p>
<div class="grid">
<button class="button button--rounded">Button</button>
<button class="button button--rounded button--primary">
Primary
</button>
<button class="button button--rounded button--secondary">
Secondary
</button>
<button class="button button--rounded button--success">
Success
</button>
<button class="button button--rounded button--warning">
Warning
</button>
<button class="button button--rounded button--danger">Danger</button>
<button class="button button--rounded button--info">Info</button>
<button class="button button--rounded disabled" disabled>
Disabled
</button>
</div>
<h3>Small Buttons</h3>
<p>
Small buttons fit well inside of table cells and line items. This
class can be added to any of the other button moddifiers to achieve
the same effect.
</p>
<div class="grid u-mb-lg">
<button class="button button--sm">Button</button>
<button class="button button--sm button--primary">Primary</button>
<button class="button button--sm button--secondary">Secondary</button>
<button class="button button--sm button--success">Success</button>
<button class="button button--sm button--warning">Warning</button>
<button class="button button--sm button--danger">Danger</button>
<button class="button button--sm button--info">Info</button>
<button class="button button--sm disabled" disabled>Disabled</button>
</div>
</section>
<!-- //==========================// -->
<!-- // TABELS // -->
<!-- //==========================// -->
<section id="tables">
<h1>Tables</h1>
<p>
Tables have several variations depending on the data that is being
displayed or what needs to be done. They can be bare, striped and/or
have actionable controls.
</p>
<h3>Basic Tables</h3>
<p>
All <code><table></code> elements are wraped in a
<code>.table</code> container for proper styling. Each
<code><table></code> element shoud consist of a
<code><thead></code> for all columns headers, a
<code><tbody></code> for all table data and occasionally a
<code><tfoot></code> if needed.
</p>
<div class="table">
<table>
<thead>
<tr>
<th>Product Number</th>
<th>Quantity</th>
<th>Product Description</th>
<th>Design File</th>
<th>Department</th>
</tr>
</thead>
<tbody>
<tr>
<td>T1234</td>
<td>3</td>
<td>Name Tag</td>
<td>file_name.cdr</td>
<td>Production</td>
</tr>
<tr>
<td>T1234</td>
<td>3</td>
<td>Name Tag</td>
<td>file_name.cdr</td>
<td>Production</td>
</tr>
<tr>
<td>T1234</td>
<td>3</td>
<td>Name Tag</td>
<td>file_name.cdr</td>
<td>Production</td>
</tr>
<tr>
<td>T1234</td>
<td>3</td>
<td>Name Tag</td>
<td>file_name.cdr</td>
<td>Production</td>
</tr>
<tr>
<td>T1234</td>
<td>3</td>
<td>Name Tag</td>
<td>file_name.cdr</td>
<td>Production</td>
</tr>
</tbody>
</table>
</div>
<h3>Striped Tables</h3>
<p>
Striped tables have a slight variation in background color on every
other row. This helps with legibility, particularly when the table has
many rows.
</p>
<p>
To create a striped table, simply amend the
<code>table--striped</code> class to the containing
<code><div class="table"> ... </div></code>
</p>
<div class="table table--striped">
<table>
<thead>
<tr>
<th>Product Number</th>
<th>Quantity</th>
<th>Product Description</th>
<th>Design File</th>
<th>Department</th>
</tr>
</thead>