forked from rikitanone/drunken-parrot-flat-ui
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocumentation.html
1141 lines (1044 loc) · 40.2 KB
/
documentation.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">
<title>Drunken Parrot UI Kit - Bootstrap Framework Theme</title>
<meta name="description" content="UI Kit Free is a Twitter Bootstrap Framework design and Theme."/>
<meta name="viewport" content="width=1000, initial-scale=1.0, maximum-scale=1.0">
<!-- Loading Font Awesome Icons -->
<link href="css/font-awesome.min.css" rel="stylesheet">
<!-- Loading Bootstrap -->
<link href="bootstrap/css/bootstrap.css" rel="stylesheet">
<link href="bootstrap/css/prettify.css" rel="stylesheet">
<!-- Loading Drunken Parrot UI -->
<link href="css/drunken-parrot.css" rel="stylesheet">
<link href="css/docs.css" rel="stylesheet">
<!-- <link rel="shortcut icon" href="images/favicon.ico"> -->
<!-- HTML5 shim, for IE6-8 support of HTML5 elements. All other JS at the end of file. -->
<!--[if lt IE 9]>
<script src="js/html5shiv.js"></script>
<![endif]-->
</head>
<body data-spy="scroll" data-target="#sidenav" data-offset="100">
<div class="masthead">
<div class="container">
<img src="images/[email protected]" width="101" height="22" alt="">
<div class="masthead-title">Drunken Parrot UI Kit
<small>Documentation</small>
</div>
</div>
</div>
<div class="container">
<div class="row">
<div class="col-md-10">
<div class="componant-section">
<!-- #### Buttons #### -->
<h2 class="demo-section-title" id="buttons">Buttons</h2>
<div class="doc-section">
<p>We have restyled all the core <a href="http://getbootstrap.com/css/#buttons">bootstrap button classes</a>.</p>
<p>
<button class="btn btn-default">Default</button>
<button class="btn btn-primary">Primary</button>
<button class="btn btn-danger">Danger</button>
<button class="btn btn-warning">Warning</button>
<button class="btn btn-info">Info</button>
<button class="btn btn-success">Success</button>
</p>
<pre class="prettyprint">
<button class="btn btn-default">Default</button>
<button class="btn btn-primary">Primary</button>
<button class="btn btn-danger">Danger</button>
<button class="btn btn-warning">Warning</button>
<button class="btn btn-info">Info</button>
<button class="btn btn-success">Success</button>
</pre>
</div>
<div class="doc-section">
<p>and have introduced a new class called <span class="label label-primary">.btn-stroke</span>.</p>
<p><button class="btn btn-stroke">Stoke</button></p>
<pre class="prettyprint">
<button class="btn btn-stroke">Stoke</button>
</pre>
</div>
<div class="doc-section">
<p>We have also added the classes <span class="label label-primary">.btn-orange</span> and <span class="label label-primary">.btn-purple</span> to the color various for you to use.</p>
<p><button class="btn btn-purple">Purple</button> <button class="btn btn-orange">Orange</button></p>
<pre class="prettyprint">
<button class="btn btn-purple">Purple</button>
<button class="btn btn-orange">Orange</button>
</pre>
</div>
<div class="doc-section">
<p>All the buttons have disabled variations.</p>
<p>
<button class="btn btn-default" disabled="disabled">Disabled</button>
<button class="btn btn-primary" disabled="disabled">Disabled</button>
<button class="btn btn-danger" disabled="disabled">Disabled</button>
<button class="btn btn-warning" disabled="disabled">Disabled</button>
<button class="btn btn-info" disabled="disabled">Disabled</button>
<button class="btn btn-stroke" disabled="disabled">Disabled</button>
</p>
<pre class="prettyprint">
<button class="btn btn-default" disabled="disabled">Default</button>
<button class="btn btn-primary" disabled="disabled">Primary</button>
<button class="btn btn-danger" disabled="disabled">Danger</button>
<button class="btn btn-warning" disabled="disabled">Warning</button>
<button class="btn btn-info" disabled="disabled">Info</button>
<button class="btn btn-success" disabled="disabled">Success</button>
</pre>
</div>
<div class="doc-section">
<p>You can also create a 3D button variant of any of the buttons by adding the class <span class="label label-primary">.btn-embossed</span>.</p>
<p><button class="btn btn-primary btn-embossed">3D Button</button> <button class="btn btn-success btn-embossed">3D Button</button></p>
<pre class="prettyprint">
<button class="btn btn-primary btn-embossed">3D Button</button>
<button class="btn btn-success btn-embossed">3D Button</button>
</pre>
</div>
<div class="doc-section">
<p>Finally, we have introduced one new size called <strong>Kraken</strong>, to use this size simply add <span class="label label-primary">.btn-kr</span> to any button.
<p><button class="btn btn-primary btn-kr">Kraken Button</button></p>
<pre class="prettyprint">
<button class="btn btn-primary btn-kr">Kraken</button>
</pre>
</div>
<!-- ##### Inputs ##### -->
<h2 class="demo-section-title" id="inputs">Inputs</h2>
<div class="doc-section">
<p>We have restyled the bootstrap inputs, below is an example of a standard text input.</p>
<div class="row">
<div class="col-md-5">
<p><input type="text" class="form-control" placeholder="Web designer, etc."></p>
</div>
</div>
<pre class="prettyprint">
<input type="text" class="form-control" placeholder="Web designer, etc.">
</pre>
</div>
<div class="doc-section hidden-xs">
<p>You can add a required marker by adding the class <span class="label label-primary">.input-required</span> to the form group element and an empty span element following the input field.</p>
<div class="row">
<div class="col-md-5">
<div class="form-group input-required">
<input type="text" class="form-control" required placeholder="The Walrus, The Ranger, etc."><span></span>
</div>
</div>
</div>
<pre class="prettyprint">
<div class="form-group input-required">
<input type="text" class="form-control" required placeholder="The Walrus, The Ranger, etc.">
<span></span>
</div>
</pre>
</div>
<div class="doc-section">
<p>Icons can be added to the start of inputs by adding the <span class="label label-primary">.input-icon</span> class to the parent element and including the icon you want before the input field.</p>
<div class="row">
<div class="col-md-5">
<div class="form-group input-icon">
<span class="fa fa-user"></span>
<input type="text" class="form-control" placeholder="Username">
</div>
</div>
</div>
<pre class="prettyprint">
<div class="form-group input-icon">
<span class="fa fa-user"></span>
<input type="text" class="form-control" placeholder="Username">
</div>
</pre>
</div>
<div class="doc-section">
<p>and the error state use the same classes as well.</p>
<div class="row">
<div class="col-md-5">
<div class="form-group has-warning">
<input type="text" class="form-control" value="Warning" >
</div>
<div class="form-group has-error">
<input type="text" class="form-control" value="Error" >
</div>
<div class="form-group has-success">
<input type="text" class="form-control" value="Success" />
</div>
</div>
</div>
<br>
<pre class="prettyprint">
<div class="form-group has-warning">
<input type="text" class="form-control" value="Warning">
</div>
<div class="form-group has-error">
<input type="text" class="form-control" value="Error">
</div>
<div class="form-group has-success">
<input type="text" class="form-control" value="Success">
</div>
</pre>
</div>
<!-- #### Pagination #### -->
<h2 class="demo-section-title" id="pagination">Pagination</h2>
<div class="doc-section">
<p>The pagination uses the same classes as bootstrap</p>
<ul class="pagination">
<li><a href="#">←</a></li>
<li><a href="#">1</a></li>
<li class="active"><a href="#">2</a></li>
<li><a href="#">3</a></li>
<li><a href="#">4</a></li>
<li class="disabled"><a href="#">5</a></li>
<li><a href="#">→</a></li>
</ul>
<pre class="prettyprint">
<ul class="pagination">
<li><a href="#">←</a></li>
<li><a href="#">1</a></li>
<li class="active"><a href="#">2</a></li>
<li><a href="#">3</a></li>
<li><a href="#">4</a></li>
<li class="disabled"><a href="#">5</a></li>
<li><a href="#">→</a></li>
</ul>
</pre>
</div>
<div class="doc-section">
<p>You can you the classes <span class="label label-primary">.pagination-sm</span> or <span class="label label-primary">.pagination-lg</span> to control the sizes</p>
<ul class="pagination pagination-sm">
<li><a href="#">←</a></li>
<li><a href="#">1</a></li>
<li class="active"><a href="#">2</a></li>
<li><a href="#">3</a></li>
<li><a href="#">4</a></li>
<li class="disabled"><a href="#">5</a></li>
<li><a href="#">→</a></li>
</ul>
<br>
<ul class="pagination pagination-lg">
<li><a href="#">←</a></li>
<li><a href="#">1</a></li>
<li class="active"><a href="#">2</a></li>
<li><a href="#">3</a></li>
<li><a href="#">4</a></li>
<li class="disabled"><a href="#">5</a></li>
<li><a href="#">→</a></li>
</ul>
<pre class="prettyprint">
<ul class="pagination pagination-sm">
<li><a href="#">←</a></li>
<li><a href="#">1</a></li>
<li class="active"><a href="#">2</a></li>
<li><a href="#">3</a></li>
<li><a href="#">4</a></li>
<li class="disabled"><a href="#">5</a></li>
<li><a href="#">→</a></li>
</ul>
<ul class="pagination pagination-lg">
<li><a href="#">←</a></li>
<li><a href="#">1</a></li>
<li class="active"><a href="#">2</a></li>
<li><a href="#">3</a></li>
<li><a href="#">4</a></li>
<li class="disabled"><a href="#">5</a></li>
<li><a href="#">→</a></li>
</ul>
</pre>
</div>
<!-- #### Breadcrumbs #### -->
<h2 class="demo-section-title" id="breadcrumbs">Breadcrumbs</h2>
<div class="doc-section">
<p>Breadcrumbs can be made minimal by adding the class <span class="label label-primary">.breadcrumbs-minimal</span> </p>
<ol class="breadcrumb breadcrumbs-minimal">
<li><a href="#">Home</a></li>
<li><a href="#">Electronics Hover</a></li>
<li><a href="#">Cameras</a></li>
<li class="active">Digital Cameras</li>
</ol>
<pre class="prettyprint">
<ol class="breadcrumb breadcrumbs-minimal">
<li><a href="#">Home</a></li>
<li><a href="#">Electronics Hover</a></li>
<li><a href="#">Cameras</a></li>
<li><a href="#">Digital Cameras</a></li>
</ol>
</pre>
</div>
<!-- #### Navs #### -->
<h2 class="demo-section-title" id="navs">Navs</h2>
<div class="doc-section">
<p>The default tabs use the same classes as the tabs in bootstrap</p>
<div class="row">
<div class="col-md-6">
<ul class="nav nav-tabs">
<li class="active"><a href="#">Home</a></li>
<li><a href="#">Profile</a></li>
<li><a href="#">Messages</a></li>
</ul>
</div>
</div>
<br>
<pre class="prettyprint">
<ul class="nav nav-tabs">
<li class="active"><a href="#">Home</a></li>
<li><a href="#">Profile</a></li>
<li><a href="#">Messages</a></li>
</ul>
</pre>
</div>
<div class="doc-section">
<p>and if you want to double the border you can add the class <span class="label label-primary">.nav-stroke</span></p>
<div class="row">
<div class="col-md-6">
<ul class="nav nav-tabs nav-stroke">
<li class="active"><a href="#">Home</a></li>
<li><a href="#">Profile</a></li>
<li><a href="#">Messages</a></li>
</ul>
</div>
</div>
<br>
<pre class="prettyprint">
<ul class="nav nav-tabs nav-stroke">
...
</ul>
</pre>
</div>
<div class="doc-section">
<p>and the restyled pills navigation</p>
<div class="row">
<div class="col-md-6">
<ul class="nav nav-pills">
<li class="active"><a href="#">Home</a></li>
<li><a href="#">Profile</a></li>
<li><a href="#">Messages</a></li>
<li class="disabled"><a href="#">Disabled</a></li>
</ul>
</div>
</div>
<br>
<pre class="prettyprint">
<ul class="nav nav-pills">
<li class="active"><a href="#">Home</a></li>
<li><a href="#">Profile</a></li>
<li><a href="#">Messages</a></li>
<li class="disabled"><a href="#">Disabled link</a></li>
</ul>
</pre>
</div>
<!-- #### Alerts #### -->
<h2 class="demo-section-title" id="alerts">Alerts</h2>
<div class="doc-section">
<p>You can change the icon used to close the alerts if you want but changing the class on the button element but most of the time you will want to use <span class="label label-primary">.fa-times</span> and dont forget to add <span class="label label-primary">.alert-dismissable</span> to the parent div.</p>
<div class="alert alert-primary alert-dismissable">
<button type="button" class="close fa fa-times"></button>
Primary! There's never a man <strong>looked me between the eyes</strong> and seen a good day a'terward.
</div>
<br>
<pre class="prettyprint">
<div class="alert alert-primary alert-dismissable">
<button type="button" class="close fa fa-times"></button>
...
</div>
</pre>
</div>
<div class="doc-section">
<p>All the color variations are available via the same classes as bootstrap</p>
<div class="alert alert-primary">Primary</div>
<div class="alert alert-info">Info</div>
<div class="alert alert-success">Success</div>
<div class="alert alert-warning">Warning</div>
<div class="alert alert-danger">Error</div>
<br>
<pre class="prettyprint">
<div class="alert alert-primary">...</div>
<div class="alert alert-info">...</div>
<div class="alert alert-success">...</div>
<div class="alert alert-warning">...</div>
<div class="alert alert-error">...</div>
</pre>
</div>
<!-- #### Thumbnails #### -->
<h2 class="demo-section-title" id="thumbnails">Thumbnails</h2>
<div class="doc-section">
<p>We have introduced a hover state to the bootstrap thumbnails, you can control the icon by changing the icon class on the a tag, by default we use <span class="label label-primary">.fa-eye</span> which should be suitable for many cases.</p>
<div class="row">
<div class="col-xs-12 col-md-3">
<a href="#" class="thumbnail fa fa-eye">
<img src="images/thumbnail-01.jpg" alt="100%x180" >
</a>
</div>
</div>
<br>
<pre class="prettyprint">
<a href="#" class="thumbnail fa fa-eye">
<img src="images/thumbnail.jpg" >
</a>
</pre>
</div>
<div class="doc-section">
<p>Custom content thumbnails follow the same patterns as bootstraps thumbnails however you can add <span class="label label-primary">.thumbnail-caption</span> to the container div to round the corners of the thumbnail image.</p>
<div class="thumbnail thumbnail-caption col-md-4 col-md-offset-4">
<img src="images/thumbnail-large-01.jpg" alt="100%x180" style="width: 100%; display: block;">
<div class="caption">
<h4>15 men on a dead chest</h4>
<p>Fifteen men on the dead man’s chest – Yo-ho-ho and a bottle of rum! Drink and the devil had done for the rest – Yo-ho-ho and a bottle of rum!</p>
<p>
<a href="#" class="btn btn-primary" style="width: 100px;" role="button">Arr!</a>
<a href="#" class="btn btn-stroke" style="width: 100px; margin-left: 10px;" role="button">Avast</a>
</p>
</div>
</div>
<br>
<div class="clearfix"></div>
<pre class="prettyprint ">
<div class="thumbnail thumbnail-caption">
<img src="images/thumbnail-large.jpg">
<div class="caption">
<h4>...</h4>
<p>...</p>
<p>
<a href="#" class="btn btn-primary">Arr!</a>
<a href="#" class="btn btn-stroke">Avast</a>
</p>
</div>
</div>
</pre>
</div>
<!-- #### Panels #### -->
<h2 class="demo-section-title" id="panels">Panels</h2>
<div class="doc-section">
<p>Our restyled panels all follow the same classes as there bootstrap counterparts, so panels are easily intergrated into your projects.</p>
<div class="row">
<div class="col-xs-12 col-md-6">
<div class="panel panel-default">
<div class="panel-body">
Basic panel
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">Panel heading without title</div>
<div class="panel-body">
Panel content
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">Panel title</h3>
</div>
<div class="panel-body">
Panel content
</div>
</div>
<div class="panel panel-default">
<div class="panel-body">
Panel content
</div>
<div class="panel-footer">Panel footer</div>
</div>
</div>
</div>
<br>
<pre class="prettyprint">
<!-- Basic -->
<div class="panel panel-default">
<div class="panel-body">
Basic panel
</div>
</div>
<!-- With Headings -->
<div class="panel panel-default">
<div class="panel-heading">Panel heading without title</div>
<div class="panel-body">
Panel content
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">Panel title</h3>
</div>
<div class="panel-body">
Panel content
</div>
</div>
<!-- With Footer -->
<div class="panel panel-default">
<div class="panel-body">
Panel content
</div>
<div class="panel-footer">Panel footer</div>
</div>
</pre>
</div>
<div class="doc-section">
<p>All the contextual options are also available by adding any of the contextual state classes.</p>
<div class="row">
<div class="col-xs-12 col-md-6">
<div class="panel panel-primary">
<div class="panel-heading">
<h3 class="panel-title">Panel Primary</h3>
</div>
<div class="panel-body">
This be yer content in here!
</div>
</div>
<div class="panel panel-info">
<div class="panel-heading">
<h3 class="panel-title">Panel Info</h3>
</div>
<div class="panel-body">
This be yer content in here!
</div>
</div>
<div class="panel panel-success">
<div class="panel-heading">
<h3 class="panel-title">Panel Success</h3>
</div>
<div class="panel-body">
This be yer content in here!
</div>
</div>
<div class="panel panel-warning">
<div class="panel-heading">
<h3 class="panel-title">Panel Warning</h3>
</div>
<div class="panel-body">
This be yer content in here!
</div>
</div>
<div class="panel panel-danger">
<div class="panel-heading">
<h3 class="panel-title">Panel Danger</h3>
</div>
<div class="panel-body">
This be yer content in here!
</div>
</div>
</div>
</div>
<br>
<pre class="prettyprint">
<div class="panel panel-primary">...</div>
<div class="panel panel-success">...</div>
<div class="panel panel-info">...</div>
<div class="panel panel-warning">...</div>
<div class="panel panel-danger">...</div>
</pre>
</div>
<div class="doc-section">
<p>Our version of the panels with tables, again these follow the same classes as the bootstrap version.</p>
<div class="row">
<div class="col-xs-12 col-md-8">
<div class="panel panel-default">
<!-- Default panel contents -->
<div class="panel-heading">Shiver me timbers!</div>
<div class="panel-body">
<p>My name is Captain Kidd, as I sailed, as I sailed. Oh my name is Captain Kidd as I sailed. My name is Captain Kidd and God's laws I did forbid, and most wickedly I did as I sailed.</p>
</div>
<!-- Table -->
<table class="table">
<thead>
<tr>
<th>#</th>
<th>Ship Name</th>
<th>Captain</th>
<th>Status</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>Walrus</td>
<td>James Flint</td>
<td>Unknown</td>
</tr>
<tr>
<td>2</td>
<td>Royal Fortune</td>
<td>Black Bart</td>
<td>Destroyed</td>
</tr>
<tr>
<td>3</td>
<td>Ranger</td>
<td>Charles Vane</td>
<td>Captured</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<pre class="prettyprint">
<!-- Panel with Table -->
<div class="panel panel-default">
<div class="panel-heading">Panel heading</div>
<div class="panel-body">
<p>...</p>
</div>
<!-- Table -->
<table class="table">
...
</table>
</div>
</pre>
</div>
<!-- #### Checkboxes #### -->
<h2 class="demo-section-title" id="checkboxes">Checkboxes</h2>
<div class="doc-section">
<p>Our checkboxes require javascript to work correctly. First off make sure you have included jQuery in your code and the checkbox.js plugin.</p>
<div class="row">
<div class="col-md-6">
<label class="checkbox" for="checkbox1">
<input type="checkbox" value="" id="checkbox1" data-toggle="checkbox" />
No one be fillin’ my box!
</label>
</div>
</div>
<br>
<p>To get a checkbox up and running is nice and simple, wrap the input in a label with the class <span class="label label-primary">.checkbox</span> and add the attribute <span class="label label-primary">data-toggle="checkbox"</span> to the checkbox input. Thats it.
<pre class="prettyprint">
<label class="checkbox>
<input type="checkbox" value="" data-toggle="checkbox" />
Oy! Me box is filled!
</label>
</pre>
</div>
<div class="doc-section">
<p>Adding in the standard attributes of <span class="label label-primary">checked=""</span> and <span class="label label-primary">disabled=""</span> will work as expected.</p>
<div class="row">
<div class="col-md-6">
<label class="checkbox">
<input type="checkbox" value="" data-toggle="checkbox" checked=""/>
Oy! Me box is filled!
</label>
<label class="checkbox">
<input type="checkbox" value="" data-toggle="checkbox" disabled="" />
Aaand I’m disabled.
</label>
<label class="checkbox">
<input type="checkbox" value="" data-toggle="checkbox" disabled="" checked="" />
Got picked, but I’m disabled.
</label>
</div>
</div>
<pre class="prettyprint">
<label class="checkbox">
<input type="checkbox" value="" data-toggle="checkbox" checked=""/>
Oy! Me box is filled!
</label>
<label class="checkbox">
<input type="checkbox" value="" data-toggle="checkbox" disabled="" />
Aaand I’m disabled.
</label>
<label class="checkbox">
<input type="checkbox" value="" data-toggle="checkbox" disabled="" checked="" />
Got picked, but I’m disabled.
</label>
</pre>
</div>
<!-- #### Radios #### -->
<h2 class="demo-section-title" id="radio">Radio</h2>
<div class="doc-section">
<p>Our radios also require javascript to work correctly. Just like the checkboxes, make sure you have included jQuery in your code and the radio.js plugin.</p>
<div class="row">
<div class="col-md-6">
<label class="radio">
<input type="radio" name="optionsRadios" value="option1" data-toggle="radio">
Radio is off
</label>
</div>
</div>
<br>
<p>To get a radio up and running is also nice and simple, wrap the input in a label with the class <span class="label label-primary">.radio</span> and add the attribute <span class="label label-primary">data-toggle="radio"</span> to the radio input. Thats it.
<pre class="prettyprint">
<label class="radio>
<input type="radio" name="optionsRadios" value="option1" data-toggle="radio" />
Radio is off
</label>
</pre>
</div>
<div class="doc-section">
<p>Just like the checkbox elements, adding in the standard attributes of <span class="label label-primary">checked=""</span> and <span class="label label-primary">disabled=""</span> will work as expected.</p>
<div class="row">
<div class="col-md-6">
<label class="radio">
<input type="radio" name="optionsRadios" value="option1" data-toggle="radio" checked="">
Radio is on
</label>
<label class="radio">
<input type="radio" name="optionsRadiosDisabled" value="option2" data-toggle="radio" disabled="">
Disabled radio is off
</label>
<label class="radio">
<input type="radio" name="optionsRadiosDisabled" value="option2" data-toggle="radio" checked="" disabled="">
Disabled radio is on
</label>
</div>
</div>
<pre class="prettyprint">
<label class="radio">
<input type="radio" value="" name="optionsRadios" data-toggle="radio" checked="" />
Radio is on
</label>
<label class="radio">
<input type="radio" value="" name="optionsRadiosDisabled" data-toggle="radio" disabled="" />
Disabled radio is off
</label>
<label class="radio">
<input type="radio" value="" name="optionsRadiosDisabled" data-toggle="radio" disabled="" checked="" />
Disabled radio is on
</label>
</pre>
</div>
<!-- #### Switches #### -->
<h2 class="demo-section-title" id="switches">Switches</h2>
<div class="doc-section">
<p>We use the bootstrap switch plugin from <a href="http://www.bootstrap-switch.org/">http://www.bootstrap-switch.org/</a> and requires jQuery like our other plugins. To get started with the switches include the bootstrap-switch JS plugin.</p>
<p>Using the plugin is extremly simple, just add the attribute <span class="label label-primary">data-toggle="switch"</span> to a checkbox input and initialise the plugin.</p>
<pre class="prettyprint">
$("[data-toggle='switch']").bootstrapSwitch();
</pre>
<br>
<input type="checkbox" data-toggle="switch" />
<br><br>
<pre class="prettyprint">
<input type="checkbox" data-toggle="switch" />
</pre>
<p>Adding the checked attribute the element will turn the switch on.</p>
<input type="checkbox" checked data-toggle="switch" />
<br><br>
<pre class="prettyprint">
<input type="checkbox" checked data-toggle="switch" />
</pre>
</div>
<!-- #### Navbar #### -->
<h2 class="demo-section-title hidden-xs" id="navbars">Navbar</h2>
<div class="doc-section hidden-xs">
<p>Our restyled navbars. If you want to include icons in the navbar use the class <span class="label label-primary">.navbar-icons</span> on the ul element.</p>
<p>You can add a 'New' notification indicator next to an icon by adding in the element <span class="label label-primary"><span class="navbar-new"></span></span> after the icon you want the indicator to appear. Note that the span must be on a new line in the HTML.</p>
<br>
<nav class="navbar navbar-default" role="navigation">
<div class="navbar-header">
<a class="navbar-brand" href="#">Hoarrd!</a>
</div>
<ul class="nav navbar-nav">
<li class="active"><a href="#">Ranger</a></li>
<li><a href="#">Walrus</a></li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Dah <span class="fa fa-chevrondown"></span></a>
<ul class="dropdown-menu">
<div class="arrow top"></div>
<li><a href="#">Action</a></li>
<li class="active"><a href="#">Another action</a></li>
<li><a href="#">Something else here</a></li>
</ul>
</li>
</ul>
<ul class="nav navbar-nav navbar-right navbar-icons">
<li>
<a href="#">
<span class="fa fa-user"></span><span class="hidden-lg">My Account</span>
</a>
</li>
<li>
<a href="#">
<span class="fa fa-bell"></span><span class="hidden-lg">Messages</span>
<span class="navbar-new"></span>
</a>
</li>
<li>
<a href="#">
<span class="fa fa-cog"></span><span class="hidden-lg">Settings</span>
</a>
</li>
</ul>
<p class="navbar-text navbar-right">Heigh-ho, <a href="#" class="navbar-link">Billy Bones</a></p>
</nav>
<br>
<pre class="prettyprint hidden-xs">
<nav class="navbar navbar-default" role="navigation">
<div class="navbar-header">
<a class="navbar-brand" href="#">Hoarrd!</a>
</div>
<ul class="nav navbar-nav">
<li class="active"><a href="#">Ranger</a></li>
<li><a href="#">Walrus</a></li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Dah <span class="fa fa-chevrondown"></span></a>
<ul class="dropdown-menu">
<div class="arrow top"></div>
<li><a href="#">Action</a></li>
<li class="active"><a href="#">Another action</a></li>
<li><a href="#">Something else here</a></li>
</ul>
</li>
</ul>
<ul class="nav navbar-nav navbar-right navbar-icons">
<li>
<a href="#">
<span class="fa fa-user"></span><span class="hidden-lg">My Account</span>
</a>
</li>
<li>
<a href="#">
<span class="fa fa-bell"></span><span class="hidden-lg">Messages</span>
<span class="navbar-new"></span>
</a>
</li>
<li>
<a href="#">
<span class="fa fa-cog"></span><span class="hidden-lg">Settings</span>
</a>
</li>
</ul>
<p class="navbar-text navbar-right">Heigh-ho, <a href="#" class="navbar-link">Billy Bones</a></p>
</div>
</nav>
</pre>
</div>
<div class="doc-section hidden-xs">
<p>Change the class to <span class="label label-primary">.nabar-inverse</span> to use a dark color scheme.</p>
<br>
<nav class="navbar navbar-inverse" role="navigation">
<div class="navbar-header">
<a class="navbar-brand" href="#">Hoarrd!</a>
</div>
<ul class="nav navbar-nav">
<li class="active"><a href="#">Ranger</a></li>
<li><a href="#">Walrus</a></li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Dah <span class="fa fa-chevrondown"></span></a>
<ul class="dropdown-menu">
<div class="arrow top"></div>
<li><a href="#">Action</a></li>
<li class="active"><a href="#">Another action</a></li>
<li><a href="#">Something else here</a></li>
</ul>
</li>
</ul>
<ul class="nav navbar-nav navbar-right navbar-icons">
<li>
<a href="#">
<span class="fa fa-user"></span><span class="hidden-lg">My Account</span>
</a>
</li>
<li>
<a href="#">
<span class="fa fa-bell"></span><span class="hidden-lg">Messages</span>
<span class="navbar-new"></span>
</a>
</li>
<li>
<a href="#">
<span class="fa fa-cog"></span><span class="hidden-lg">Settings</span>
</a>
</li>
</ul>
<p class="navbar-text navbar-right">Heigh-ho, <a href="#" class="navbar-link">Billy Bones</a></p>
</nav>
<br>
<pre class="prettyprint">
<nav class="navbar navbar-inverse" role="navigation">
...
</nav>
</pre>
</div>
<!-- #### Tiles #### -->
<h2 class="demo-section-title" id="tiles">Tiles</h2>
<div class="doc-section">
<p>The tiles are a custom componant providied just for the Drunken Parrot UI Kit. We have created two custom tiles, one for a profile and one for a login. Both the tiles are extremely easy to include in your project by following the markup below.</p>
<br>
<div class="row">
<div class="col-md-4 col-xs-12 col-md-offset-1">
<div class="tile tile-profile">
<img src="images/captain-hoarrd.png" alt="">
<h4>James Hoarrd</h4>
<p>Ship Captain</p>
<a href="#" class="btn btn-block btn-danger btn-embossed">Profile</a>
</div>
<br>
</div>
<div class="col-md-4 col-xs-12 col-md-offset-1">
<div class="tile tile-login">
<h3 class="logo">Hoarrd!</h3>
<div class="input-icon">
<span class="fa-user fa"></span>
<input type="text" class="form-control" placeholder="Username">
</div>
<div class="input-icon">
<span class="fa-lock fa"></span>
<input type="password" class="form-control" placeholder="******">
</div>
<a href="#" class="btn btn-block btn-primary btn-embossed">Log in</a>
<div class="login-action clearfix">
<div class="col-md-8">
<label class="checkbox" for="checkbox1">
<input type="checkbox" value="" id="checkbox1" data-toggle="checkbox" />Remember Me
</label>
</div>
<div class="col-md-4">
<a href="#">Forget?</a>
</div>
</div>
</div>
</div>
</div>
<br><br>
<p>Profile Tile</p>
<pre class="prettyprint">
<div class="tile tile-profile">
<img src="images/captain-hoarrd.png" alt="">
<h4>James Hoarrd</h4>
<p>Ship Captain</p>
<a href="#" class="btn btn-block btn-danger btn-embossed">Profile</a>
</div>
</pre>
<br>
<p>Login Tile</p>
<pre class="prettyprint">
<div class="tile tile-login">
<h3 class="logo">Hoarrd!</h3>
<div class="input-icon">
<span class="fa-user fa"></span>
<input type="text" class="form-control" placeholder="Username">
</div>
<div class="input-icon">
<span class="fa-lock fa"></span>
<input type="password" class="form-control" placeholder="******">
</div>
<a href="#" class="btn btn-block btn-primary btn-embossed">Log in</a>
<div class="login-action clearfix">
<div class="col-md-8">
<label class="checkbox">
<input type="checkbox" value="" data-toggle="checkbox" />Remember Me
</label>
</div>
<div class="col-md-4">