forked from carlobernardini/nice
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
3322 lines (3306 loc) · 178 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 http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
<meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="white">
<title>Nice!</title>
<link href="docs/docs.min.css" rel="stylesheet">
<link href="dist/nice.css" rel="stylesheet">
<link href="//cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
<link rel="icon" type="image/png" sizes="32x32" href="assets/favicons/textkernel/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="96x96" href="assets/favicons/textkernel/favicon-96x96.png">
<link rel="icon" type="image/png" sizes="16x16" href="assets/favicons/textkernel/favicon-16x16.png">
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/mark.js/8.9.0/jquery.mark.min.js"></script>
<script src="docs/docs.js"></script>
</head>
<body class="nice-fixed-header">
<header class="nice-header fixed">
<div class="nice-header-container">
<h1 class="nice-header-brand">
<a href="index.html">
<!--
This example uses an SVG logo by default, with a fallback trick for old browsers.
You can also use a regular <img /> element without SVG:
<img src="assets/textkernel.png" />
-->
<svg height="30" width="172">
<image xlink:href="assets/textkernel.svg" src="assets/textkernel@2x.png" width="172" height="30" />
</svg>
</a>
</h1>
<div class="nice-header-collapse">
<form class="nice-header-form" onsubmit="return false">
<div class="nice-header-input-wrapper">
<input id="search" type="text" placeholder="Search..." class="nice-form-control" />
<button type="submit">
<i class="fa fa-search"></i>
</button>
</div>
</form>
<ul class="nice-header-menu menu-pills">
<li class="highlight primary">
<a href="index.html" class="icon fa-book">
Documentation
</a>
<ul id="docs-sections">
<li class="has-children">
<a href="#nice-colors">Colors</a>
<ul>
<li>
<a href="https://app.frontify.com/d/apB5ernOJZzj/textkernel-branding-guideline" target="_blank" class="additional-icon fw frontify">
Brand Guidelines
</a>
</li>
</ul>
</li>
<li>
<a href="#nice-static-assets">Static assets</a>
</li>
<li>
<a href="#nice-getting-started">Getting started</a>
</li>
<li>
<a href="#nice-font-icons">Font icons</a>
</li>
<li class="has-children">
<span>Layout</span>
<ul>
<li>
<a href="#nice-grid-system">Grid system</a>
</li>
<li>
<a href="#nice-flex-grid">Flexible grid</a>
</li>
</ul>
</li>
<li>
<a href="#nice-page-header">Page header</a>
</li>
<li>
<a href="#nice-page-footer">Page footer</a>
</li>
<li class="has-children">
<span>UI Elements</span>
<ul>
<div class="multi-column col-2">
<ul>
<li>
<a href="#nice-buttons">Buttons</a>
</li>
<li>
<a href="#nice-toggle">Toggle switches</a>
</li>
<li>
<a href="#nice-dropdowns">Dropdowns</a>
</li>
<li>
<a href="#nice-scale">Scale selection</a>
</li>
<li>
<a href="#nice-range-slider">Range slider</a>
</li>
<li>
<a href="#nice-tags">Tags</a>
</li>
<li>
<a href="#nice-tabs">Tabs</a>
</li>
<li>
<a href="#nice-modal-dialogs">Modal dialogs</a>
</li>
<li>
<a href="#nice-stepper">Stepper</a>
</li>
<li>
<a href="#nice-login-dialog">Login dialog</a>
</li>
</ul>
<ul>
<li>
<a href="#nice-breadcrumb">Breadcrumbs</a>
</li>
<li>
<a href="#nice-pagination">Pagination</a>
</li>
<li>
<a href="#nice-menus">Menus</a>
</li>
<li>
<a href="#nice-panels">Panels</a>
</li>
<li>
<a href="#nice-stacked-lists">Stacked lists</a>
</li>
<li>
<a href="#nice-alerts">Alerts</a>
</li>
<li>
<a href="#nice-tooltips-popovers">Tooltips & popovers</a>
</li>
<li>
<a href="#nice-cards">Cards</a>
</li>
<li>
<a href="#nice-progress-loading">Progress and loading</a>
</li>
<li>
<a href="#nice-code-blocks">Code blocks</a>
</li>
</ul>
</div>
</ul>
</li>
<li>
<a href="#nice-form-elements">Form elements</a>
</li>
<li>
<a href="#nice-tables">Tables</a>
</li>
<li>
<a href="#nice-helper-classes">Helper classes</a>
</li>
<li>
<a href="#nice-browser-support">Browser support</a>
</li>
</ul>
</li>
<li class="highlight info">
<a href="https://github.com/textkernel/nice" target="_blank" class="icon fa-github">
Project
</a>
<ul>
<li>
<a href="https://www.npmjs.com/package/@textkernel/nice" target="_blank">NPM Package</a>
</li>
<li>
<a href="https://www.npmjs.com/package/@textkernel/nice-react" target="_blank">Nice! React Components</a>
</li>
<li>
<a href="https://github.com/textkernel/nice/issues" target="_blank">Issues and Requests</a>
</li>
</ul>
</li>
<li class="highlight good">
<a href="https://app.frontify.com/d/apB5ernOJZzj/textkernel-branding-guideline" target="_blank" class="additional-icon fw frontify">
Brand Guidelines
</a>
</li>
<li class="highlight brand">
<a href="http://textkernel.com" target="_blank" class="product-icon fw textkernel">
Textkernel
</a>
</li>
</ul>
<ul class="nice-header-menu menu-alt">
<li>
<a href="https://github.com/textkernel/nice/issues/new" class="icon fa-external-link" target="_blank">
Report issue
</a>
</li>
</ul>
</div>
<button type="button" class="nice-header-toggle collapsed">
<span class="icon-bar top-bar"></span>
<span class="icon-bar middle-bar"></span>
<span class="icon-bar bottom-bar"></span>
</button>
</div><!-- .nice-header-container -->
</header>
<div class="banner">
<div class="nice-container nice-mobile-hide">
<h1 class="docs">
<span class="nice-brand">Nice!</span>
<small>Framework for reusable UI elements</small>
</h1>
</div>
</div>
<section class="nice-container">
<div class="nice-row" id="nice-colors">
<h2 class="docs">Colors</h2>
<div class="nice-col-8 nice-col-small-12 nice-example">
<div class="nice-flex-container wrap">
<div class="color-swatch nice-circle nice-bg-brand">
<strong>Brand</strong>
#009CC1
</div>
<div class="color-swatch nice-circle nice-bg-link">
<strong>Link</strong>
#009CC1
</div>
<div class="color-swatch nice-circle nice-bg-text">
<strong>Text</strong>
#1D1D1B
</div>
<div class="color-swatch nice-circle nice-bg-primary">
<strong>Primary</strong>
#F18700
</div>
<div class="color-swatch nice-circle nice-bg-accent">
<strong>Accent</strong>
#182642
</div>
<div class="color-swatch nice-circle nice-bg-muted">
<strong>Muted</strong>
#B2B2B2
</div>
<div class="color-swatch nice-circle nice-bg-good">
<strong>Good</strong>
#5CB85C
</div>
<div class="color-swatch nice-circle nice-bg-info">
<strong>Info</strong>
#60C4DE
</div>
<div class="color-swatch nice-circle nice-bg-warning">
<strong>Warning</strong>
#FFB819
</div>
<div class="color-swatch nice-circle nice-bg-bad">
<strong>Bad</strong>
#F42534
</div>
</div>
</div>
<div class="nice-col-4 nice-col-small-12">
<p class="nice-alert warning text-align-justify">
<i class="fa fa-warning"></i> When copying specific color codes, please make sure to take these directly from the official <a href="https://app.frontify.com/d/apB5ernOJZzj/textkernel-branding-guideline" target="_blank">Brand Guidelines</a>.
</p>
</div>
</div>
<div class="nice-row" id="nice-static-assets">
<h2 class="docs">Static assets</h2>
<div class="nice-col-6 nice-col-small-12 nice-example">
<table class="nice-table bordered small-body">
<thead>
<tr>
<th>Resource</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<a href="assets/textkernel.svg" target="_blank">assets/textkernel.svg</a>
</td>
<td>Responsive SVG logo</td>
</tr>
<tr>
<td>
<a href="assets/textkernel@2x.png" target="_blank">assets/textkernel@2x.png</a>
</td>
<td>Double-sized PNG logo for high resolution displays (1726x300 pixels)</td>
</tr>
<tr>
<td>
<a href="assets/textkernel.png" target="_blank">assets/textkernel.png</a>
</td>
<td>Small-scale PNG logo (863x150 pixels)</td>
</tr>
<tr>
<td>
<a href="assets/textkernel-tagline.svg" target="_blank">assets/textkernel-tagline.svg</a>
</td>
<td>Responsive SVG logo with tagline</td>
</tr>
<tr>
<td>
<a href="assets/textkernel-tagline@2x.png" target="_blank">assets/textkernel-tagline@2x.png</a>
</td>
<td>Double-sized PNG logo with tagline for high resolution displays (1489x400 pixels)</td>
</tr>
<tr>
<td>
<a href="assets/textkernel-tagline.png" target="_blank">assets/textkernel-tagline.png</a>
</td>
<td>Small-scale PNG logo with tagline (745x200 pixels)</td>
</tr>
<tr>
<td>
<a href="https://github.com/textkernel/nice/tree/master/assets/favicons" target="_blank">assets/favicons/</a>
</td>
<td>Favicons for various devices</td>
</tr>
</tbody>
</table>
</div>
<div class="nice-col-6 nice-col-small-12 text-align-justify">
<p class="nice-alert info icon fa-lightbulb-o">
Nice! is bundeled with some frequently used assets such as the Textkernel logo. Always make sure to use these readily available assets instead of using customized ones. Assets that are bundeled with Nice! are guaranteed to be of high quality and to use accurate colors.<br />
The use of <a href="https://developer.mozilla.org/en-US/docs/Web/SVG/SVG_as_an_Image" target="_blank" title="MDN: SVG as an Image">SVG images</a> is highly recommended because as these can scale any size without quality loss.
</p>
</div>
</div>
<div class="nice-row" id="nice-getting-started">
<h2 class="docs">Getting started</h2>
<div class="nice-col-5 nice-col-small-12">
<h3>Install with NPM</h3>
<p>
Nice! is available as an <a href="https://www.npmjs.com/package/@textkernel/nice" target="_blank">NPM module</a>. Install it with the following command:
</p>
<code class="docs">$ npm install @textkernel/nice</code>
<h3>Clone the repository</h3>
<p>
Alternatively, you can clone the Github repository. This will not include the precompiled <code class="inline">dist/</code> folder.
</p>
<code class="docs">$ git clone https://github.com/textkernel/nice.git</code>
</div>
<div class="nice-col-7 nice-col-small-12">
<h3>Start with a basic HTML structure</h3>
<p>
Make sure you use the <a href="https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/HTML5/Introduction_to_HTML5" target="_blank">HTML5</a> doctype and apply the necessary meta-tags:
</p>
<div class="docs-code-wrapper">
<code class="docs"><!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1<span class="variation">, user-scalable=no</span>">
<link rel="stylesheet" href="dist/nice.min.css" />
<!-- Optional favicons in multiple sizes -->
<span class="variation"><link rel="icon" href="assets/favicons/textkernel/favicon-16x16.png" />
<link rel="icon" href="assets/favicons/textkernel/favicon-32x32.png" />
<link rel="icon" href="assets/favicons/textkernel/favicon-96x96.png" /></span>
</head>
<body>
...
</body>
</html></code>
<ul class="doc-code-tools">
<li><a href="#" class="toggle">Expand</a></li>
<li><a href="#" class="copy">Copy</a></li>
</ul>
</div>
</div>
</div>
<div class="nice-row" id="nice-font-icons">
<h2 class="docs">Font icons</h2>
<p>
It is recommended that you use <a href="http://fontawesome.io/icons/" target="_blank">FontAwesome</a> with Nice!, however, you need to include it yourself (either by linking to a CDN or downloading the package into your project).<br />A custom font iconset is included for all Textkernel products listed below. The font family is called “TKProducts”. All font icons are scalable vector graphics, meaning they can be resized without loss of quality.
</p>
<div class="nice-col-6 nice-col-small-12 nice-example">
<i class="product-icon extract" title="product-icon extract"></i>
<i class="product-icon harvester" title="product-icon harvester"></i>
<i class="product-icon jobfeed" title="product-icon jobfeed"></i>
<i class="product-icon match" title="product-icon match"></i>
<i class="product-icon search" title="product-icon search"></i>
<i class="product-icon sourcebox" title="product-icon sourcebox"></i>
<i class="product-icon wte" title="product-icon wte"></i>
<i class="product-icon tkportal" title="product-icon tkportal"></i>
<i class="product-icon connector" title="product-icon connector"></i>
<i class="product-icon textkernel" title="product-icon textkernel"></i>
</div>
<div class="nice-col-6 nice-col-small-12">
<p class="nice-alert warning icon fa-lightbulb-o">
<strong>Please note</strong> FontAwesome is not included with Nice!. Only Textkernel brand icons are.
</p>
<code class="docs"><i class="<span class="main">product-icon</span> <span class="variation">extract</span>"></i>
<i class="<span class="main">product-icon</span> <span class="variation">harvester</span>"></i>
<i class="<span class="main">product-icon</span> <span class="variation">jobfeed</span>"></i>
<i class="<span class="main">product-icon</span> <span class="variation">match</span>"></i>
<i class="<span class="main">product-icon</span> <span class="variation">search</span>"></i>
<i class="<span class="main">product-icon</span> <span class="variation">sourcebox</span>"></i>
<i class="<span class="main">product-icon</span> <span class="variation">wte</span>"></i>
<i class="<span class="main">product-icon</span> <span class="variation">tkportal</span>"></i>
<i class="<span class="main">product-icon</span> <span class="variation">connector</span>"></i>
<i class="<span class="main">product-icon</span> <span class="variation">textkernel</span>"></i></code>
</div>
</div>
<div class="nice-row" id="nice-grid-system">
<h2 class="docs">Grid system</h2>
<div class="nice-col-6 nice-col-small-12 nice-example">
<!-- <code class="docs">.nice-container
.nice-row
.nice-col-[1-12]
.nice-shift-[1-11]</code> -->
<div class="nice-responsive-container">
<div class="nice-container grid">
.nice-container
<div class="nice-row">
.nice-row <br />
<div class="nice-col-4">
.nice-col-4
</div>
<div class="nice-col-3">
.nice-col-3
</div>
<div class="nice-col-5">
.nice-col-5
</div>
</div>
<div class="nice-row">
.nice-row <br />
<div class="nice-shift-3 nice-col-5">
.nice-shift-3.nice-col-5
</div>
<div class="nice-col-4">
.nice-col-4
</div>
</div>
</div>
</div>
<table class="nice-table bordered">
<tbody>
<tr>
<th>Container</th>
<td>
<code class="inline">.nice-<strong>container</strong></code>
</td>
</tr>
<tr>
<th>Full-width container</th>
<td>
<code class="inline">.nice-<strong>container-fluid</strong></code>
</td>
</tr>
<tr>
<th>Row</th>
<td>
<code class="inline">.nice-<strong>row</strong></code>
</td>
</tr>
<tr>
<th>Default column</th>
<td>
<code class="inline">.nice-<strong>col</strong>-[1-12]</code>
</td>
</tr>
<tr>
<th>Column (mobile breakpoint)</th>
<td>
<code class="inline">.nice-<strong>col-mobile</strong>-[1-12]</code>
</td>
</tr>
<tr>
<th>Column (tablet breakpoint)</th>
<td>
<code class="inline">.nice-<strong>col-tablet</strong>-[1-12]</code>
</td>
</tr>
<tr>
<th>Column (desktop breakpoint)</th>
<td>
<code class="inline">.nice-<strong>col-desktop</strong>-[1-12]</code>
</td>
</tr>
<tr>
<th>Column (mobile and tablet)</th>
<td>
<code class="inline">.nice-<strong>col-mobile-and-tablet</strong>-[1-12]</code>
</td>
</tr>
<tr>
<th>Offset</th>
<td>
<code class="inline">.nice-<strong>shift</strong>-[1-11]</code>
</td>
</tr>
<tr>
<th>Offset (mobile breakpoint)</th>
<td>
<code class="inline">.nice-<strong>shift-mobile</strong>-[1-11]</code>
</td>
</tr>
<tr>
<th>Offset (tablet breakpoint)</th>
<td>
<code class="inline">.nice-<strong>shift-tablet</strong>-[1-11]</code>
</td>
</tr>
<tr>
<th>Offset (desktop breakpoint)</th>
<td>
<code class="inline">.nice-<strong>shift-desktop</strong>-[1-11]</code>
</td>
</tr>
</tbody>
</table>
</div>
<div class="nice-col-6 nice-col-small-12 docs">
<p>
Nice! has an integrated grid system as well as a range of <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Flexible_Box_Layout/Using_CSS_flexible_boxes" target="_blank" title="MDN: Using CSS Flexible Boxes">Flexbox</a> helper classes.
</p>
<p>
<h3>Container</h3>
Containers have a maximum width and center themselves relatively to their parent element in the DOM tree. There are two types of containers: <code class="inline">.nice-container</code> (fixed-width) and <code class="inline">.nice-container-fluid</code> (full-width).
</p>
<p>
<h3>Rows</h3>
Rows can be used for wrapping columns horizontally and should be used inside a container.
</p>
<p>
<h3>Columns</h3>
The grid system is based on a 12-column layout, meaning that all columns in a row should add up to 12. A column can have an offset by using <code class="inline">.nice-shift-x</code>, where `x` represents the number of columns it should be shifted to the right with a maximum of 11. Columns should be used as direct children of a row.
</p>
<p>
<h3>Responsive grid</h3>
Columns can span variable widths by targeting specific media types. Suppose you want to have a 12-column layout on a desktop-sized viewport, but have it span 6 columns on a mobile view: you would then use <code class="inline">.nice-col-12 .nice-col-mobile-6</code>. Similar classes are available for desktop and tablet view. Make sure to always specify a general column size (without specific media target).
</p>
</div>
</div>
<div class="nice-row" id="nice-flex-grid">
<h2 class="docs">Flexible grid</h2>
<p class="nice-alert warning icon fa-warning">
<strong>Please note:</strong> Flexible grids are only supported by <a href="http://caniuse.com/#feat=flexbox" target="_blank" title="Can I use: Flexbox support">modern browsers</a>. If your application requires comprehensive cross browser compatibility, it is recommended to only use the regular <a href="#nice-grid-system">grid system</a> for your layout.
</p>
<div class="nice-col-6 nice-col-small-12">
<ul>
<li>
<h4>
<code class="inline"><strong>.nice-flex-container</strong></code>
</h4>
Defines the flex container and enables flex content for all direct children.
</li>
<li>
<h4>
<code class="inline"><strong>.align-</strong>[start|end|center|baseline|stretch]</code>
</h4>
Defines the way in which items are aligned along the cross axis on the current line.
</li>
<li>
<h4>
<code class="inline"><strong>.justify-</strong>[start|end|center|space-between|space-around]</code>
</h4>
Defines how the items are distributed along the main axis.
</li>
</ul>
</div>
<div class="nice-col-6 nice-col-small-12">
<ul>
<li>
<h4>
<code class="inline">.no-wrap .wrap .wrap-reverse</code>
</h4>
Change the way in which items are wrapped, and in which direction (rtl / ltr).
</li>
<li>
<h4>
<code class="inline"><strong>.grow-</strong>[stretch|double]</code>
</h4>
Defines the ability for a flex item to grow if necessary. If all items are set to `.grow-stretch`, the remaining space in the container will be distributed equally to all children. If one of the children has `.grow-double`, the remaining space would take up twice as much space as the others (or it will try to, at least).
</li>
<li>
<h4>
<code class="inline"><strong>.direction-</strong>[row|row-reverse|column|column-reverse]</code>
</h4>
Establishes the main-axis, thus defining the direction flex items are placed in the flex container.
</li>
</ul>
</div>
</div>
<div class="nice-row" id="nice-page-header">
<h2 class="docs">Page header</h2>
<div class="nice-col-12">
<p>
You can see an example of this component at the top of this page. The header component is responsive out of the box, meaning the menu becomes off-canvas and toggleable on mobile views.
</p>
<p>
In case you need the header to stick to the top of the viewport, apply the additional <code class="inline">fixed</code> class to the top level header element and <code class="inline">nice-fixed-header</code> to the body element.
</p>
</div>
<div class="nice-col-7 nice-col-mobile-12">
<div class="docs-code-wrapper">
<code class="docs"><header class="<span class="main">nice-header</span> <span class="variation">fixed</span>">
<div class="<span class="main">nice-header-container</span>">
<h1 class="<span class="main">nice-header-brand</span>">
<a href="#">
<!-- SVG logo with PNG fallback. Size may need adjustment. -->
<svg height="30" width="172">
<image xlink:href="assets/textkernel.svg" src="assets/textkernel@2x.png" height="30" width="172" />
</svg>
</a>
</h1>
<div class="<span class="main">nice-header-collapse</span>">
<span class="<span class="main">nice-header-product</span>">
Product! v1.0
</span>
<form action="#" class="<span class="main">nice-header-form</span>">
<div class="<span class="main">nice-header-input-wrapper</span>">
<input type="text" placeholder="Search..." class="<span class="main">nice-form-control</span>" />
</div>
</form>
<ul class="<span class="main">nice-header-menu</span> <span class="variation">menu-pills</span>">
<li class="<span class="variation">align-left</span>">
<a href="#" class="<span class="variation">icon fa-book</span>">
Link
</a>
<ul>
<li class="<span class="main">has-children</span> <span class="variation">align-left</span>">
<a href="#">Sub-item</a>
<ul>
<li>
<a href="#">
Sub-sub-item
</a>
</li>
</ul>
</li>
<li>
<a href="#">Sub-item</a>
</li>
</ul>
</li>
<li class="<span class="main">highlight</span> <span class="variation">primary brand accent info good warning bad</span>">
<a href="#">
Link
</a>
</li>
<li class="<span class="main">fixed-width</span> <span class="variation">w125 w150 w175 w200</span>">
<a href="#" target="_blank">
Link
</a>
</li>
<li>
<a href="http://textkernel.com" target="_blank">
Textkernel
</a>
</li>
</ul><!-- .nice-header-menu.menu-pills -->
<ul class="<span class="main">nice-header-menu</span> <span class="variation">menu-alt</span>">
<li>
<a href="#" class="<span class="variation">icon fa-external-link</span>">
Alternative link
</a>
</li>
</ul><!-- .nice-header-menu.menu-alt -->
</div><!-- .nice-header-collapse -->
<!-- A <code class="inline">.nice-header-toggle</code> is optional: Only include it when your app is responsive and you use the off-canvas menu -->
<button type="button" class="<span class="main">nice-header-toggle collapsed</span>">
<span class="icon-bar top-bar"></span>
<span class="icon-bar middle-bar"></span>
<span class="icon-bar bottom-bar"></span>
</button>
</div>
</header></code>
<ul class="doc-code-tools">
<li><a href="#" class="toggle">Expand</a></li>
<li><a href="#" class="copy">Copy</a></li>
</ul>
</div>
</div>
<div class="nice-col-5 nice-col-mobile-12">
<div class="nice-alert info icon fa-lightbulb-o">
Top level menu items accept certain optional classes that are listed below
</div>
<div class="nice-responsive-container">
<table class="nice-table condensed bordered small-body">
<thead>
<th>Class</th>
<th>Description</th>
<th>Variations</th>
</thead>
<tbody>
<tr>
<th>
<code class="inline">highlight</code>
</th>
<td>
Adds a bottom border highlight
</td>
<td>
<code class="inline">primary|good|bad|warning|info</code>
</td>
</tr>
<tr>
<th>
<code class="inline">fixed-width</code>
</th>
<td>
Enforces a fixed-width on the menu item (100 pixels by default)
</td>
<td>
<code class="inline">w125|w150|w175|w200</code>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div class="nice-row" id="nice-page-footer">
<h2 class="docs">Page footer</h2>
<div class="nice-col-12">
<p>
You can see an example of this component at the bottom of this page.
</p>
</div>
<div class="nice-col-12">
<div class="docs-code-wrapper">
<code class="docs"><footer class="<span class="main">nice-footer</span>">
<div class="<span class="main">nice-container</span>">
<p class="pull-left">
&copy; 2016 <span class="text-brand">textkernel</span>
</p>
<ul class="<span class="main">nice-footer-menu</span>">
<li>
<a href="index.html" class="icon fa-book">
Nice! Documentation
</a>
</li>
<li>
<a href="#" target="_blank" class="icon fa-star">
Link
</a>
</li>
<li>
<a href="#" target="_blank" class="icon fa-star">
Link
</a>
<li>
<a href="#" target="_blank" class="product-icon textkernel">
Link
</a>
</li>
</ul>
</div>
</footer></code>
<ul class="doc-code-tools">
<li><a href="#" class="toggle">Expand</a></li>
<li><a href="#" class="copy">Copy</a></li>
</ul>
</div>
</div>
</div>
<div class="nice-row" id="nice-buttons">
<h2 class="docs">Buttons</h2>
<div class="nice-col-6 nice-col-small-12 nice-example">
<p>
<a href="javascript:void(0);" class="nice-btn icon fa-check">Default button</a>
<a href="javascript:void(0);" class="nice-btn primary icon fa-search">Primary button</a>
<a href="javascript:void(0);" class="nice-btn accent icon fa-check">Accent</a>
<a href="javascript:void(0);" class="nice-btn link">Link button</a>
</p>
<p>
<a href="javascript:void(0);" class="nice-btn disabled">Default button</a>
<a href="javascript:void(0);" class="nice-btn primary disabled">Primary button</a>
<a href="javascript:void(0);" class="nice-btn accent disabled">Accent</a>
<a href="javascript:void(0);" class="nice-btn link disabled">Link button</a>
</p>
<p>
<a href="javascript:void(0);" class="nice-btn good icon fa-check">Good</a>
<a href="javascript:void(0);" class="nice-btn warning icon fa-exclamation">Warning</a>
<a href="javascript:void(0);" class="nice-btn bad icon fa-times">Bad</a>
</p>
<p>
<a href="javascript:void(0);" class="nice-btn small">Small size</a>
<a href="javascript:void(0);" class="nice-btn">Default size</a>
<a href="javascript:void(0);" class="nice-btn large">Large size</a>
</p>
<p>
<div class="nice-btn-group">
<button type="button" class="nice-btn">
First
</button>
<button type="button" class="nice-btn primary">
Second
</button>
<button type="button" class="nice-btn">
Third
</button>
<div class="nice-dropdown">
<button class="nice-btn">
Dropdown
<i class="icon fa-angle-down"></i>
</button>
<ul class="dropdown-menu">
<li>
<a href="javascript:void(0);">Item 1</a>
</li>
<li>
<a href="javascript:void(0);">Item 2</a>
</li>
<li class="separator"></li>
<li>
<a href="javascript:void(0);">Item 3</a>
</li>
</ul>
</div>
</div>
</p>
<p>
<div class="nice-btn-group justified">
<a href="javascript:void(0);" class="nice-btn">Some</a>
<a href="javascript:void(0);" class="nice-btn">Justified</a>
<a href="javascript:void(0);" class="nice-btn">Buttons</a>
</div>
</p>
<p>
<div class="nice-btn-group stacked">
<button type="button" class="nice-btn">
First
</button>
<button type="button" class="nice-btn">
Second
</button>
<button type="button" class="nice-btn">
Third
</button>
</div>
</p>
<p>
<div class="nice-btn-group">
<a href="javascript:void(0);" class="nice-btn-alt icon fa-info">
Alternative button
</a>
<a href="javascript:void(0);" class="nice-btn-alt icon fa-question">
Alternative button
</a>
</div>
</p>
</div>
<div class="nice-col-6 nice-col-small-12">
<p>
The justified button group uses table layout by default for better browser support. Alternatively, you can omit the <code class="inline">justified</code> class and apply <a href="#nice-flex-grid">Flexbox classes</a> instead.
</p>
<p>
<a href="#nice-dropdowns">Dropdowns</a> can be used in button groups as well.
</p>
<div class="docs-code-wrapper">
<code class="docs"><a href="#" class="<span class="main">nice-btn</span> <span class="variation">primary good bad warning link small large bold disabled</span>">
Primary button
</a>
<a href="#" class="<span class="main">nice-btn</span> <span class="variation">icon fa-check</span>">
Button with icon
</a>
<div class="<span class="main">nice-btn-group</span> <span class="variation">stacked small large</span>">
<button type="button" class="nice-btn">
First
</button>
<button type="button" class="nice-btn">
Second
</button>
<button type="button" class="nice-btn">
Third
</button>
<div class="nice-dropdown">
<button class="nice-btn">
Dropdown
<i class="icon fa-angle-down"></i>
</button>
<ul class="dropdown-menu">
<li>
<a href="#">Item 1</a>
</li>
<li>
<a href="#">Item 2</a>
</li>
<li class="separator"></li>
<li>
<a href="#">Item 3</a>
</li>
</ul>
</div>
</div></code>
<ul class="doc-code-tools">
<li><a href="#" class="toggle">Expand</a></li>
<li><a href="#" class="copy">Copy</a></li>
</ul>
</div>
</div>
</div>
<div class="nice-row" id="nice-toggle">
<h2 class="docs">Toggle switches</h2>
<div class="nice-col-6 nice-col-small-12 nice-example">
<input type="checkbox" class="nice-toggle" id="nice-toggle-example1" checked />
<label class="nice-toggle-btn small" for="nice-toggle-example1"></label>
<input type="checkbox" class="nice-toggle primary" id="nice-toggle-example2" checked />
<label class="nice-toggle-btn" for="nice-toggle-example2"></label>
<input type="checkbox" class="nice-toggle info" id="nice-toggle-example3" checked />
<label class="nice-toggle-btn" for="nice-toggle-example3"></label>
<input type="checkbox" class="nice-toggle good" id="nice-toggle-example4" checked />
<label class="nice-toggle-btn" for="nice-toggle-example4"></label>
<input type="checkbox" class="nice-toggle warning" id="nice-toggle-example5" checked disabled />
<label class="nice-toggle-btn" for="nice-toggle-example5"></label>
<input type="checkbox" class="nice-toggle bad" id="nice-toggle-example6" />
<label class="nice-toggle-btn off-muted" for="nice-toggle-example6"></label>
</div>
<div class="nice-col-6 nice-col-small-12">
<div class="docs-code-wrapper">
<p class="nice-alert info icon fa-lightbulb-o">
Toggle switches are built on top of checkboxes and labels and are functionally the same. Don't forget to provide your checkbox with an id, and refer to that id in the <code class="inline">for</code>-property of the corresponding label.<br />
When adding <code class="inline">.off-muted</code> to the toggle button, the (optional) label text will be gray when the switch is turned off.
</p>
<code class="docs"><input type="checkbox" class="<span class="main">nice-toggle</span>" id="toggle1" <span class="variation">checked disabled</span> />
<label class="<span class="main">nice-toggle-btn</span> <span class="variation">accent primary info good warning bad off-muted small</span>" for="toggle1"><span class="variation">Optional label text</span></label></code>
</div>
</div>
</div>
<div class="nice-row" id="nice-dropdowns">
<h2 class="docs">Dropdowns</h2>
<div class="nice-col-6 nice-col-small-12 nice-example">
<div class="nice-dropdown" style="margin-bottom: 15px;">
<button class="nice-btn">
Dropdown
<i class="icon fa-angle-down"></i>
</button>
<ul class="dropdown-menu">
<li class="heading">
<span>This is a dropdown heading</span>
</li>
<li class="description">
<span>This is a short description for this dropdown</span>
</li>
<li>
<a href="javascript:void(0);">
<i class="icon fa-download"></i>
Item 1
</a>
</li>
<li class="good">
<a href="javascript:void(0);">
<i class="icon fa-share"></i>
Item 2
</a>
</li>
<li>
<a href="javascript:void(0);">
<i class="icon fa-bookmark-o"></i>
Item 3
</a>
</li>
<li class="separator"></li>
<li>
<a href="javascript:void(0);">
Separated item
</a>
</li>
<li class="separator"></li>
<li class="disabled">
<a href="javascript:void(0);">
Disabled item
</a>
</li>
</ul>
</div>
<div class="nice-dropdown" style="margin-bottom: 15px;">
<button class="nice-btn">
With input field
<i class="icon fa-angle-down"></i>
</button>
<ul class="dropdown-menu">
<li class="input icon fa-search">
<input type="text" class="nice-form-control" placeholder="Search..." />
</li>
<li>
<a href="javascript:void(0);">
One of the many options in this select
</a>
</li>
<li>
<a href="javascript:void(0);">
Another option to be found
</a>
</li>