forked from picturepan2/spectre
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
2110 lines (1993 loc) · 123 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="robots" content="index, follow" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="author" content="https://github.com/picturepan2/spectre" />
<title>Spectre.css: a lightweight, responsive and modern CSS framework</title>
<link rel="stylesheet" href="dist/spectre.css" />
<link rel="stylesheet" href="demo/font/style.css" />
<style>
header > h4,
header > h5 {
padding-top: 4rem;
margin-top: 4rem;
margin-bottom: 2rem;
}
.bg-grey {
background-color: #efefef;
padding: 1rem;
border-radius: .3rem;
}
.grid-hero {
margin-top: 10rem;
margin-bottom: 10rem;
}
.grid-hero h3 {
margin-bottom: 5rem;
}
.grid-hero .notes {
margin: 4rem 0;
}
.grid-footer {
color: #888;
margin-top: 4rem;
margin-bottom: 4rem;
}
.grid-footer a {
color: #666;
}
.notes {
margin: 4rem 0;
color: #666;
}
.code {
color: #666;
}
.code .com {
color: #adadad;
}
.code .tag {
color: #4452c0;
}
.code .atn {
color: #666;
}
.code .atv {
color: #e06870;
}
</style>
</head>
<body>
<section class="container bg-grey">
<section id="overview" class="grid-hero grid-960">
<header class="text-center"><h3>Spectre.css</h3></header>
<section>
<p><strong>Spectre.css</strong> is a lightweight, responsive and modern CSS framework for faster and extensible development.</p>
<ul>
<li>lightweight and clean starting point for your project and prototype</li>
<li>flexbox, responsive and mobile-friendly layout</li>
<li>carefully designed elements</li>
<li>built in useful components and utilities</li>
<li>patterns and html templates <span class="label label-primary">soon</span></li>
<li>email templates <span class="label label-primary">soon</span></li>
</ul>
</section>
<section class="notes text-center">
<div class="btn-group">
<a href="https://github.com/picturepan2/spectre" target="_blank" class="btn btn-primary">GitHub Repo</a>
<a href="#getting-started" class="btn btn-primary">Documentation</a>
</div>
</section>
</section>
</section>
<section class="container">
<section id="getting-started" class="grid-960">
<header class="text-center"><h4>getting started</h4></header>
<section class="notes">
<p>There are 3 ways to get started with Spectre CSS framework in your projects. You can either manually install or use NPM and Bower.</p>
<h5>Install manually</h5>
<p>Download the compiled and minified <a href="https://github.com/picturepan2/spectre/tree/master/dist" target="_blank">Spectre CSS file</a> (about 26KB):</p>
<p><a href="https://github.com/picturepan2/spectre/tree/master/dist" target="_blank" class="btn btn-primary">Download Spectre.css</a></p>
<h5>Install with NPM</h5>
<!-- install with npm example -->
<pre class="code lang-html">
<span class="tag">$</span> npm install <span class="atv">spectre.css</span>
</pre>
<h5>Install with Bower</h5>
<!-- install with bower example -->
<pre class="code lang-html">
<span class="tag">$</span> bower install <span class="atv">spectre.css</span>
</pre>
<p>And include it in your website or Web app <code><head></code></p>
<!-- install manually example -->
<pre class="code lang-html">
<<span class="tag">link</span> <span class="atn">rel</span>=<span class="atv">"stylesheet"</span> <span class="atn">href</span>=<span class="atv">"dist/spectre.min.css"</span> />
</pre>
</section>
</section>
<section id="compiling" class="grid-960">
<header class="text-center"><h4>compiling custom version</h4></header>
<section class="notes">
<p>Spectre uses <a href="http://gulpjs.com/" target="_blank">Gulp</a> for compiling CSS. You can customize your version of Spectre.css by editing LESS files in <code>/src</code> directory or removing unneeded components from <code>spectre.less</code>.</p>
<p>Then, you can build the CSS file from the command line:</p>
<ol>
<li>Navigate to the root directory of Spectre where you can find <code>package.json</code> file.</li>
<li>Run <code>npm install</code>. NPM will install all dev dependencies as listed in package.json.</li>
<li>When completed, run <code>gulp build</code> to compile LESS to CSS and minify files.</li>
<li>You can find compiled CSS files in <code>/dist</code> directory.</li>
</ol>
<p>You can watch file changes and rebuild CSS files by using <code>gulp watch</code>.</p>
</section>
</section>
<section id="elements" class="grid-960">
<section class="notes text-center">
<ul class="tab inline-block">
<li class="tab-item active">
<a href="#elements">
elements
</a>
</li>
<li class="tab-item">
<a href="#components">
components
</a>
</li>
<li class="tab-item">
<a href="#utilities">
utilities
</a>
</li>
</ul>
</section>
<section class="notes text-center">
<div class="btn-group">
<a href="#typography" class="btn btn-primary">typography</a>
<a href="#layout" class="btn btn-primary">layout</a>
<a href="#tables" class="btn btn-primary">tables</a>
<a href="#buttons" class="btn btn-primary">buttons</a>
<a href="#forms" class="btn btn-primary">forms</a>
<a href="#media" class="btn btn-primary">media</a>
</div>
</section>
</section>
<section id="typography" class="grid-960">
<header class="text-center"><h4>typography</h4></header>
<section class="notes">
<p><strong>Typography</strong> sets default styles for headings, paragraphs, blockquote, lists and code elements. </p>
</section>
<header class="text-center"><h5>headings</h5></header>
<h1>H1 Title <small class="label">5rem</small></h1>
<h2>H2 Title <small class="label">4rem</small></h2>
<h3>H3 Title <small class="label">3rem</small></h3>
<h4>H4 Title <small class="label">2.4rem</small></h4>
<h5>H5 Title <small class="label">2rem</small></h5>
<h6>H6 Title <small class="label">1.6rem</small></h6>
<!-- headings example -->
<pre class="code lang-html">
<<span class="tag">h1</span>>H1 Title<<span class="tag">/h1</span>>
<<span class="tag">h2</span>>H2 Title <<span class="tag">small</span> <span class="atn">class</span>=<span class="atv">"label"</span>>4rem<<span class="tag">/small</span>><<span class="tag">/h2</span>>
</pre>
<header class="text-center"><h5>paragraphs</h5></header>
<p>Lorem ipsum dolor sit amet, <span class="highlight">consectetur</span> adipiscing elit. Praesent risus leo, <a href="#typography">dictum in vehicula sit amet</a>, feugiat tempus tellus. Duis quis sodales risus. Etiam euismod ornare consequat.</p>
<p class="lead">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p>
<!-- headings example -->
<pre class="code lang-html">
<<span class="tag">p</span>>Lorem ipsum dolor sit amet, <<span class="tag">span</span> <span class="atn">class</span>=<span class="atv">"highlight"</span>>consectetur<<span class="tag">/span</span>> adipiscing elit. Praesent risus leo, <<span class="tag">a</span> <span class="atn">href</span>=<span class="atv">"#"</span>>dictum in vehicula sit amet<<span class="tag">/a</span>>, feugiat tempus tellus. Duis quis sodales risus. Etiam euismod ornare consequat.<<span class="tag">/p</span>>
<<span class="tag">p</span> <span class="atn">class</span>=<span class="atv">"lead"</span>>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.<<span class="tag">/p</span>>
</pre>
<header class="text-center"><h5>optimized for asian fonts</h5></header>
<p class="lead">你好, こんにちは, 안녕하세요</p>
<h6>Chinese (Simplified)</h6>
<p>革命不是请客吃饭,不是做文章,不是绘画绣花,不能那样雅致,那样从容不迫,“文质彬彬”,那样“温良恭俭让”。革命就是暴动,是一个阶级推翻一个阶级的暴烈的行动。</p>
<h6>Japanese</h6>
<p>祇園精舎の鐘の声、諸行無常の響きあり。沙羅双樹の花の色、盛者必衰の理をあらはす。おごれる人も久しからず。ただ春の夜の夢のごとし。たけき者も遂にはほろびぬ、ひとへに風の前の塵に同じ。</p>
<h6>Korean</h6>
<p>나라말이 중국과 달라, 한문・한자와 서로 통하지 아니하므로, 어리석은 백성들이 말하고자 하는 바가 있어도, 끝내 제 뜻을 펴지 못하는 사람이 많다. 내가 이를 불쌍히 여겨, 새로 스물 여덟 글자를 만드니, 사람마다 하여금 쉽게 익혀, 날마다 씀에 편하게 하고자 할 따름이다.</p>
<header class="text-center"><h5>blockquote</h5></header>
<blockquote>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p>
<cite>- Source</cite>
</blockquote>
<!-- blockquote example -->
<pre class="code lang-html">
<<span class="tag">blockquote</span>>
<<span class="tag">p</span>>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.<<span class="tag">/p</span>>
<<span class="tag">cite</span>>- Source<<span class="tag">/cite</span>>
<<span class="tag">/blockquote</span>>
</pre>
<header class="text-center"><h5>lists</h5></header>
<div class="columns">
<div class="column col-6">
<ul class="list">
<li>list item 1</li>
<li>list item 2
<ul>
<li>list item 2.1</li>
<li>list item 2.2</li>
<li>list item 2.3</li>
</ul>
</li>
<li>list item 3</li>
</ul>
</div>
<div class="column col-6">
<ol class="list">
<li>list item 1</li>
<li>list item 2
<ol>
<li>list item 2.1</li>
<li>list item 2.2</li>
<li>list item 2.3</li>
</ol>
</li>
<li>list item 3</li>
</ol>
</div>
</div>
<!-- lists example -->
<pre class="code lang-html">
<<span class="tag">ul</span> <span class="atn">class</span>=<span class="atv">"list"</span>>
<<span class="tag">li</span>>list item 1<<span class="tag">/li</span>>
<<span class="tag">li</span>>list item 2
<<span class="tag">ul</span>>
<<span class="tag">li</span>>list item 2.1<<span class="tag">/li</span>>
<<span class="tag">li</span>>list item 2.2<<span class="tag">/li</span>>
<<span class="tag">li</span>>list item 2.3<<span class="tag">/li</span>>
<<span class="tag">/ul</span>>
<<span class="tag">/li</span>>
<<span class="tag">li</span>>list item 3<<span class="tag">/li</span>>
<<span class="tag">/ul</span>>
</pre>
</section>
<section id="layout" class="grid-960">
<header class="text-center"><h4>flexbox layout</h4></header>
<section class="notes">
<p><strong>Layout</strong> includes flexbox based responsive grid system with 12 columns. </p>
</section>
<div class="columns">
<div class="column">
<div class="bg-grey"></div>
</div>
<div class="column">
<div class="bg-grey"></div>
</div>
<div class="column">
<div class="bg-grey"></div>
</div>
<div class="column">
<div class="bg-grey"></div>
</div>
<div class="column">
<div class="bg-grey"></div>
</div>
<div class="column">
<div class="bg-grey"></div>
</div>
<div class="column">
<div class="bg-grey"></div>
</div>
<div class="column">
<div class="bg-grey"></div>
</div>
<div class="column">
<div class="bg-grey"></div>
</div>
<div class="column">
<div class="bg-grey"></div>
</div>
<div class="column">
<div class="bg-grey"></div>
</div>
<div class="column">
<div class="bg-grey"></div>
</div>
</div>
<div class="columns">
<div class="column col-6">
<div class="bg-grey">col-6</div>
</div>
<div class="column col-3">
<div class="bg-grey">col-3</div>
</div>
<div class="column col-2">
<div class="bg-grey">col-2</div>
</div>
<div class="column col-1">
<div class="bg-grey">col-1</div>
</div>
</div>
<div class="columns">
<div class="column col-12">
<div class="bg-grey">col-12 (100%)</div>
</div>
</div>
<div class="columns">
<div class="column col-9">
<div class="bg-grey">col-9 (75%)</div>
</div>
</div>
<div class="columns">
<div class="column col-6">
<div class="bg-grey">col-6 (50%)</div>
</div>
</div>
<div class="columns">
<div class="column col-3">
<div class="bg-grey">col-3 (25%)</div>
</div>
</div>
<section class="notes">
<p>Add the class <code>columns</code> to a container. And add any element you want with classname <code>column</code> inside the container. These columns will take up the space equally. You can specific the width of each column by adding class <code>col-[1-12]</code>.</p>
</section>
<section class="notes">
<p>When the width of browser viewport is less than 840px and more than 480px, the col-[1-11] will be 50% width to the parent elements.</p>
</section>
<!-- layout example -->
<pre class="code lang-html">
<<span class="tag">div</span> <span class="atn">class</span>=<span class="atv">"columns"</span>>
<<span class="tag">div</span> <span class="atn">class</span>=<span class="atv">"column col-6"</span>>col-6<<span class="tag">/div</span>>
<<span class="tag">div</span> <span class="atn">class</span>=<span class="atv">"column col-3"</span>>col-3<<span class="tag">/div</span>>
<<span class="tag">div</span> <span class="atn">class</span>=<span class="atv">"column col-2"</span>>col-2<<span class="tag">/div</span>>
<<span class="tag">div</span> <span class="atn">class</span>=<span class="atv">"column col-1"</span>>col-1<<span class="tag">/div</span>>
<<span class="tag">/div</span>>
</pre>
</section>
<section id="tables" class="grid-960">
<header class="text-center"><h4>tables</h4></header>
<section class="notes">
<p><strong>Tables</strong> include default styles for tables and data sets.</p>
</section>
<table class="table">
<thead>
<tr>
<th>name</th>
<th>duration</th>
<th>genre</th>
<th>release date</th>
</tr>
</thead>
<tbody>
<tr class="selected">
<td>The Shawshank Redemption</td>
<td>2h 22min</td>
<td>Crime, Drama</td>
<td>14 October 1994 <span class="label">USA</span></td>
</tr>
<tr>
<td>The Godfather</td>
<td>2h 55min</td>
<td>Crime, Drama</td>
<td>24 March 1972 <span class="label">USA</span></td>
</tr>
<tr>
<td>Schindler's List</td>
<td>3h 15min</td>
<td>Biography, Drama, History</td>
<td>4 February 1994 <span class="label">USA</span></td>
</tr>
<tr>
<td>Se7en</td>
<td>2h 7min</td>
<td>Crime, Drama, Mystery</td>
<td>24 March 1972 <span class="label">USA</span></td>
</tr>
</tbody>
</table>
<section class="notes">
<p>Add the class <code>table</code> to any <table> element. The class will add padding, border and emphasized table header. Use the class <code>selected</code> to make <tr> element highlighted. </p>
</section>
<!-- tables example -->
<pre class="code lang-html">
<<span class="tag">table</span> <span class="atn">class</span>=<span class="atv">"table"</span>>
<<span class="tag">thead</span>>
<<span class="tag">tr</span>>
<<span class="tag">th</span>>name<<span class="tag">/th</span>>
<<span class="tag">th</span>>duration<<span class="tag">/th</span>>
<<span class="tag">th</span>>genre<<span class="tag">/th</span>>
<<span class="tag">th</span>>release date<<span class="tag">/th</span>>
<<span class="tag">/tr</span>>
<<span class="tag">/thead</span>>
<<span class="tag">tbody</span>>
<<span class="tag">tr</span> <span class="atn">class</span>=<span class="atv">"selected"</span>>
<<span class="tag">th</span>>The Shawshank Redemption<<span class="tag">/th</span>>
<<span class="tag">th</span>>2h 22min<<span class="tag">/th</span>>
<<span class="tag">th</span>>Crime, Drama<<span class="tag">/th</span>>
<<span class="tag">th</span>>14 October 1994<<span class="tag">/th</span>>
<<span class="tag">/tr</span>>
<<span class="tag">/tbody</span>>
<<span class="tag">/table</span>>
</pre>
</section>
<section id="buttons" class="grid-960">
<header class="text-center"><h4>buttons</h4></header>
<section class="notes">
<p><strong>Buttons</strong> include simple button styles for actions in different types and sizes. </p>
</section>
<div class="columns">
<div class="column">
<button class="btn">default button</button>
<button class="btn loading">default button</button>
</div>
<div class="column">
<button class="btn btn-primary">primary button</button>
<button class="btn btn-primary loading">primary button</button>
</div>
<div class="column">
<button class="btn btn-link">link button</button>
<button class="btn btn-link loading">link button</button>
</div>
</div>
<section class="notes">
<p>Add the class <code>btn</code> to <a>, <input> or <button> elements for a default button. There are classes <code>btn-primary</code> and <code>btn-link</code> for predefined primary and link buttons. A button with the class <code>loading</code> can show loading indicator. </p>
</section>
<!-- buttons example -->
<pre class="code lang-html">
<<span class="tag">button</span> <span class="atn">class</span>=<span class="atv">"btn"</span>>default button<<span class="tag">/button</span>>
<<span class="tag">button</span> <span class="atn">class</span>=<span class="atv">"btn btn-primary"</span>>primary button<<span class="tag">/button</span>>
<<span class="tag">button</span> <span class="atn">class</span>=<span class="atv">"btn btn-link"</span>>link button<<span class="tag">/button</span>>
<span class="com"><!-- a button with loading state --></span>
<<span class="tag">button</span> <span class="atn">class</span>=<span class="atv">"btn loading"</span>>button<<span class="tag">/button</span>>
</pre>
<header class="text-center"><h5>button sizes</h5></header>
<div class="columns">
<div class="column">
<button class="btn btn-lg">large button</button>
<button class="btn">normal button</button>
<button class="btn btn-sm">small button</button>
</div>
<div class="column">
<button class="btn btn-block">block button</button>
</div>
</div>
<section class="notes">
<p>Add the class <code>btn-sm</code> or <code>btn-lg</code> for small or large button size. Also, you can add the class <code>btn-block</code> for a full-width button. </p>
</section>
<!-- buttons example -->
<pre class="code lang-html">
<<span class="tag">button</span> <span class="atn">class</span>=<span class="atv">"btn btn-lg"</span>>large button<<span class="tag">/button</span>>
<<span class="tag">button</span> <span class="atn">class</span>=<span class="atv">"btn btn-sm"</span>>small button<<span class="tag">/button</span>>
<<span class="tag">button</span> <span class="atn">class</span>=<span class="atv">"btn btn-block"</span>>block button<<span class="tag">/button</span>>
</pre>
<div class="columns">
<div class="column">
<button class="btn btn-primary btn-lg"><span class="icon icon-markunread"></span> large</button>
<button class="btn btn-primary"><span class="icon icon-markunread"></span> normal</button>
<button class="btn btn-primary btn-sm"><span class="icon icon-markunread"></span> small</button>
</div>
</div>
<section class="notes">
<p>Icons with the class <code>icon</code> can be correctly rendered in each button size. </p>
</section>
<!-- buttons example -->
<pre class="code lang-html">
<<span class="tag">button</span> <span class="atn">class</span>=<span class="atv">"btn btn-primary btn-lg"</span>><<span class="tag">span</span> <span class="atn">class</span>=<span class="atv">"icon icon-markunread"</span>><<span class="tag">/span</span>> large<<span class="tag">/button</span>>
<<span class="tag">button</span> <span class="atn">class</span>=<span class="atv">"btn btn-primary"</span>><<span class="tag">span</span> <span class="atn">class</span>=<span class="atv">"icon icon-markunread"</span>><<span class="tag">/span</span>> normal<<span class="tag">/button</span>>
<<span class="tag">button</span> <span class="atn">class</span>=<span class="atv">"btn btn-primary btn-sm"</span>><<span class="tag">span</span> <span class="atn">class</span>=<span class="atv">"icon icon-markunread"</span>><<span class="tag">/span</span>> small<<span class="tag">/button</span>>
</pre>
<header class="text-center"><h5>button groups</h5></header>
<div class="columns">
<div class="column">
<div class="btn-group">
<button class="btn">first button</button>
<button class="btn">second button</button>
<button class="btn">third button</button>
</div>
</div>
<div class="column">
<div class="btn-group btn-group-block">
<button class="btn btn-primary">first button</button>
<button class="btn btn-primary">second button</button>
<button class="btn btn-primary">third button</button>
</div>
</div>
</div>
<section class="notes">
<p>If you want to use buttons as a group, add the class <code>btn-group</code> to the container. You can add the class <code>btn-group-block</code> for a full-width button group.</p>
</section>
<!-- button groups example -->
<pre class="code lang-html">
<<span class="tag">div</span> <span class="atn">class</span>=<span class="atv">"btn-group btn-group-block"</span>>
<<span class="tag">button</span> <span class="atn">class</span>=<span class="atv">"btn"</span>>first button<<span class="tag">/button</span>>
<<span class="tag">button</span> <span class="atn">class</span>=<span class="atv">"btn"</span>>second button<<span class="tag">/button</span>>
<<span class="tag">button</span> <span class="atn">class</span>=<span class="atv">"btn"</span>>third button<<span class="tag">/button</span>>
<<span class="tag">/div</span>>
</pre>
</section>
<section id="forms" class="grid-960">
<header class="text-center"><h4>forms</h4></header>
<section class="notes">
<p><strong>Forms</strong> provide the most common control styles used in forms, including label, input, textarea, select, checkbox, radio and switch. </p>
<p></p>
</section>
<div class="columns">
<div class="column col-6">
<form action="#forms">
<div class="form-group">
<label class="form-label" for="input-example-1">Name</label>
<input class="form-input is-danger" type="text" id="input-example-1" placeholder="Name" />
</div>
<div class="form-group has-success">
<label class="form-label" for="input-example-2">Email</label>
<input class="form-input" type="email" id="input-example-2" placeholder="Email" />
</div>
<div class="form-group">
<label class="form-label">Gender</label>
<label class="form-radio">
<input type="radio" name="gender" />
<i class="form-icon"></i> Male
</label>
<label class="form-radio">
<input type="radio" name="gender" checked />
<i class="form-icon"></i> Female
</label>
</div>
<div class="form-group hide">
<label class="form-file">
<input type="file" id="file">
<span class="file-custom"></span>
</label>
</div>
<div class="form-group">
<select class="form-select">
<option>Choose an option</option>
<option>Slack</option>
<option>Skype</option>
<option>Hipchat</option>
</select>
</div>
<div class="form-group">
<label class="form-switch">
<input type="checkbox" />
<i class="form-icon"></i> Send me emails with news and tips
</label>
</div>
<div class="form-group">
<label class="form-label" for="input-example-3">Message</label>
<textarea class="form-input" id="input-example-3" placeholder="Textarea" rows="3"></textarea>
</div>
<div class="form-group">
<label class="form-checkbox">
<input type="checkbox" />
<i class="form-icon"></i> Remember me
</label>
</div>
<div class="form-group">
<button class="btn btn-primary" type="submit">Submit</button>
<button class="btn btn-link" type="reset">Cancel</button>
</div>
</form>
</div>
<div class="column col-6">
<form class="form-horizontal" action="#forms">
<div class="form-group">
<label class="form-label col-3" for="input-example-4">Name</label>
<div class="col-9">
<input class="form-input" type="text" id="input-example-4" placeholder="Name" />
</div>
</div>
<div class="form-group">
<label class="form-label col-3" for="input-example-5">Email</label>
<div class="col-9">
<input class="form-input" type="email" id="input-example-5" placeholder="Email" />
</div>
</div>
<div class="form-group">
<label class="form-label col-3">Gender</label>
<div class="col-9">
<label class="form-radio">
<input type="radio" name="gender" />
<i class="form-icon"></i> Male
</label>
<label class="form-radio">
<input type="radio" name="gender" checked />
<i class="form-icon"></i> Female
</label>
</div>
</div>
<div class="form-group">
<div class="col-3"></div>
<div class="col-9">
<select class="form-select">
<option>Choose an option</option>
<option>Slack</option>
<option>Skype</option>
<option>Hipchat</option>
</select>
</div>
</div>
<div class="form-group">
<div class="col-3"></div>
<div class="col-9">
<label class="form-switch">
<input type="checkbox" />
<i class="form-icon"></i> Send me emails with news and tips
</label>
</div>
</div>
<div class="form-group">
<label class="form-label col-3" for="input-example-6">Message</label>
<div class="col-9">
<textarea class="form-input" id="input-example-6" placeholder="Textarea" rows="3"></textarea>
</div>
</div>
<div class="form-group">
<div class="col-3"></div>
<div class="col-9">
<label class="form-checkbox">
<input type="checkbox" />
<i class="form-icon"></i> Remember me
</label>
</div>
</div>
<div class="form-group">
<div class="col-3"></div>
<div class="col-9">
<button class="btn btn-primary" type="submit">Submit</button>
<button class="btn btn-link" type="reset">Cancel</button>
</div>
</div>
</form>
</div>
</div>
<!-- forms example -->
<pre class="code lang-html">
<<span class="tag">form</span>>
<span class="com"><!-- form input control --></span>
<<span class="tag">div</span> <span class="atn">class</span>=<span class="atv">"form-group"</span>>
<<span class="tag">label</span> <span class="atn">class</span>=<span class="atv">"form-label"</span> <span class="atn">for</span>=<span class="atv">"input-example-1"</span>>Name<<span class="tag">/label</span>>
<<span class="tag">input</span> <span class="atn">class</span>=<span class="atv">"form-input"</span> <span class="atn">type</span>=<span class="atv">"text"</span> <span class="atn">id</span>=<span class="atv">"input-example-1"</span> <span class="atn">placeholder</span>=<span class="atv">"Name"</span> />
<<span class="tag">/div</span>>
<span class="com"><!-- form radio control --></span>
<<span class="tag">div</span> <span class="atn">class</span>=<span class="atv">"form-group"</span>>
<<span class="tag">label</span> <span class="atn">class</span>=<span class="atv">"form-label"</span>>Gender<<span class="tag">/label</span>>
<<span class="tag">label</span> <span class="atn">class</span>=<span class="atv">"form-radio"</span>>
<<span class="tag">input</span> <span class="atn">type</span>=<span class="atv">"radio"</span> <span class="atn">name</span>=<span class="atv">"gender"</span> />
<<span class="tag">i</span> <span class="atn">class</span>=<span class="atv">"form-icon"</span>><<span class="tag">/i</span>> Male
<<span class="tag">/label</span>>
<<span class="tag">label</span> <span class="atn">class</span>=<span class="atv">"form-radio"</span>>
<<span class="tag">input</span> <span class="atn">type</span>=<span class="atv">"radio"</span> <span class="atn">name</span>=<span class="atv">"gender"</span> <span class="atn">checked</span> />
<<span class="tag">i</span> <span class="atn">class</span>=<span class="atv">"form-icon"</span>><<span class="tag">/i</span>> Female
<<span class="tag">/label</span>>
<<span class="tag">/div</span>>
<span class="com"><!-- form select control --></span>
<<span class="tag">div</span> <span class="atn">class</span>=<span class="atv">"form-group"</span>>
<<span class="tag">select</span> <span class="atn">class</span>=<span class="atv">"form-select"</span>>
<<span class="tag">option</span>>Choose an option<<span class="tag">/option</span>>
<<span class="tag">option</span>>Slack<<span class="tag">/option</span>>
<<span class="tag">option</span>>Skype<<span class="tag">/option</span>>
<<span class="tag">option</span>>Hipchat<<span class="tag">/option</span>>
<<span class="tag">/select</span>>
<<span class="tag">/div</span>>
<span class="com"><!-- form switch control --></span>
<<span class="tag">div</span> <span class="atn">class</span>=<span class="atv">"form-group"</span>>
<<span class="tag">label</span> <span class="atn">class</span>=<span class="atv">"form-switch"</span>>
<<span class="tag">input</span> <span class="atn">type</span>=<span class="atv">"checkbox"</span> />
<<span class="tag">i</span> <span class="atn">class</span>=<span class="atv">"form-icon"</span>><<span class="tag">/i</span>> Send me emails with news and tips
<<span class="tag">/label</span>>
<<span class="tag">/div</span>>
<span class="com"><!-- form textarea control --></span>
<<span class="tag">div</span> <span class="atn">class</span>=<span class="atv">"form-group"</span>>
<<span class="tag">label</span> <span class="atn">class</span>=<span class="atv">"form-label"</span> <span class="atn">for</span>=<span class="atv">"input-example-3"</span>>Message<<span class="tag">/label</span>>
<<span class="tag">textarea</span> <span class="atn">class</span>=<span class="atv">"form-input"</span> <span class="atn">id</span>=<span class="atv">"input-example-3"</span> <span class="atn">placeholder</span>=<span class="atv">"Textarea"</span> <span class="atn">rows</span>=<span class="atv">"3"</span>><<span class="tag">/textarea</span>>
<<span class="tag">/div</span>>
<span class="com"><!-- form checkbox control --></span>
<<span class="tag">div</span> <span class="atn">class</span>=<span class="atv">"form-group"</span>>
<<span class="tag">label</span> <span class="atn">class</span>=<span class="atv">"form-checkbox"</span>>
<<span class="tag">input</span> <span class="atn">type</span>=<span class="atv">"checkbox"</span> />
<<span class="tag">i</span> <span class="atn">class</span>=<span class="atv">"form-icon"</span>><<span class="tag">/i</span>> Remember me
<<span class="tag">/label</span>>
<<span class="tag">/div</span>>
<<span class="tag">/form</span>>
</pre>
<section class="notes">
<p>If you want to have a horizontal form, add the class <code>form-horizontal</code> to the <form> container. And add the class <code>col-[1-12]</code> to the child elements for form row layout. Please note <code>form-horizontal</code> only works in viewports that are at least 840px wide.</p>
</section>
<!-- forms example -->
<pre class="code lang-html">
<<span class="tag">form</span> <span class="atn">class</span>=<span class="atv">"form-horizontal"</span>>
<<span class="tag">div</span> <span class="atn">class</span>=<span class="atv">"form-group"</span>>
<<span class="tag">label</span> <span class="atn">class</span>=<span class="atv">"form-label col-3"</span> <span class="atn">for</span>=<span class="atv">"input-example-1"</span>>Name<<span class="tag">/label</span>>
<<span class="tag">div</span> <span class="atn">class</span>=<span class="atv">"col-9"</span>>
<<span class="tag">input</span> <span class="atn">class</span>=<span class="atv">"form-input"</span> <span class="atn">type</span>=<span class="atv">"text"</span> <span class="atn">id</span>=<span class="atv">"input-example-1"</span> <span class="atn">placeholder</span>=<span class="atv">"Name"</span> />
<<span class="tag">/div</span>>
<<span class="tag">/div</span>>
<span class="com"><!-- form structure --></span>
<<span class="tag">/form</span>>
</pre>
<section class="notes">
<p>To use form validation styles, add <code>is-success</code> and <code>is-danger</code> to the controls or add <code>has-success</code> and <code>has-danger</code> to parent elements.</p>
</section>
<!-- forms example -->
<pre class="code lang-html">
<<span class="tag">form</span>>
<span class="com"><!-- form validation styles --></span>
<<span class="tag">div</span> <span class="atn">class</span>=<span class="atv">"form-group has-success"</span>>
<<span class="tag">label</span> <span class="atn">class</span>=<span class="atv">"form-label"</span> <span class="atn">for</span>=<span class="atv">"input-example-1"</span>>Name<<span class="tag">/label</span>>
<<span class="tag">input</span> <span class="atn">class</span>=<span class="atv">"form-input is-success"</span> <span class="atn">type</span>=<span class="atv">"text"</span> <span class="atn">id</span>=<span class="atv">"input-example-1"</span> <span class="atn">placeholder</span>=<span class="atv">"Name"</span> />
<<span class="tag">/div</span>>
<<span class="tag">/form</span>>
</pre>
<header class="text-center"><h5>input groups</h5></header>
<div class="columns">
<div class="column">
<div class="input-group">
<span class="input-group-addon">slack.com/</span>
<input type="text" class="form-input" placeholder="site name" />
</div>
</div>
<div class="column">
<div class="input-group">
<input type="text" class="form-input" placeholder="username" />
<span class="input-group-addon">@slack.com</span>
</div>
</div>
<div class="column">
<div class="input-group">
<span class="input-group-addon">slack.com/</span>
<input type="text" class="form-input" placeholder="site name" />
<button class="btn btn-primary input-group-btn">Submit</button>
</div>
</div>
</div>
<section class="notes">
<p>If you want to attach text and button along with an input, add the class <code>input-group</code> to the input container. And add the class <code>input-group-addon</code> to the text element and <code>input-group-btn</code> to the button element.</p>
</section>
<!-- input groups example -->
<pre class="code lang-html">
<<span class="tag">div</span> <span class="atn">class</span>=<span class="atv">"input-group"</span>>
<<span class="tag">span</span> <span class="atn">class</span>=<span class="atv">"input-group-addon"</span>>slack.com/<<span class="tag">/span</span>>
<<span class="tag">input</span> <span class="atn">type</span>=<span class="atv">"text"</span> <span class="atn">class</span>=<span class="atv">"form-input"</span> <span class="atn">placeholder</span>=<span class="atv">"site name"</span> />
<<span class="tag">/div</span>>
<<span class="tag">div</span> <span class="atn">class</span>=<span class="atv">"input-group"</span>>
<<span class="tag">span</span> <span class="atn">class</span>=<span class="atv">"input-group-addon"</span>>slack.com/<<span class="tag">/span</span>>
<<span class="tag">input</span> <span class="atn">type</span>=<span class="atv">"text"</span> <span class="atn">class</span>=<span class="atv">"form-input"</span> <span class="atn">placeholder</span>=<span class="atv">"site name"</span> />
<<span class="tag">button</span> <span class="atn">class</span>=<span class="atv">"btn btn-primary input-group-btn"</span>>Submit<<span class="tag">/button</span>>
<<span class="tag">/div</span>>
</pre>
</section>
<section id="media" class="grid-960">
<header class="text-center"><h4>media</h4></header>
<section class="notes">
<p><strong>Media</strong> include responsive image and video class. </p>
</section>
<div class="columns">
<div class="column col-6">
<img src="demo/img/osx-el-capitan.jpg" class="img-responsive rounded" />
</div>
</div>
<section class="notes">
<p>Add the class <code>img-responsive</code> to <img> elements. The images will scale with the parent sizes.</p>
</section>
<div class="columns">
<div class="column col-6">
<div class="video-responsive">
<iframe src="https://www.youtube.com/embed/vBfBa-gCMQk" width="560" height="315" frameborder="0" allowfullscreen></iframe>
</div>
</div>
</div>
<section class="notes">
<p>For responsive video, add a container with the class <code>video-responsive</code>. Insert any YouTube, Youku or other iframe/embed video inside the container. The ratio is 16:9 by default. You may add <code>.video-responsive-4-3</code> for 4:3 ratio video container.</p>
</section>
<!-- media example -->
<pre class="code lang-html">
<<span class="tag">img</span> <span class="atn">src</span>=<span class="atv">"img/osx-el-capitan.jpg"</span> <span class="atn">class</span>=<span class="atv">"img-responsive rounded"</span> />
<<span class="tag">div</span> <span class="atn">class</span>=<span class="atv">"video-responsive"</span>>
<<span class="tag">iframe</span> <span class="atn">src</span>=<span class="atv">"https://www.youtube.com/embed/vBfBa-gCMQk"</span> <span class="atn">width</span>=<span class="atv">"560"</span> <span class="atn">height</span>=<span class="atv">"315"</span> <span class="atn">frameborder</span>=<span class="atv">"0"</span> <span class="atn">allowfullscreen</span>><<span class="tag">/iframe</span>>
<<span class="tag">/div</span>>
</pre>
</section>
<section id="components" class="grid-960">
<section class="notes text-center">
<ul class="tab inline-block">
<li class="tab-item">
<a href="#elements">
elements
</a>
</li>
<li class="tab-item active">
<a href="#components">
components
</a>
</li>
<li class="tab-item">
<a href="#utilities">
utilities
</a>
</li>
</ul>
</section>
<section class="notes text-center">
<div class="btn-group">
<a href="#avatars" class="btn btn-primary">avatars</a>
<a href="#chips" class="btn btn-primary">chips</a>
<a href="#autocomplete" class="btn btn-primary">autocomplete</a>
<a href="#tooltips" class="btn btn-primary">tooltips</a>
<a href="#labels" class="btn btn-primary">labels</a>
<a href="#badges" class="btn btn-primary">badges</a>
<a href="#toasts" class="btn btn-primary">toasts</a>
<a href="#menus" class="btn btn-primary">menus</a>
<a href="#navigation" class="btn btn-primary">navigation</a>
<a href="#modals" class="btn btn-primary">modals</a>
<a href="#cards" class="btn btn-primary">cards</a>
</div>
</section>
</section>
<section id="avatars" class="grid-960">
<header class="text-center"><h4>avatars</h4></header>
<section class="notes">
<p><strong>Avatars</strong> are user profile pictures. </p>
</section>
<div class="columns">
<div class="column col-3">
<figure class="avatar avatar-xl">
<img src="demo/img/avatar-1.png" />
</figure>
<figure class="avatar avatar-lg">
<img src="demo/img/avatar-2.png" />
</figure>
<figure class="avatar">
<img src="demo/img/avatar-3.png" />
</figure>
<figure class="avatar avatar-sm">
<img src="demo/img/avatar-4.png" />
</figure>
<figure class="avatar avatar-xs">
<img src="demo/img/avatar-5.png" />
</figure>
</div>
<div class="column col-3">
<figure class="avatar avatar-xl">
<img src="demo/img/avatar-1.png" />
<img src="demo/img/avatar-2.png" class="avatar-icon" />
</figure>
<figure class="avatar avatar-lg">
<img src="demo/img/avatar-2.png" />
<img src="demo/img/avatar-3.png" class="avatar-icon" />
</figure>
<figure class="avatar">
<img src="demo/img/avatar-3.png" />
<img src="demo/img/avatar-4.png" class="avatar-icon" />
</figure>
<figure class="avatar avatar-sm">
<img src="demo/img/avatar-4.png" />
<img src="demo/img/avatar-5.png" class="avatar-icon" />
</figure>
<figure class="avatar avatar-xs">
<img src="demo/img/avatar-5.png" />
<img src="demo/img/avatar-1.png" class="avatar-icon" />
</figure>
</div>
<div class="column col-3">
<figure class="avatar avatar-xl" data-initial="YZ" style="background-color: #5764c6;"></figure>
<figure class="avatar avatar-lg" data-initial="YZ" style="background-color: #6874cc;"></figure>
<figure class="avatar" data-initial="YZ" style="background-color: #7983d2;"></figure>
<figure class="avatar avatar-sm" data-initial="YZ" style="background-color: #8a93d7;"></figure>
<figure class="avatar avatar-xs" data-initial="YZ" style="background-color: #9ba2dd;"></figure>
</div>
</div>
<section class="notes">
<p>Add the class <code>avatar</code> to <img> element. There are 4 additional sizes available, including <code>avatar-xl</code> (64px), <code>avatar-lg</code> (48px), <code>avatar-sm</code> (24px), and <code>avatar-xs</code> (16px). By default, the avatar size is 32px.</p>
<p>For users who don't have profile pictures, you may use their initials for avatars. Add the class <code>avatar</code> and avatar size class to <div> element. The attribute <code>data-initial</code> is the name appear inside the avatar.</p>
</section>
<!-- avatars example -->
<pre class="code lang-html">
<<span class="tag">figure</span> <span class="atn">class</span>=<span class="atv">"avatar avatar-xl"</span>>
<<span class="tag">img</span> <span class="atn">src</span>=<span class="atv">"img/avatar-1.png"</span> />
<<span class="tag">/figure</span>>
<<span class="tag">figure</span> <span class="atn">class</span>=<span class="atv">"avatar avatar-xl"</span>>
<<span class="tag">img</span> <span class="atn">src</span>=<span class="atv">"img/avatar-1.png"</span> />
<<span class="tag">img</span> <span class="atn">src</span>=<span class="atv">"img/avatar-5.png"</span> <span class="atn">class</span>=<span class="atv">"avatar-icon"</span> />
<<span class="tag">/figure</span>>
<<span class="tag">figure</span> <span class="atn">class</span>=<span class="atv">"avatar avatar-xl"</span> <span class="atn">data-initial</span>=<span class="atv">"YZ"</span> <span class="atn">style</span>=<span class="atv">"background-color: #5764c6;"</span>><<span class="tag">/figure</span>>
</pre>
</section>
<section id="chips" class="grid-960">
<header class="text-center"><h4>chips</h4></header>
<section class="notes">
<p><strong>Chips</strong> are complex entities in small blocks. </p>
</section>
<div class="columns">
<div class="column">
<div class="chip-sm">
<span class="chip-name">Crime</span>
<button class="btn btn-clear"></button>
</div>
<div class="chip-sm">
<span class="icon icon-favorite_border"></span>
<span class="chip-name">Drama</span>
<button class="btn btn-clear"></button>
</div>
<div class="chip-sm">
<span class="chip-name">Biography</span>
<button class="btn btn-clear"></button>
</div>
<div class="chip-sm">
<span class="chip-name">Mystery</span>
<button class="btn btn-clear"></button>
</div>
</div>
<div class="column">
<div class="chip-sm">
<img src="demo/img/avatar-1.png" class="avatar" />
<span class="chip-name">Tony Stark</span>
<button class="btn btn-clear"></button>
</div>
<div class="chip-sm">
<img src="demo/img/avatar-2.png" class="avatar" />
<span class="chip-name">Thor Odinson</span>
<button class="btn btn-clear"></button>
</div>
<div class="chip-sm">
<img src="demo/img/avatar-4.png" class="avatar" />
<span class="chip-name">Steve Rogers</span>
<button class="btn btn-clear"></button>
</div>
</div>
</div>
<!-- <div class="columns">
<div class="column">
<div class="chip">
<div class="chip-list-icon">
<img src="demo/img/avatar-1.png" class="avatar" />
</div>
<div class="chip-list-content">
Yan Zhu
</div>
<div class="chip-list-action">
<button class="btn">
<i class="icon icon-message"></i>
</button>
</div>
</div>