-
Notifications
You must be signed in to change notification settings - Fork 18
/
index.html
1076 lines (901 loc) · 46.3 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">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>Tawian</title>
<link rel="stylesheet" href="tawian-frontend.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Cousine:400,400i,700,700i">
<link rel="shortcut icon" href="favicon.ico">
<link rel="apple-touch-icon" href="icon.png">
<link rel="manifest" href="manifest.json">
<style>
.example-grid .inner {
background-color: #eee;
text-align: center;
}
@media screen and (max-width: 48rem) {
.github-corner { display: none; }
}
</style>
</head>
<body>
<div class="container">
<header class="site-header dashed-bottom">
<a class="site-title" href="#">Page Title</a>
<nav class="responsive-nav">
<label for="navigation-toggle">
<svg class="i"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="icons.svg#i-menu"></use></svg>
</label>
</nav>
<input type="checkbox" id="navigation-toggle">
<nav class="site-nav nav-separated">
<form class="site-search" action="." method="GET">
<input type="search" name="search" placeholder="search">
</form>
<ul>
<li><a href="#">Link</a></li>
<li><a href="#">Link</a></li>
<li><a href="#">Link</a></li>
</ul>
</nav>
</header>
<main class="site-main">
<h1>Tawian frontend</h1>
<h2>Components</h2>
<h3>Links and Typo</h3>
<p class="lead">Lead ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>
<p>
Lorem ipsum dolor <a href="#">sit amet adipisicing</a> elit, sed do eiusmod <em>italic</em> incididunt ut <strong>bold</strong> et dolore magna aliqua. Ut enim ad <mark>highlight <mark>minim</mark> veniam</mark>, <del>deletion</del> quis nostrud exercitation <ins>insertation</ins> ullamco laboris <u>underlined</u> nisi ut aliquip ex <small>small</small> ea commodo consequat <abbr title="Abbreviation">abbr</abbr>. Duis aute irure dolor in reprehenderit <kbd>⌘</kbd> + <kbd>Space</kbd> 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.<sup id="fnref:example"><a href="#fn:example" class="footnote">1</a></sup>
</p>
<p class="truncate">Truncate Truncate Truncate Truncate Truncate Truncate Truncate Truncate Truncate Truncate Truncate Truncate</p>
<h3>List</h3>
<div class="grid">
<div class="cell">
<ul>
<li>Item
<ul>
<li>Sub Item</li>
<li>Sub Item</li>
<li>Sub Item</li>
</ul>
</li>
<li>Item</li>
<li>Item</li>
</ul>
</div>
<div class="cell">
<ol>
<li>One</li>
<li>Two</li>
<li>Three
<ol>
<li>Three One</li>
<li>Three Two</li>
</ol>
</li>
<li>Four</li>
</ol>
</div>
</div>
<h3>Blockquote</h3>
<blockquote>
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Voluptates quis cumque similique voluptas facilis fugit inventore odit, quidem et ab, quos, blanditiis iure! Ipsum nostrum corrupti architecto fugit, culpa expedita. <cite>someone</cite>
</blockquote>
<h3>Code</h3>
<p>You can use <code>inline code</code>, <samp>inline sample output</samp> or code blocks. Use <code>.scroll</code> to prevent code wrapping.</p>
<div class="highlight language-shell" data-lang="shell"><pre><code><span class="k">while </span><span class="nb">true</span>; <span class="k">do</span> <span class="o">{</span> <span class="nb">echo</span> -e <span class="s2">"HTTP/1.1 200 OK</span><span class="se">\r\n</span><span class="s2">"</span>; cat index.html; <span class="o">}</span> | nc -l 8080; <span class="k">done</span></code></pre>
</div>
<samp>$ time sleep 3<br> 3.00 real 0.00 user 0.00 sys<br>$ exit</samp>
<h3>Horizontal Rule</h3>
<hr>
<h3>Form</h3>
<h4>Inline Form</h4>
<form>
<label>Name: <input type="text" placeholder="type your name here"></label>
<label>Email: <input type="email" placeholder="and your email here"></label>
<label><input type="checkbox"> Newsletter?</label>
<label> Select:
<select>
<option>Option One</option>
<option>Option Two</option>
<option>Option Three</option>
<option>Option Four</option>
</select>
</label>
</form>
<h4>Horizontal Form <small>(default on larger screens)</small></h4>
<form class="form">
<label class="form-group">
<input type="text" placeholder="type your name..." class="form-control">
<span class="form-label">TEXT</span>
</label>
<label class="form-group">
<input type="email" class="form-control">
<span class="form-label">EMAIL</span>
</label>
<label class="form-group">
<input type="number" class="form-control">
<span class="form-label">NUMBER</span>
</label>
<label class="form-group">
<input type="file" class="form-control">
<span class="form-label">FILE</span>
</label>
<label class="form-group">
<div class="form-control">
<label><input type="checkbox"> Checkbox 1</label>
<label><input type="checkbox"> Checkbox 2</label>
<label><input type="checkbox"> Checkbox 3</label>
<label><input type="checkbox" disabled> Checkbox 4 disabled</label>
</div>
<span class="form-label">CHECKBOX</span>
</label>
<label class="form-group">
<div class="form-control">
<label><input type="radio" name="radio"> Radio 1</label>
<label><input type="radio" name="radio"> Radio 2</label>
<label><input type="radio" name="radio"> Radio 3</label>
<label><input type="radio" name="radio"> Radio 4</label>
<label><input type="radio" name="radio" disabled> Radio 5 disabled</label>
</div>
<span class="form-label">RADIO</span>
</label>
<label class="form-group">
<select class="form-control">
<option>Option One</option>
<option>Option Two</option>
<option>Option Three</option>
<option>Option Four</option>
</select>
<span class="form-label">SELECT</span>
</label>
<label class="form-group">
<textarea rows="5" class="form-control">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Veniam placeat ratione nisi assumenda quo saepe quasi iste temporibus asperiores. Soluta cupuam at reprehenderit facere. Asperiores nulla rerum earum pariatur.</textarea>
<span class="form-label">TEXTAREA</span>
</label>
<button type="button" class="btn btn-primary full-width">Submit</button>
</form>
<h4>Stateful Form</h4>
<form class="form">
<label class="form-group form-info">
<input type="text" placeholder="type your name..." class="form-control">
<span class="form-label">INFO</span>
</label>
<label class="form-group form-warning">
<input type="text" class="form-control">
<span class="form-label">WARNING</span>
</label>
</form>
<h4>Help Block</h4>
<form class="form">
<label class="form-group">
<input type="text" placeholder="type your name..." class="form-control">
<span class="form-label">NORMAL</span>
<div class="help-block">Please only use alphanumeric characters</div>
</label>
<label class="form-group form-success">
<input type="text" value="tawian" class="form-control">
<span class="form-label">SUCCESS</span>
<div class="help-block">Congrats, this name is still available</div>
</label>
<label class="form-group form-error">
<input type="email" value="null" class="form-control">
<span class="form-label">ERROR</span>
<div class="help-block">This does not look like a valid email address</div>
</label>
</form>
<h4>Disabled</h4>
<form class="form">
<label class="form-group">
<input type="text" value="Lorem ipsum dolor sit amet" class="form-control" disabled>
<span class="form-label">TEXT</span>
</label>
<label class="form-group">
<select class="form-control" disabled>
<option>Optione One</option>
</select>
<span class="form-label">SELECT</span>
</label>
<label class="form-group">
<textarea rows="3" class="form-control" disabled>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Veniam placeat ratione nisi assumenda quo saepe quasi iste temporibus asperiores. Soluta cupuam at reprehenderit facere. Asperiores nulla rerum earum pariatur.</textarea>
<span class="form-label">TEXTAREA</span>
</label>
</form>
<h4>Readonly</h4>
<form class="form">
<label class="form-group">
<input type="text" value="Lorem ipsum dolor sit amet" class="form-control" readonly>
<span class="form-label">TEXT</span>
</label>
<label class="form-group">
<textarea rows="3" class="form-control" readonly>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Veniam placeat ratione nisi assumenda quo saepe quasi iste temporibus asperiores. Soluta cupuam at reprehenderit facere. Asperiores nulla rerum earum pariatur.</textarea>
<span class="form-label">TEXTAREA</span>
</label>
</form>
<h4>Required</h4>
<form class="form">
<label class="form-group">
<input type="text" placeholder="type your name..." class="form-control" required>
<span class="form-label">TEXT</span>
</label>
<label class="form-group form-warning">
<textarea rows="3" class="form-control" required>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Veniam placeat ratione nisi assumenda quo saepe quasi iste temporibus asperiores. Soluta cupuam at reprehenderit facere. Asperiores nulla rerum earum pariatur.</textarea>
<span class="form-label">TEXTAREA</span>
</label>
</form>
<h4>Vertical Form <small>(default on smaller screens)</small></h4>
<form class="form form-vertical">
<div class="grid">
<div class="cell">
<label class="form-group">
<input type="text" placeholder="type your name..." class="form-control">
<span class="form-label">TEXT</span>
</label>
<label class="form-group">
<div class="form-control">
<label><input type="checkbox"> Checkbox 1</label>
<label><input type="checkbox"> Checkbox 2</label>
<label><input type="checkbox"> Checkbox 3</label>
<label><input type="checkbox" disabled> Checkbox 4 disabled</label>
</div>
<span class="form-label">CHECKBOX</span>
</label>
<label class="form-group">
<input type="email" class="form-control">
<span class="form-label">EMAIL</span>
</label>
<label class="form-group">
<input type="number" class="form-control">
<span class="form-label">NUMBER</span>
</label>
<label class="form-group">
<input type="file" class="form-control">
<span class="form-label">FILE</span>
</label>
</div>
<div class="cell">
<label class="form-group">
<select class="form-control">
<option>Option One</option>
<option>Option Two</option>
<option>Option Three</option>
<option>Option Four</option>
</select>
<span class="form-label">SELECT</span>
</label>
<label class="form-group">
<div class="form-control">
<label><input type="radio" name="radio"> Radio 1</label>
<label><input type="radio" name="radio"> Radio 2</label>
<label><input type="radio" name="radio"> Radio 3</label>
<label><input type="radio" name="radio"> Radio 4</label>
<label><input type="radio" name="radio" disabled> Radio 5 disabled</label>
</div>
<span class="form-label">RADIO</span>
</label>
<label class="form-group">
<textarea rows="4" class="form-control">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Veniam placeat ratione nisi assumenda quo saepe quasi iste temporibus asperiores.</textarea>
<span class="form-label">TEXTAREA</span>
</label>
<button type="button" class="btn btn-primary full-width">Submit</button>
</div>
</div>
</form>
<h3>File Input with Dropzones, e.g. <a href="https://github.com/okonet/react-dropzone">react-dropzone</a></h3>
<div class="grid">
<div class="cell">
<div class="dropzone">Drop Files</div>
</div>
<div class="cell">
<div class="dropzone active">Active Style</div>
</div>
<div class="cell">
<div class="dropzone rejected">Rejected Style</div>
</div>
</div>
<h3>Table</h3>
<table class="table-fixed">
<thead>
<tr>
<th>states</th>
<th>param</th>
<th>param</th>
<th>param</th>
</tr>
</thead>
<tbody>
<tr>
<td>cell states</td>
<td class="bg-success">90</td>
<td class="bg-warning">80</td>
<td class="bg-error">70</td>
</tr>
<tr>
<td>normal state</td>
<td>60</td>
<td>85</td>
<td>80</td>
</tr>
<tr class="bg-info">
<td>row state</td>
<td>80</td>
<td>65</td>
<td>60</td>
</tr>
</tbody>
<caption>Table with fixed layout and caption</caption>
</table>
<div class="grid">
<div class="cell">
<table class="table-striped table-narrow">
<thead>
<tr>
<th>classes</th>
<th>param</th>
<th>param</th>
<th>param</th>
</tr>
</thead>
<tbody>
<tr>
<td>narrow</td>
<td>✗</td>
<td>✗</td>
<td>✔</td>
</tr>
<tr>
<td>striped</td>
<td>✔</td>
<td>✔</td>
<td>✔</td>
</tr>
<tr>
<td>/</td>
<td>✔</td>
<td>✗</td>
<td>✔</td>
</tr>
<tr>
<td>/</td>
<td>✔</td>
<td>✔</td>
<td>✗</td>
</tr>
<tr>
<td>/</td>
<td>✔</td>
<td>✗</td>
<td>✔</td>
</tr>
<tr>
<td>/</td>
<td>✔</td>
<td>✔</td>
<td>✗</td>
</tr>
</tbody>
</table>
</div>
<div class="cell">
<table class="table-hover table-wide">
<thead>
<tr>
<th>classes</th>
<th>param</th>
<th>param</th>
<th>param</th>
</tr>
</thead>
<tbody>
<tr>
<td>wide</td>
<td>✗</td>
<td>✗</td>
<td>✔</td>
</tr>
<tr>
<td>hoverable</td>
<td>✔</td>
<td>✗</td>
<td>✔</td>
</tr>
<tr>
<td>/</td>
<td>✔</td>
<td>✔</td>
<td>✗</td>
</tr>
</tbody>
</table>
</div>
</div>
<h3>List Group</h3>
<div class="grid">
<div class="cell">
<ul class="list-group">
<li>Cras justo odio</li>
<li class="disabled">DISABLED</li>
<li>Morbi leo risus <span class="tag tag-info">Tag</span></li>
<li class="active">ACTIVE</li>
<li>Porta ac consectetur</li>
</ul>
</div>
<div class="cell">
<div class="list-group list-striped">
<a href="#">Striped</a>
<a href="#">Morbi leo risus</a>
<a href="#">Porta ac consectetur</a>
<a href="#">Vestibulum at eros</a>
<a class="active" href="#">ACTIVE LINK</a>
</div>
</div>
<div class="cell">
<div class="list-group">
<button>Plain Buttons look like Links</button>
<button class="active">Active Plain Button</button>
<button class="btn btn-success">Success</button>
<button class="btn btn-info btn-ghost">Ghost Info</button>
<button class="btn btn-error btn-ghost">Ghost Error</button>
</div>
</div>
</div>
<h3>Progress bar</h3>
<div class="grid">
<div class="cell">
<p>
<div class="progress-bar progress-bar-show-percent">
<div style="width: 40%;" data-filled="Loaded 40%">50kb / 125kb</div>
</div>
</p>
<p>
<div class="progress-bar progress-success">
<div style="width: 20%;">20%</div>
</div>
</p>
</div>
<div class="cell">
with <code>.narrow</code>
<div class="m-b-1">
<div class="progress-bar progress-error narrow">
<div style="width: 30%;"></div>
</div>
</div>
<div class="m-b-1">
<div class="progress-bar progress-warning narrow">
<div style="width: 60%;"></div>
</div>
</div>
<div class="m-b-1">
<div class="progress-bar progress-info narrow">
<div style="width: 80%;"></div>
</div>
</div>
</div>
</div>
<p>
For advanced progress bars consider <a href="https://kimmobrunfeldt.github.io/progressbar.js/" title="progressbar.js">progressbar.js</a>.
</p>
<h3>Buttons</h3>
<p>
<button class="btn btn-default">Default</button>
<button class="btn btn-primary">Primary</button>
<button class="btn btn-success">Success</button>
<button class="btn btn-info">Info</button>
<button class="btn btn-warning">Warning</button>
<button class="btn btn-error">Error</button>
<button class="btn" disabled>Disabled</button>
<button class="btn btn-link">Link</button>
</p>
<p>
<button class="btn btn-default btn-ghost">Default</button>
<button class="btn btn-primary btn-ghost">Primary</button>
<button class="btn btn-success btn-ghost">Success</button>
<button class="btn btn-info btn-ghost">Info</button>
<button class="btn btn-warning btn-ghost">Warning</button>
<button class="btn btn-error btn-ghost">Error</button>
<button class="btn btn-ghost" disabled>Disabled</button>
</p>
<p>
<button class="btn btn-primary btn-ghost full-width">Block Level Button</button>
</p>
<h3>Button Groups</h3>
<div class="grid">
<div class="cell cell-4">
<div class="btn-group">
<button class="btn btn-default btn-ghost">Left</button>
<button class="btn btn-default btn-ghost">Middle</button>
<button class="btn btn-default btn-ghost">Right</button>
</div>
</div>
<div class="cell cell-4">
<div class="btn-group">
<button class="btn btn-success">
<svg class="i"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="icons.svg#i-checkmark"></use></svg>
</button>
<button class="btn btn-error">
<svg class="i"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="icons.svg#i-close"></use></svg>
</button>
</div>
<div class="btn-group">
<button class="btn btn-primary">1</button>
<button class="btn btn-info">2</button>
<button class="btn btn-warning">3</button>
</div>
</div>
<div class="cell cell-4">
<div class="btn-group full-width">
<button class="btn btn-default">Full</button>
<button class="btn btn-default">Width</button>
</div>
</div>
<div class="cell cell-4">
<div class="btn-group full-width">
<button class="btn btn-default">Way</button>
<button class="btn btn-default">too many</button>
<button class="btn btn-default">Elements</button>
<button class="btn btn-default">to fit in</button>
<button class="btn btn-default">one line</button>
</div>
</div>
<div class="cell cell-4">
<button class="btn btn-primary btn-ghost">
<svg class="i"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="icons.svg#i-chevron-left"></use></svg>
</button>
<div class="btn-group">
<button class="btn btn-primary btn-ghost">1</button>
<button class="btn btn-primary btn-ghost">2</button>
<button class="btn btn-primary btn-ghost">3</button>
</div>
<button class="btn btn-primary btn-ghost">
<svg class="i"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="icons.svg#i-chevron-right"></use></svg>
</button>
</div>
<div class="cell cell-4">
<div class="btn-group">
<span class="btn-addon">Prefix</span>
<button class="btn btn-default btn-ghost">1</button>
<button class="btn btn-default btn-ghost">2</button>
<button class="btn btn-default btn-ghost">3</button>
<span class="btn-addon">Postfix</span>
</div>
</div>
</div>
<h3>Loading Indicator<span class="loading"></span></h3>
<button class="btn btn-info btn-ghost">Loading<span class="loading"></span></button>
<h3>Tags</h3>
<p>
Tags have different states like
<span class="tag">normal</span> and
<span class="tag tag-success">success</span> and
<span class="tag tag-info">info</span> and
<span class="tag tag-warning">warning</span> and
<span class="tag tag-error">error</span>.
</p>
<h3>Icons <small>from <a href="https://github.com/danklammer/bytesize-icons">bytesize-icons</a></small></h3>
<p>The icons don't work in IE / Edge. Consider inlining the svg file for Edge or <a href="https://github.com/jonathantneal/svg4everybody">svg4everybody</a> for IE.</p>
<p>
<button class="btn btn-default">Text</button>
<button class="btn btn-info">
<svg class="i"><use xlink:href="icons.svg#i-search" /></svg> Search
</button>
<button class="btn btn-error">
<svg class="i"><use xlink:href="icons.svg#i-reload" /></svg> Reload
</button>
<button class="btn btn-warning">
<svg class="i"><use xlink:href="icons.svg#i-plus" /></svg>
</button>
<span class="btn-group">
<button class="btn btn-primary btn-ghost">
<svg class="i"><use xlink:href="icons.svg#i-start" /></svg>
</button>
<button class="btn btn-primary btn-ghost">
<svg class="i"><use xlink:href="icons.svg#i-pause" /></svg>
</button>
<button class="btn btn-primary btn-ghost">
<svg class="i"><use xlink:href="icons.svg#i-end" /></svg>
</button>
</span>
<span class="tag tag-success"><svg class="i"><use xlink:href="icons.svg#i-checkmark" /></svg> Yay</span>
</p>
<p>
Can be sized, e.g. <svg class="i"><use xlink:href="icons.svg#i-photo" /></svg> normal, <svg class="i i-medium"><use xlink:href="icons.svg#i-photo" /></svg> medium or <svg class="i i-large"><use xlink:href="icons.svg#i-photo" /></svg> large.
</p>
<p class="i-large">
<!-- remove title attribute in production -->
<svg class="i"><use xlink:href="icons.svg#i-search" /></svg>
<svg class="i"><use xlink:href="icons.svg#i-close" /></svg>
<svg class="i"><use xlink:href="icons.svg#i-plus" /></svg>
<svg class="i"><use xlink:href="icons.svg#i-minus" /></svg>
<svg class="i"><use xlink:href="icons.svg#i-play" /></svg>
<svg class="i"><use xlink:href="icons.svg#i-pause" /></svg>
<svg class="i"><use xlink:href="icons.svg#i-backwards" /></svg>
<svg class="i"><use xlink:href="icons.svg#i-forwards" /></svg>
<svg class="i"><use xlink:href="icons.svg#i-star" /></svg>
<svg class="i"><use xlink:href="icons.svg#i-checkmark" /></svg>
<svg class="i"><use xlink:href="icons.svg#i-chevron-top" /></svg>
<svg class="i"><use xlink:href="icons.svg#i-chevron-right" /></svg>
<svg class="i"><use xlink:href="icons.svg#i-chevron-bottom" /></svg>
<svg class="i"><use xlink:href="icons.svg#i-chevron-left" /></svg>
<svg class="i"><use xlink:href="icons.svg#i-arrow-top" /></svg>
<svg class="i"><use xlink:href="icons.svg#i-arrow-right" /></svg>
<svg class="i"><use xlink:href="icons.svg#i-arrow-bottom" /></svg>
<svg class="i"><use xlink:href="icons.svg#i-arrow-left" /></svg>
<svg class="i"><use xlink:href="icons.svg#i-caret-top" /></svg>
<svg class="i"><use xlink:href="icons.svg#i-caret-right" /></svg>
<svg class="i"><use xlink:href="icons.svg#i-caret-bottom" /></svg>
<svg class="i"><use xlink:href="icons.svg#i-caret-left" /></svg>
<svg class="i"><use xlink:href="icons.svg#i-start" /></svg>
<svg class="i"><use xlink:href="icons.svg#i-end" /></svg>
<svg class="i"><use xlink:href="icons.svg#i-eject" /></svg>
<svg class="i"><use xlink:href="icons.svg#i-mute" /></svg>
<svg class="i"><use xlink:href="icons.svg#i-volume" /></svg>
<svg class="i"><use xlink:href="icons.svg#i-ban" /></svg>
<svg class="i"><use xlink:href="icons.svg#i-flag" /></svg>
<svg class="i"><use xlink:href="icons.svg#i-options" /></svg>
<svg class="i"><use xlink:href="icons.svg#i-settings" /></svg>
<svg class="i"><use xlink:href="icons.svg#i-heart" /></svg>
<svg class="i"><use xlink:href="icons.svg#i-clock" /></svg>
<svg class="i"><use xlink:href="icons.svg#i-menu" /></svg>
<svg class="i"><use xlink:href="icons.svg#i-msg" /></svg>
<svg class="i"><use xlink:href="icons.svg#i-photo" /></svg>
<svg class="i"><use xlink:href="icons.svg#i-camera" /></svg>
<svg class="i"><use xlink:href="icons.svg#i-video" /></svg>
<svg class="i"><use xlink:href="icons.svg#i-music" /></svg>
<svg class="i"><use xlink:href="icons.svg#i-mail" /></svg>
<svg class="i"><use xlink:href="icons.svg#i-home" /></svg>
<svg class="i"><use xlink:href="icons.svg#i-user" /></svg>
<svg class="i"><use xlink:href="icons.svg#i-trash" /></svg>
<svg class="i"><use xlink:href="icons.svg#i-paperclip" /></svg>
<svg class="i"><use xlink:href="icons.svg#i-file" /></svg>
<svg class="i"><use xlink:href="icons.svg#i-folder" /></svg>
<svg class="i"><use xlink:href="icons.svg#i-folder-open" /></svg>
<svg class="i"><use xlink:href="icons.svg#i-work" /></svg>
<svg class="i"><use xlink:href="icons.svg#i-portfolio" /></svg>
<svg class="i"><use xlink:href="icons.svg#i-eye" /></svg>
<svg class="i"><use xlink:href="icons.svg#i-bookmark" /></svg>
<svg class="i"><use xlink:href="icons.svg#i-tag" /></svg>
<svg class="i"><use xlink:href="icons.svg#i-lightning" /></svg>
<svg class="i"><use xlink:href="icons.svg#i-location" /></svg>
<svg class="i"><use xlink:href="icons.svg#i-activity" /></svg>
<svg class="i"><use xlink:href="icons.svg#i-export" /></svg>
<svg class="i"><use xlink:href="icons.svg#i-import" /></svg>
<svg class="i"><use xlink:href="icons.svg#i-inbox" /></svg>
<svg class="i"><use xlink:href="icons.svg#i-archive" /></svg>
<svg class="i"><use xlink:href="icons.svg#i-reply" /></svg>
<svg class="i"><use xlink:href="icons.svg#i-edit" /></svg>
<svg class="i"><use xlink:href="icons.svg#i-compose" /></svg>
<svg class="i"><use xlink:href="icons.svg#i-upload" /></svg>
<svg class="i"><use xlink:href="icons.svg#i-download" /></svg>
<svg class="i"><use xlink:href="icons.svg#i-send" /></svg>
<svg class="i"><use xlink:href="icons.svg#i-link" /></svg>
<svg class="i"><use xlink:href="icons.svg#i-code" /></svg>
<svg class="i"><use xlink:href="icons.svg#i-lock" /></svg>
<svg class="i"><use xlink:href="icons.svg#i-unlock" /></svg>
<svg class="i"><use xlink:href="icons.svg#i-bell" /></svg>
<svg class="i"><use xlink:href="icons.svg#i-book" /></svg>
<svg class="i"><use xlink:href="icons.svg#i-calendar" /></svg>
<svg class="i"><use xlink:href="icons.svg#i-print" /></svg>
<svg class="i"><use xlink:href="icons.svg#i-alert" /></svg>
<svg class="i"><use xlink:href="icons.svg#i-info" /></svg>
<svg class="i"><use xlink:href="icons.svg#i-creditcard" /></svg>
<svg class="i"><use xlink:href="icons.svg#i-cart" /></svg>
<svg class="i"><use xlink:href="icons.svg#i-gift" /></svg>
<svg class="i"><use xlink:href="icons.svg#i-external" /></svg>
<svg class="i"><use xlink:href="icons.svg#i-reload" /></svg>
<svg class="i"><use xlink:href="icons.svg#i-ellipsis-horizontal" /></svg>
<svg class="i"><use xlink:href="icons.svg#i-ellipsis-vertical" /></svg>
<svg class="i"><use xlink:href="icons.svg#i-twitter" /></svg>
<svg class="i"><use xlink:href="icons.svg#i-github" /></svg>
</p>
<h3>Tooltips <small>naive version, might be out of screen</small></h3>
<div class="grid">
<div class="cell">
<button class="btn btn-default" data-tooltip="I'm at the top">Tooltip Top</button>
</div>
<div class="cell">
<button class="tooltip-right tooltip-info btn btn-default" data-tooltip="I'm at the right with info state">Tooltip Right</button>
</div>
<div class="cell">
<button class="tooltip-left btn btn-default" data-tooltip="I'm at the left">Tooltip Left</button>
</div>
<div class="cell">
<button class="tooltip-bottom btn btn-default" data-tooltip="I'm at the bottom">Tooltip Bottom</button>
</div>
</div>
<h3>Cards</h3>
<p>
<div class="card">
<div class="card-header">TITLE</div>
<div class="card-body">
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Expedita, quas ex vero enim in doloribus officiis ullam vel nam esse sapiente velit incidunt. Eaque quod et, aut maiores excepturi sint.
</div>
</div>
</p>
<div class="grid">
<div class="cell">
<div class="card card-success">
<header class="card-header">in grid</header>
<div class="card-body">
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Expedita, quas ex vero enim in doloribus officiis ullam vel nam esse sapiente velit incidunt. Eaque quod et, aut maiores excepturi sint.
</div>
</div>
</div>
<div class="cell">
<div class="card card-warning">
<header class="card-header">with list group</header>
<div class="list-group">
<span>Cras justo odio</span>
<span>Dapibus ac facilisis in</span>
<span>Morbi leo risus</span>
<span>Vestibulum at eros</span>
<span>Porta ac consectetur</span>
</div>
</div>
</div>
<div class="cell">
<div class="card">
<header class="card-header">with image</header>
<img class="full-width" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAABCAYAAAAb4BS0AAAAEElEQVR42mNUnPb5PwMUAAAajQKrlc3KqAAAAABJRU5ErkJggg==" alt="Image" height="109">
<div class="card-body">and a second body</div>
<pre class="card-body">echo "and a third"</pre>
</div>
</div>
</div>
<h3>Alerts</h3>
<div class="grid">
<div class="cell cell-4"><p class="alert">Default message</p></div>
<div class="cell cell-4"><p class="alert alert-info">Info message</p></div>
<div class="cell cell-4"><p class="alert alert-warning">Warning message</p></div>
<div class="cell cell-6"><p class="alert alert-success">Success message <button class="close">×</button></p></div>
<div class="cell cell-6"><p class="alert alert-error">Error message <button class="close">×</button></p></div>
</div>
<h3>Images and Figures</h3>
<p>You can use <img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAABCAYAAAAb4BS0AAAAEElEQVR42mNUnPb5PwMUAAAajQKrlc3KqAAAAABJRU5ErkJggg==" width="24" height="12" alt="Image"> inline.</p>
<h4><code>.full-width</code></h4>
<img class="full-width" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAABCAYAAAAb4BS0AAAAEElEQVR42mNUnPb5PwMUAAAajQKrlc3KqAAAAABJRU5ErkJggg==" alt="Image">
<h4>Figure with Caption</h4>
<figure>
<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAABCAYAAAAb4BS0AAAAEElEQVR42mNUnPb5PwMUAAAajQKrlc3KqAAAAABJRU5ErkJggg==" alt="Image">
<figcaption>Bildbeschreibung</figcaption>
</figure>
<h2>Details & Summary</h2>
<details>
<summary>Hidden Text Sample</summary>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Voluptatum molestiae et dicta, vero alias ab tempore obcaecati tempora odit voluptates. Eum inventore omnis, ullam rerum tenetur optio quasi a totam!</p>
</details>
<details>
<summary>Hidden Code Sample</summary>
<samp class="full-width">$ time sleep 3<br> 3.00 real 0.00 user 0.00 sys<br>$ exit</samp>
</details>
<h3>Toggleable Cards</h3>
<details class="card">
<summary class="card-header">Card Header</summary>
<div class="card-body">
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Expedita, quas ex vero enim in doloribus officiis ullam vel nam esse sapiente velit incidunt. Eaque quod et, aut maiores excepturi sint.
</div>
<samp class="card-body full-width">$ time sleep 3<br> 3.00 real 0.00 user 0.00 sys<br>$ exit</samp>
</details>
<h2>Basic</h2>
<p>Use <code>.container</code> to centralize the main content.</p>
<p>Use <code>.site-header</code>, <code>.site-main</code> and <code>.site-footer</code> for the main sectioning elements.</p>
<p><code>.site-header</code> contains <code>.site-nav</code> which is not responsive by default but can be appended by <code>.responsive-nav</code> to collapse and show a hamburger icon on smaller screens. It can carry <code>.responsive-nav-animated</code> to add a sliding animation to the nav.</p>
<h3>Grid</h3>
<div class="example-grid">
<div class="m-b-1">
<div class="grid">
<div class="cell"><div class="inner">space</div></div>
<div class="cell"><div class="inner">can be</div></div>
<div class="cell"><div class="inner">flexibly</div></div>
<div class="cell"><div class="inner">distributed</div></div>
</div>
</div>
<div class="m-b-1">
<div class="grid">
<div class="cell cell-4"><div class="inner">or</div></div>
<div class="cell cell-4"><div class="inner">fixed</div></div>
<div class="cell cell-4"><div class="inner">4</div></div>
</div>
</div>
<div class="m-b-1">
<div class="grid">
<div class="cell cell-4"><div class="inner">4</div></div>
<div class="cell cell-8"><div class="inner">8</div></div>
</div>
</div>
<div class="grid m-b-2">
<div class="cell cell-1"><div class="inner">1</div></div>
<div class="cell cell-1"><div class="inner">1</div></div>
<div class="cell cell-1"><div class="inner">1</div></div>
<div class="cell cell-1"><div class="inner">1</div></div>
<div class="cell cell-1"><div class="inner">1</div></div>
<div class="cell cell-1"><div class="inner">1</div></div>
<div class="cell cell-1"><div class="inner">1</div></div>
<div class="cell cell-1"><div class="inner">1</div></div>
<div class="cell cell-1"><div class="inner">1</div></div>
<div class="cell cell-1"><div class="inner">1</div></div>
<div class="cell cell-1"><div class="inner">1</div></div>
<div class="cell cell-1"><div class="inner">1</div></div>
</div>
</div>
<h3>Inline Grid</h3>
<div class="grid-inline m-b-2">
<input type="text" placeholder="use `cell` to let an element grow" class="cell">
<button type="button" class="btn btn-default">other elements</button>
<span>take the size they need</span>
</div>
<h3>Modifiers</h3>
<div class="grid">
<div class="cell">
<h4><code>.grid</code> modifiers</h4>
<ul>