-
Notifications
You must be signed in to change notification settings - Fork 4
/
index.html
748 lines (623 loc) · 41.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Bootleg.css · Twitter Bootstrap</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<!-- Le styles -->
<link href="http://getbootstrap.com/2.3.2/assets/css/bootstrap.css" rel="stylesheet">
<link href="http://getbootstrap.com/2.3.2/assets/css/bootstrap-responsive.css" rel="stylesheet">
<link href="http://getbootstrap.com/2.3.2/assets/css/docs.css" rel="stylesheet">
<link href="http://getbootstrap.com/2.3.2/assets/js/google-code-prettify/prettify.css" rel="stylesheet">
<!-- :checked is awesome -->
<link href="bootleg-core.css" rel="stylesheet">
<link href="bootleg-modal.css" rel="stylesheet">
<link href="bootleg-dropdowns.css" rel="stylesheet">
<link href="bootleg-tabs.css" rel="stylesheet">
<link href="bootleg-buttons.css" rel="stylesheet">
<link href="bootleg-collapse.css" rel="stylesheet">
<link href="bootleg-carousel.css" rel="stylesheet">
<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<!-- Le fav and touch icons -->
<link rel="shortcut icon" href="http://getbootstrap.com/2.3.2/assets/ico/favicon.ico">
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="http://getbootstrap.com/2.3.2/assets/ico/apple-touch-icon-144-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="http://getbootstrap.com/2.3.2/assets/ico/apple-touch-icon-114-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="http://getbootstrap.com/2.3.2/assets/ico/apple-touch-icon-72-precomposed.png">
<link rel="apple-touch-icon-precomposed" href="http://getbootstrap.com/2.3.2/assets/ico/apple-touch-icon-57-precomposed.png">
</head>
<body data-spy="scroll" data-target=".bs-docs-sidebar">
<!-- Navbar
================================================== -->
<div class="navbar navbar-inverse navbar-fixed-top">
<div class="navbar-inner">
<div class="container">
<button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="brand" href="./index.html">Bootstrap</a>
<div class="nav-collapse collapse">
<ul class="nav">
<li class="">
<a href="#">Home</a>
</li>
<li class="">
<a href="#">Get started</a>
</li>
<li class="">
<a href="#">Scaffolding</a>
</li>
<li class="">
<a href="#">Base CSS</a>
</li>
<li class="">
<a href="#">Components</a>
</li>
<li class="active">
<a href="./index.html">Javascript</a>
</li>
<li class="">
<a href="#">Customize</a>
</li>
</ul>
</div>
</div>
</div>
</div>
<!-- Subhead
================================================== -->
<header class="jumbotron subhead">
<div class="container">
<h1><del>Javascript</del> <ins>:checked</ins> for Bootstrap</h1>
<p class="lead">Bring Bootstrap's components to life—now with <a href="https://github.com/ryanseddon/bootleg">6 custom CSS plugins</a> that (ab)use checkboxes.
</div>
</header>
<div class="container">
<!-- Docs nav
================================================== -->
<div class="row">
<div class="span3 bs-docs-sidebar">
<ul class="nav nav-list bs-docs-sidenav">
<li><a href="#overview"><i class="icon-chevron-right"></i> Overview</a></li>
<li><a href="#modals"><i class="icon-chevron-right"></i> Modal</a></li>
<li><a href="#dropdowns"><i class="icon-chevron-right"></i> Dropdown</a></li>
<li><a href="#tabs"><i class="icon-chevron-right"></i> Tab</a></li>
<li><a href="#buttons"><i class="icon-chevron-right"></i> Button</a></li>
<li><a href="#collapse"><i class="icon-chevron-right"></i> Collapse</a></li>
<li><a href="#carousel"><i class="icon-chevron-right"></i> Carousel</a></li>
</ul>
</div>
<div class="span9">
<section id="overview">
<div class="page-header">
<h1>Bootstrap components using Bootleg.css</h1>
</div>
<h3>Questionable use of <code>:checked</code> pseudo-class</h3>
<p>I created bootleg-*.css as demonstration of <code>:checked</code> for a <a href="http://www.thecssninja.com/talks/abuse_checkboxes/">talk</a>, seriously <strong>don't</strong> use it. Except if you're doing custom checkbox/radios. See <a href="https://github.com/ryanseddon/bootleg">GitHub repo</a>.</p>
</section>
<!-- Modal
================================================== -->
<section id="modals">
<div class="page-header">
<h1>Modals <small>bootleg-modal.css</small></h1>
</div>
<h2>Examples</h2>
<p>Modals are streamlined, but flexible, dialog prompts with the minimum required functionality and smart defaults.</p>
<h3>Static example</h3>
<p>A rendered modal with header, body, and set of actions in the footer.</p>
<div class="bs-docs-example" style="background-color: #f5f5f5;">
<div class="modal" style="position: relative; top: auto; left: auto; margin: 0 auto 20px; z-index: 1; max-width: 100%;">
<div class="modal-header">
<label for="closemodal" class="close" onclick>×</label>
<h3>Modal header</h3>
</div>
<div class="modal-body">
<p>One fine body…</p>
</div>
<div class="modal-footer">
<label for="closemodal" class="btn" onclick>Close</label>
<a href="#" class="btn btn-primary">Save changes</a>
</div>
</div>
</div>
<pre class="prettyprint linenums">
<div class="modal hide fade">
<div class="modal-header">
<label role="button" class="close" for="closemodal">×</label>
<h3>Modal header</h3>
</div>
<div class="modal-body">
<p>One fine body…</p>
</div>
<div class="modal-footer">
<label role="button" class="close" for="closemodal">Close</label>
<a href="#" class="btn btn-primary">Save changes</a>
</div>
</div>
</pre>
<h3>Live demo</h3>
<p>Toggle a modal via <code>:checked</code> by clicking the button below. It will slide down and fade in from the top of the page.</p>
<!-- Modal 1 -->
<label class="btn btn-primary btn-large" for="modal1" onclick>Launch demo modal</label>
<input type="radio" id="modal1" name="modal" />
<!-- sample modal content -->
<div id="myModal" class="modal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-header">
<label for="closemodal" class="close" onclick>×</label>
<h3 id="myModalLabel">Modal Heading</h3>
</div>
<div class="modal-body">
<h4>Text in a modal</h4>
<p>Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem.</p>
<h4>Popover in a modal</h4>
<p>This <a href="#" role="button" class="btn popover-test" title="A Title" data-content="And here's some amazing content. It's very engaging. right?">button</a> should trigger a popover on hover.</p>
<h4>Tooltips in a modal</h4>
<p><a href="#" class="tooltip-test" title="Tooltip">This link</a> and <a href="#" class="tooltip-test" title="Tooltip">that link</a> should have tooltips on hover.</p>
<hr>
<h4>Overflowing text to show optional scrollbar</h4>
<p>We set a fixed <code>max-height</code> on the <code>.modal-body</code>. Watch it overflow with all this extra lorem ipsum text we've included.</p>
<p>Cras mattis consectetur purus sit amet fermentum. Cras justo odio, dapibus ac facilisis in, egestas eget quam. Morbi leo risus, porta ac consectetur ac, vestibulum at eros.</p>
<p>Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor.</p>
<p>Aenean lacinia bibendum nulla sed consectetur. Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Donec sed odio dui. Donec ullamcorper nulla non metus auctor fringilla.</p>
<p>Cras mattis consectetur purus sit amet fermentum. Cras justo odio, dapibus ac facilisis in, egestas eget quam. Morbi leo risus, porta ac consectetur ac, vestibulum at eros.</p>
<p>Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Vivamus sagittis lacus vel augue laoreet rutrum faucibus dolor auctor.</p>
<p>Aenean lacinia bibendum nulla sed consectetur. Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Donec sed odio dui. Donec ullamcorper nulla non metus auctor fringilla.</p>
</div>
<div class="modal-footer">
<label for="closemodal" class="btn" onclick>Close</label>
<button class="btn btn-primary">Save changes</button>
</div>
</div>
<!-- Overlay and close -->
<input type="radio" id="closemodal" name="modal" />
<label for="closemodal" class="modalclose"> </label>
<div class="bs-docs-example" style="padding-bottom: 24px;">
<label for="modal1" class="btn btn-primary btn-large" onclick>Launch demo modal</label>
</div>
<pre class="prettyprint linenums">
<-- Button to trigger modal -->
<label for="modal1" role="button" class="btn">Launch demo modal</label>
<input type="radio" id="modal1" name="modal" />
<-- Modal -->
<div class="modal" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-header">
<label role="button" class="close" for="closemodal">×</label>
<h3 id="myModalLabel">Modal header</h3>
</div>
<div class="modal-body">
<p>One fine body…</p>
</div>
<div class="modal-footer">
<label role="button" class="close" for="closemodal">Close</label>
<button class="btn btn-primary">Save changes</button>
</div>
</div>
</pre>
<hr class="bs-docs-separator">
<h2>Usage</h2>
<h3>Via for attribute</h3>
<p>Activate a modal without writing JavaScript. Set <code>for="modal1"</code> on a controller label preceded by a radio input.</p>
<pre class="prettyprint linenums"><label for="modal1" role="button" class="btn">Launch modal</label></pre>
<h3>Via JavaScript</h3>
<p>Call a modal with id <code>modal1</code> with a single line of JavaScript:</p>
<pre class="prettyprint linenums">$('#modal1').prop("checked")</pre>
</section>
<!-- Dropdown
================================================== -->
<section id="dropdowns">
<div class="page-header">
<h1>Dropdowns <small>bootleg-dropdown.css</small></h1>
</div>
<h2>Examples</h2>
<p>Add dropdown menus to nearly anything with this simple plugin, including the navbar, tabs, and pills.</p>
<h3>Within a navbar</h3>
<div class="bs-docs-example">
<div id="navbar-example" class="navbar navbar-static">
<div class="navbar-inner">
<div class="container" style="width: auto;">
<a class="brand" href="#">Project Name</a>
<ul class="nav" role="navigation">
<li class="dropdown">
<input type="radio" name="dropdowns" id="dropdown1">
<label for="dropdown1" class="dropdown-toggle" onclick>Dropdown <b class="caret"></b></label>
<ul class="dropdown-menu" role="menu" aria-labelledby="drop1">
<li><a tabindex="-1" href="http://google.com">Action</a></li>
<li><a tabindex="-1" href="#anotherAction">Another action</a></li>
<li><a tabindex="-1" href="#">Something else here</a></li>
<li class="divider"></li>
<li><a tabindex="-1" href="#">Separated link</a></li>
</ul>
<label for="dismissdropdowns" class="dismiss-dropdowns" onclick></label>
</li>
<li class="dropdown">
<input type="radio" name="dropdowns" id="dropdown2">
<label for="dropdown2" class="dropdown-toggle" onclick>Dropdown 2 <b class="caret"></b></label>
<ul class="dropdown-menu" role="menu" aria-labelledby="drop2">
<li><a tabindex="-1" href="#">Action</a></li>
<li><a tabindex="-1" href="#">Another action</a></li>
<li><a tabindex="-1" href="#">Something else here</a></li>
<li class="divider"></li>
<li><a tabindex="-1" href="#">Separated link</a></li>
</ul>
<label for="dismissdropdowns" class="dismiss-dropdowns" onclick></label>
</li>
</ul>
<ul class="nav pull-right">
<li id="fat-menu" class="dropdown">
<input type="radio" name="dropdowns" id="dropdown3">
<label for="dropdown3" class="dropdown-toggle" onclick>Dropdown 3 <b class="caret"></b></label>
<ul class="dropdown-menu" role="menu" aria-labelledby="drop3">
<li><a tabindex="-1" href="#">Action</a></li>
<li><a tabindex="-1" href="#">Another action</a></li>
<li><a tabindex="-1" href="#">Something else here</a></li>
<li class="divider"></li>
<li><a tabindex="-1" href="#">Separated link</a></li>
</ul>
<label for="dismissdropdowns" class="dismiss-dropdowns" onclick></label>
</li>
</ul>
</div>
</div>
</div> <!-- /navbar-example -->
</div>
<input type="radio" checked id="dismissdropdowns" name="dropdowns">
<h3>Within tabs</h3>
<div class="bs-docs-example">
<ul class="nav nav-pills">
<li class="active"><a href="#">Regular link</a></li>
<li class="dropdown">
<input type="radio" name="dropdowns" id="dropdown4">
<label for="dropdown4" class="dropdown-toggle" onclick>Dropdown <b class="caret"></b></label>
<ul id="menu1" class="dropdown-menu" role="menu" aria-labelledby="drop4">
<li><a tabindex="-1" href="#">Action</a></li>
<li><a tabindex="-1" href="#">Another action</a></li>
<li><a tabindex="-1" href="#">Something else here</a></li>
<li class="divider"></li>
<li><a tabindex="-1" href="#">Separated link</a></li>
</ul>
<label for="dismissdropdowns" class="dismiss-dropdowns" onclick></label>
</li>
<li class="dropdown">
<input type="radio" name="dropdowns" id="dropdown5">
<label for="dropdown5" class="dropdown-toggle" onclick>Dropdown 2 <b class="caret"></b></label>
<ul id="menu2" class="dropdown-menu" role="menu" aria-labelledby="drop5">
<li><a tabindex="-1" href="#">Action</a></li>
<li><a tabindex="-1" href="#">Another action</a></li>
<li><a tabindex="-1" href="#">Something else here</a></li>
<li class="divider"></li>
<li><a tabindex="-1" href="#">Separated link</a></li>
</ul>
<label for="dismissdropdowns" class="dismiss-dropdowns" onclick></label>
</li>
<li class="dropdown">
<input type="radio" name="dropdowns" id="dropdown6">
<label for="dropdown6" class="dropdown-toggle" onclick>Dropdown 3 <b class="caret"></b></label>
<ul id="menu3" class="dropdown-menu" role="menu" aria-labelledby="drop5">
<li><a tabindex="-1" href="#">Action</a></li>
<li><a tabindex="-1" href="#">Another action</a></li>
<li><a tabindex="-1" href="#">Something else here</a></li>
<li class="divider"></li>
<li><a tabindex="-1" href="#">Separated link</a></li>
</ul>
<label for="dismissdropdowns" class="dismiss-dropdowns" onclick></label>
</li>
</ul> <!-- /tabs -->
</div>
<hr class="bs-docs-separator">
<h2>Usage</h2>
<h3>Via data attributes</h3>
<p>Add <code>data-toggle="dropdown"</code> to a link or button to toggle a dropdown.</p>
<pre class="prettyprint linenums">
<div class="dropdown">
<input type="radio" name="dropdowns" id="dropdown1">
<label for="dropdown1" class="dropdown-toggle">Dropdown <b class="caret"></b></label>
<ul class="dropdown-menu" role="menu" aria-labelledby="dLabel">
...
</ul>
</div>
</pre>
<h3>Via JavaScript</h3>
<p>Call the dropdowns via JavaScript:</p>
<pre class="prettyprint linenums">$('.dropdown-toggle').prop("checked")</pre>
</section>
<!-- Tabs
================================================== -->
<section id="tabs">
<div class="page-header">
<h1>Togglable tabs <small>bootleg-tab.css</small></h1>
</div>
<h2>Example tabs</h2>
<p>Add quick, dynamic tab functionality to transiton through panes of local content, even via dropdown menus.</p>
<div class="bs-docs-example tabs">
<input type="radio" id="home" name="tabs" checked />
<label for="home" onclick>Home</label>
<input type="radio" id="profile" name="tabs" />
<label for="profile" onclick>Profile</label>
<input type="radio" id="other" name="tabs" />
<label for="other" onclick>Other</label>
<input type="radio" id="misc" name="tabs" />
<label for="misc" onclick>Misc</label>
<div id="myTabContent" class="tab-content">
<div class="tab-pane fade in">
<p>Raw denim you probably haven't heard of them jean shorts Austin. Nesciunt tofu stumptown aliqua, retro synth master cleanse. Mustache cliche tempor, williamsburg carles vegan helvetica. Reprehenderit butcher retro keffiyeh dreamcatcher synth. Cosby sweater eu banh mi, qui irure terry richardson ex squid. Aliquip placeat salvia cillum iphone. Seitan aliquip quis cardigan american apparel, butcher voluptate nisi qui.</p>
</div>
<div class="tab-pane fade">
<p>Food truck fixie locavore, accusamus mcsweeney's marfa nulla single-origin coffee squid. Exercitation +1 labore velit, blog sartorial PBR leggings next level wes anderson artisan four loko farm-to-table craft beer twee. Qui photo booth letterpress, commodo enim craft beer mlkshk aliquip jean shorts ullamco ad vinyl cillum PBR. Homo nostrud organic, assumenda labore aesthetic magna delectus mollit. Keytar helvetica VHS salvia yr, vero magna velit sapiente labore stumptown. Vegan fanny pack odio cillum wes anderson 8-bit, sustainable jean shorts beard ut DIY ethical culpa terry richardson biodiesel. Art party scenester stumptown, tumblr butcher vero sint qui sapiente accusamus tattooed echo park.</p>
</div>
<div class="tab-pane fade" id="dropdown1">
<p>Etsy mixtape wayfarers, ethical wes anderson tofu before they sold out mcsweeney's organic lomo retro fanny pack lo-fi farm-to-table readymade. Messenger bag gentrify pitchfork tattooed craft beer, iphone skateboard locavore carles etsy salvia banksy hoodie helvetica. DIY synth PBR banksy irony. Leggings gentrify squid 8-bit cred pitchfork. Williamsburg banh mi whatever gluten-free, carles pitchfork biodiesel fixie etsy retro mlkshk vice blog. Scenester cred you probably haven't heard of them, vinyl craft beer blog stumptown. Pitchfork sustainable tofu synth chambray yr.</p>
</div>
<div class="tab-pane fade" id="dropdown2">
<p>Trust fund seitan letterpress, keytar raw denim keffiyeh etsy art party before they sold out master cleanse gluten-free squid scenester freegan cosby sweater. Fanny pack portland seitan DIY, art party locavore wolf cliche high life echo park Austin. Cred vinyl keffiyeh DIY salvia PBR, banh mi before they sold out farm-to-table VHS viral locavore cosby sweater. Lomo wolf viral, mustache readymade thundercats keffiyeh craft beer marfa ethical. Wolf salvia freegan, sartorial keffiyeh echo park vegan.</p>
</div>
</div>
</div>
<hr class="bs-docs-separator">
<h2>Usage</h2>
<p>You can activate individual tabs in several ways:</p>
<pre class="prettyprint linenums">
$('#myTab #profile').prop('checked'); // Select tab by name
$('#myTab input:first-of-type').prop('checked'); // Select first tab
$('#myTab input:last-of-type').prop('checked'); // Select last tab
</pre>
<h3>Markup</h3>
<p>Each "tab" contains an input and a label, they cannot be nested as it'll defeat the trick of using <code>:checked</code> and CSS doesn't have a parent selector yet.</p>
<pre class="prettyprint linenums">
<input type="radio" id="home" name="tabs" checked />
<label for="home">Home</label>
<input type="radio" id="profile" name="tabs" />
<label for="profile">Profile</label>
<input type="radio" id="other" name="tabs" />
<label for="other">Other</label>
<input type="radio" id="misc" name="tabs" />
<label for="misc">Misc</label></pre>
</section>
<!-- Buttons
================================================== -->
<section id="buttons">
<div class="page-header">
<h1>Buttons <small>bootleg-button.css</small></h1>
</div>
<h2>Example uses</h2>
<p>Do more with buttons. Control button states or create groups of buttons for more components like toolbars.</p>
<h4>Single toggle</h4>
<p>Add data-toggle="button" to activate toggling on a single button.</p>
<div class="bs-docs-example" style="padding-bottom: 24px;">
<input type="checkbox" id="toggle" data-toggle="button">
<label class="btn btn-primary" for="toggle" onclick>Single Toggle</label>
</div>
<pre class="prettyprint linenums">
<input type="checkbox" id="toggle" data-toggle="button">
<label for="toggle" class="btn">Single Toggle</label>
</pre>
<h4>Checkbox</h4>
<p>Using checkboxes to allow toggling of multiple buttons in a group.</p>
<div class="bs-docs-example" style="padding-bottom: 24px;">
<div class="btn-group" data-toggle="buttons-checkbox">
<input type="checkbox" id="group1" data-toggle="button">
<label class="btn btn-primary" for="group1" onclick>Left</label>
<input type="checkbox" id="group2" data-toggle="button">
<label class="btn btn-primary" for="group2" onclick>Middle</label>
<input type="checkbox" id="group3" data-toggle="button">
<label class="btn btn-primary" for="group3" onclick>Right</label>
</div>
</div>
<pre class="prettyprint linenums">
<div class="btn-group" data-toggle="buttons-checkbox">
<input type="checkbox" id="group1" data-toggle="button">
<label class="btn btn-primary" for="group1">Left</label>
<input type="checkbox" id="group2" data-toggle="button">
<label class="btn btn-primary" for="group2">Middle</label>
<input type="checkbox" id="group3" data-toggle="button">
<label class="btn btn-primary" for="group3">Right</label>
</div>
</pre>
<h4>Radio</h4>
<p>Use radios to only allow one button in a group to be toggled at a time.</p>
<div class="bs-docs-example" style="padding-bottom: 24px;">
<div class="btn-group" data-toggle="buttons-radio">
<input type="radio" id="radio1" name="radio-group" data-toggle="button">
<label class="btn btn-primary" for="radio1" onclick>Left</label>
<input type="radio" id="radio2" name="radio-group" data-toggle="button">
<label class="btn btn-primary" for="radio2" onclick>Middle</label>
<input type="radio" id="radio3" name="radio-group" data-toggle="button">
<label class="btn btn-primary" for="radio3" onclick>Right</label>
</div>
</div>
<pre class="prettyprint linenums">
<div class="btn-group" data-toggle="buttons-radio">
<input type="radio" id="radio1" name="radio-group" data-toggle="button">
<label class="btn btn-primary" for="radio1">Left</label>
<input type="radio" id="radio2" name="radio-group" data-toggle="button">
<label class="btn btn-primary" for="radio2">Middle</label>
<input type="radio" id="radio3" name="radio-group" data-toggle="button">
<label class="btn btn-primary" for="radio3">Right</label>
</div>
</pre>
</section>
<!-- Collapse
================================================== -->
<section id="collapse">
<div class="page-header">
<h1>Collapse <small>bootleg-collapse.css</small></h1>
</div>
<h3>About</h3>
<p>Get base styles and flexible support for collapsible components like accordions and navigation.</p>
<p class="muted"><strong>*</strong> Requires the Transitions plugin to be included.</p>
<h2>Example accordion</h2>
<p>Using the collapse plugin, we built a simple accordion style widget:</p>
<div class="bs-docs-example">
<div class="accordion" id="accordion2">
<input type="radio" name="accordion-group" id="collapseAll">
<div class="accordion-group">
<input type="radio" id="collapse1" name="accordion-group" checked>
<label for="collapseAll" class="accordion-dismiss" onclick></label>
<div class="accordion-heading">
<label for="collapse1" class="accordion-toggle" onclick>Collapsible Group Item #1</label>
</div>
<div id="collapseOne" class="accordion-body collapse">
<div class="accordion-inner">
Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS. Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS. Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS. Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS.
</div>
</div>
</div>
<div class="accordion-group">
<input type="radio" id="collapse2" name="accordion-group">
<label for="collapseAll" class="accordion-dismiss" onclick></label>
<div class="accordion-heading">
<label for="collapse2" class="accordion-toggle" onclick>Collapsible Group Item #2</label>
</div>
<div id="collapseTwo" class="accordion-body collapse">
<div class="accordion-inner">
Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS.
</div>
</div>
</div>
<div class="accordion-group">
<input type="radio" id="collapse3" name="accordion-group">
<label for="collapseAll" class="accordion-dismiss" onclick></label>
<div class="accordion-heading">
<label for="collapse3" class="accordion-toggle" onclick>Collapsible Group Item #3</label>
</div>
<div id="collapseThree" class="accordion-body collapse">
<div class="accordion-inner">
Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute, non cupidatat skateboard dolor brunch. Food truck quinoa nesciunt laborum eiusmod. Brunch 3 wolf moon tempor, sunt aliqua put a bird on it squid single-origin coffee nulla assumenda shoreditch et. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo. Leggings occaecat craft beer farm-to-table, raw denim aesthetic synth nesciunt you probably haven't heard of them accusamus labore sustainable VHS.
</div>
</div>
</div>
</div>
</div>
<pre class="prettyprint linenums">
<input type="radio" id="collapse1" name="accordion-group" checked>
<label for="collapseAll" class="accordion-dismiss"></label>
<div class="accordion-heading">
<label for="collapse1" class="accordion-toggle">Collapsible Group Item #1</label>
</div>
<div id="collapseOne" class="accordion-body collapse">
<div class="accordion-inner">
...
</div>
</div>
</pre>
<hr class="bs-docs-separator">
<h2>Usage</h2>
<h3>Via checked attribute</h3>
<p>To make one open by default set the <code>checked</code> attribute on the radio input.</p>
</section>
<!-- Carousel
================================================== -->
<section id="carousel">
<div class="page-header">
<h1>Carousel <small>bootleg-carousel.css</small></h1>
</div>
<h2>Example carousel</h2>
<p>The slideshow below shows a generic plugin and component for cycling through elements like a carousel.</p>
<div class="bs-docs-example">
<div id="slider" class="carousel slide">
<!-- Slider Setup -->
<input type="radio" id="slide1" name="slider" checked>
<input type="radio" id="slide2" name="slider">
<input type="radio" id="slide3" name="slider">
<input type="radio" id="slide4" name="slider">
<input type="radio" id="slide5" name="slider">
<!-- The Slider -->
<div class="slides">
<div class="carousel-inner">
<div class="item">
<img src="http://twitter.github.com/bootstrap/assets/img/bootstrap-mdo-sfmoma-01.jpg" alt="">
<div class="carousel-caption">
<h4>First Thumbnail label</h4>
<p>Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.</p>
</div>
</div>
<div class="item">
<img src="http://twitter.github.com/bootstrap/assets/img/bootstrap-mdo-sfmoma-02.jpg" alt="">
<div class="carousel-caption">
<h4>Second Thumbnail label</h4>
<p>Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.</p>
</div>
</div>
<div class="item">
<img src="http://twitter.github.com/bootstrap/assets/img/bootstrap-mdo-sfmoma-03.jpg" alt="">
<div class="carousel-caption">
<h4>Third Thumbnail label</h4>
<p>Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.</p>
</div>
</div>
<div class="item">
<img src="http://twitter.github.com/bootstrap/assets/img/bootstrap-mdo-sfmoma-01.jpg" alt="">
<div class="carousel-caption">
<h4>First Thumbnail label</h4>
<p>Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.</p>
</div>
</div>
<div class="item">
<img src="http://twitter.github.com/bootstrap/assets/img/bootstrap-mdo-sfmoma-02.jpg" alt="">
<div class="carousel-caption">
<h4>Second Thumbnail label</h4>
<p>Cras justo odio, dapibus ac facilisis in, egestas eget quam. Donec id elit non mi porta gravida at eget metus. Nullam id dolor id nibh ultricies vehicula ut id elit.</p>
</div>
</div>
</div>
</div> <!-- #slides -->
<!-- Controls and Active Slide Display -->
<div id="controls">
<label for="slide1" class="carousel-control" onclick><span>‹</span><span>›</span></label>
<label for="slide2" class="carousel-control" onclick><span>‹</span><span>›</span></label>
<label for="slide3" class="carousel-control" onclick><span>‹</span><span>›</span></label>
<label for="slide4" class="carousel-control" onclick><span>‹</span><span>›</span></label>
<label for="slide5" class="carousel-control" onclick><span>‹</span><span>›</span></label>
</div> <!-- #controls -->
</div>
<pre class="prettyprint linenums">
<div id="myCarousel" class="carousel slide">
<!-- Carousel radios, add checked attribute to set initial active slide -->
<input type="radio" id="slide1" name="slider" checked>
<input type="radio" id="slide2" name="slider">
<input type="radio" id="slide3" name="slider">
<!-- Carousel items -->
<div class="carousel-inner">
<div class="item">…</div>
<div class="item">…</div>
<div class="item">…</div>
</div>
<!-- Carousel nav -->
<div id="controls">
<label for="slide1" class="carousel-control"><span>&lsaquo;</span><span>&rsaquo;</span></label>
<label for="slide2" class="carousel-control"><span>&lsaquo;</span><span>&rsaquo;</span></label>
<label for="slide3" class="carousel-control"><span>&lsaquo;</span><span>&rsaquo;</span></label>
</div>
</div>
</pre>
<div class="alert alert-warning">
<strong>Heads up!</strong>
When implementing this carousel, remove the images we have provided and replace them with your own.
</div>
</section>
</div>
</div>
</div>
<!-- Footer
================================================== -->
<footer class="footer">
<div class="container">
<p class="pull-right"><a href="#">Back to top</a></p>
<p>Designed and built with all the love in the world <a href="http://twitter.com/twitter" target="_blank">@twitter</a> by <a href="http://twitter.com/mdo" target="_blank">@mdo</a> and <a href="http://twitter.com/fat" target="_blank">@fat</a>.</p>
<p>Code licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0" target="_blank">Apache License v2.0</a>. Documentation licensed under <a href="http://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.</p>
<p>Icons from <a href="http://glyphicons.com">Glyphicons Free</a>, licensed under <a href="http://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.</p>
<p>No checkboxes were hurt in the making of this demo <a href="http://twitter.com/ryanseddon" target="_blank">@ryanseddon</a>.</p>
<ul class="footer-links">
<li><a href="http://blog.getbootstrap.com">Read the blog</a></li>
<li><a href="https://github.com/twitter/bootstrap/issues?state=open">Submit issues</a></li>
<li><a href="https://github.com/twitter/bootstrap/wiki">Roadmap and changelog</a></li>
</ul>
</div>
</footer>
</body>
</html>