-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
771 lines (681 loc) · 36.4 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<link rel="stylesheet" href="gh-pages/libs/bootstrap/v4.0.0-alpha.2/bootstrap.min.css">
<link rel="stylesheet" href="gh-pages/libs/highlight/styles/default.css">
<link rel="stylesheet" href="gh-pages/css/main.css">
</head>
<body>
<nav class="navbar navbar-fixed-top navbar-light bg-faded">
<div class="container">
<a class="navbar-brand" href="#">Bootstrap helpers for Phoenix</a>
<ul class="nav navbar-nav pull-sm-right">
<li class="nav-item">
<a class="nav-link" href="https://github.com/kovpack/bh">Source on Github</a>
</li>
<li class="nav-item">
<a class="nav-link" href="https://hex.pm/packages/bh">Releases on Hex</a>
</li>
<li class="nav-item">
<a class="nav-link" href="https://hexdocs.pm/bh/api-reference.html">Latest API docs on Hexdocs</a>
</li>
</ul>
</div>
</nav>
<div class="container-fluid main-banner">
<div class="jumbotron jumbotron-fluid">
<div class="container">
<h1 class="display-4">Bootstrap 4 helpers for Phoenix framework</h1>
<p class="lead">This package is designed to minimize repetitive code and the amount of HTML markup in your project's source code</p>
</div>
</div>
</div>
<div class="container"><div class="row"><div class="col-sm-12 col-md-9">
<h1 id="h1_alert">Alerts</h1>
<h2 id="h2_alert_1">Dismissible alert with context</h2>
<pre><code class="hljs elixir">
<%= bh_alert "Alert text", dismissible: true %>
</code></pre>
<div class="bs-example">
<div class="alert alert-info alert-dismissible fade in" role="alert">
<button aria-label="Close" class="close" data-dismiss="alert" type="button"><span aria-hidden="true">×</span>
</button>
Alert text
</div>
</div>
<div class="bs-source">
<pre><code>
<div class="alert alert-info alert-dismissible fade in" role="alert">
<button aria-label="Close" class="close" data-dismiss="alert" type="button"><span aria-hidden="true">×</span>
</button>
Alert text
</div>
</code></pre>
</div>
<h2 id="h2_alert_2">Alert with id, extra class and context</h2>
<pre><code class="hljs elixir">
<%= bh_alert "Alert text", id: :one, class: :extra, context: :danger %>
</code></pre>
<div class="bs-example">
<div class="alert alert-danger extra" id="one" role="alert">Alert text</div>
</div>
<div class="bs-source">
<pre><code>
<div class="alert alert-danger extra" id="one" role="alert">Alert text</div>
</code></pre>
</div>
<h2 id="h2_alert_3">Alert with id, extra class and complex markup block</h2>
<pre><code class="hljs elixir">
<%= bh_alert context: :success, id: :one, class: :extra do %>
<b>Alert</b> is <u>very important</u>
<% end %>
</code></pre>
<div class="bs-example">
<div class="alert alert-success extra" id="one" role="alert">
<b>Alert</b> is <u>very important</u>
</div>
</div>
<div class="bs-source">
<pre><code>
<div class="alert alert-success extra" id="one" role="alert">
<b>Alert</b> is <u>very important</u>
</div>
</code></pre>
</div>
<h2 id="h2_alert_4">Dismissible alert with id, extra class and complex markup block</h2>
<pre><code class="hljs elixir">
<%= bh_alert context: :warning, id: :one, class: :extra, dismissible: true do %>
<b>Dismissible alert</b> is <u>very important</u>
<% end %>
</code></pre>
<div class="bs-example">
<div class="alert alert-warning extra alert-dismissible fade in" id="one" role="alert">
<button aria-label="Close" class="close" data-dismiss="alert" type="button"><span aria-hidden="true">×</span>
</button>
<b>Dismissible alert</b> is <u>very important</u>
</div>
</div>
<div class="bs-source">
<pre><code>
<div class="alert alert-warning extra alert-dismissible fade in" id="one" role="alert">
<button aria-label="Close" class="close" data-dismiss="alert" type="button"><span aria-hidden="true">×</span>
</button>
<b>Dismissible alert</b> is <u>very important</u>
</div>
</code></pre>
</div>
<h1 id="h1_button">Buttons</h1>
<h2 id="h2_button_1">Simple button</h2>
<pre><code class="hljs elixir">
<%= bh_button "Button" %>
</code></pre>
<div class="bs-example">
<button class="btn btn-primary" type="button">Button</button>
</div>
<div class="bs-source">
<pre><code>
<button class="btn btn-primary" type="button">Button</button>
</code></pre>
</div>
<h2 id="h2_button_2">Button with context</h2>
<pre><code class="hljs elixir">
<%= bh_button "Button", context: :primary %>
<%= bh_button "Button", context: :secondary %>
<%= bh_button "Button", context: :success %>
<%= bh_button "Button", context: :info %>
<%= bh_button "Button", context: :warning %>
<%= bh_button "Button", context: :danger %>
<%= bh_button "Button", context: :link %>
</code></pre>
<div class="bs-example">
<button class="btn btn-primary" type="button">Button</button>
<button class="btn btn-secondary" type="button">Button</button>
<button class="btn btn-success" type="button">Button</button>
<button class="btn btn-info" type="button">Button</button>
<button class="btn btn-warning" type="button">Button</button>
<button class="btn btn-danger" type="button">Button</button>
<button class="btn btn-link" type="button">Button</button>
</div>
<div class="bs-source">
<pre><code>
<button class="btn btn-primary" type="button">Button</button>
<button class="btn btn-secondary" type="button">Button</button>
<button class="btn btn-success" type="button">Button</button>
<button class="btn btn-info" type="button">Button</button>
<button class="btn btn-warning" type="button">Button</button>
<button class="btn btn-danger" type="button">Button</button>
<button class="btn btn-link" type="button">Button</button>
</code></pre>
</div>
<h2 id="h2_button_3">Buttons with different sizes</h2>
<pre><code class="hljs elixir">
<%= bh_button "Button", size: :small %>
<%= bh_button "Button" %>
<%= bh_button "Button", size: :large %>
</code></pre>
<div class="bs-example">
<button class="btn btn-primary btn-sm" type="button">Button</button>
<button class="btn btn-primary" type="button">Button</button>
<button class="btn btn-primary btn-lg" type="button">Button</button>
</div>
<div class="bs-source">
<pre><code>
<button class="btn btn-primary btn-sm" type="button">Button</button>
<button class="btn btn-primary" type="button">Button</button>
<button class="btn btn-primary btn-lg" type="button">Button</button>
</code></pre>
</div>
<h2 id="h2_button_4">Buttons with different layout</h2>
<pre><code class="hljs elixir">
<%= bh_button "Button", size: :large, layout: :block %>
</code></pre>
<div class="bs-example">
<button class="btn btn-primary btn-lg btn-block" type="button">Button</button>
</div>
<div class="bs-source">
<pre><code>
<button class="btn btn-primary btn-lg btn-block" type="button">Button</button>
</code></pre>
</div>
<h2 id="h2_button_5">Buttons with multiple options</h2>
<pre><code class="hljs elixir">
<%= bh_button "Button", id: "my_id", size: :large, context: :warning, class: "extra classes", data: [val: "value", other_val: "other_value"] %>
</code></pre>
<div class="bs-example">
<button class="btn btn-warning btn-lg extra classes" data-other-val="other_value" data-val="value" id="my_id" type="button">Button</button>
</div>
<div class="bs-source">
<pre><code>
<button class="btn btn-warning btn-lg extra classes" data-other-val="other_value" data-val="value" id="my_id" type="button">Button</button>
</code></pre>
</div>
<h2 id="h2_button_6">Buttons with complex markup</h2>
<pre><code class="hljs elixir">
<%= bh_button context: :success do %>
<span><b>Bold</b> and <i>italics</i> in button text</span>
<% end %>
</code></pre>
<div class="bs-example">
<button class="btn btn-success" type="button"><span><b>Bold</b> and <i>italics</i> in button text</span></button>
</div>
<div class="bs-source">
<pre><code>
<button class="btn btn-success" type="button"><span><b>Bold</b> and <i>italics</i> in button text</span></button>
</code></pre>
</div>
<h2 id="h2_button_7">Simple outline button</h2>
<pre><code class="hljs elixir">
<%= bh_button_outline "Button" %>
</code></pre>
<div class="bs-example">
<button class="btn btn-primary-outline" type="button">Button</button>
</div>
<div class="bs-source">
<pre><code>
<button class="btn btn-primary-outline" type="button">Button</button>
</code></pre>
</div>
<h2 id="h2_button_8">Outline buttons with context</h2>
<pre><code class="hljs elixir">
<%= bh_button_outline "Button", context: :primary %>
<%= bh_button_outline "Button", context: :secondary %>
<%= bh_button_outline "Button", context: :success %>
<%= bh_button_outline "Button", context: :info %>
<%= bh_button_outline "Button", context: :warning %>
<%= bh_button_outline "Button", context: :danger %>
</code></pre>
<div class="bs-example">
<button class="btn btn-primary-outline" type="button">Button</button>
<button class="btn btn-secondary-outline" type="button">Button</button>
<button class="btn btn-success-outline" type="button">Button</button>
<button class="btn btn-info-outline" type="button">Button</button>
<button class="btn btn-warning-outline" type="button">Button</button>
<button class="btn btn-danger-outline" type="button">Button</button>
</div>
<div class="bs-source">
<pre><code>
<button class="btn btn-primary-outline" type="button">Button</button>
<button class="btn btn-secondary-outline" type="button">Button</button>
<button class="btn btn-success-outline" type="button">Button</button>
<button class="btn btn-info-outline" type="button">Button</button>
<button class="btn btn-warning-outline" type="button">Button</button>
<button class="btn btn-danger-outline" type="button">Button</button>
</code></pre>
</div>
<h2 id="h2_button_9">Outline buttons with different sizes</h2>
<pre><code class="hljs elixir">
<%= bh_button_outline "Button", size: :small %>
<%= bh_button_outline "Button" %>
<%= bh_button_outline "Button", size: :large %>
</code></pre>
<div class="bs-example">
<button class="btn btn-primary-outline btn-sm" type="button">Button</button>
<button class="btn btn-primary-outline" type="button">Button</button>
<button class="btn btn-primary-outline btn-lg" type="button">Button</button>
</div>
<div class="bs-source">
<pre><code>
<button class="btn btn-primary-outline btn-sm" type="button">Button</button>
<button class="btn btn-primary-outline" type="button">Button</button>
<button class="btn btn-primary-outline btn-lg" type="button">Button</button>
</code></pre>
</div>
<h1 id="h1_label">Labels</h1>
<h2 id="h2_label_1">Default label</h2>
<pre><code>
<%= bh_label "Label" %>
</code></pre>
<div class="bs-example">
<span class="label label-default">Label</span>
</div>
<div class="bs-source">
<pre><code>
<span class="label label-default">Label</span>
</code></pre>
</div>
<h2 id="h2_label_2">Labels with different contexts</h2>
<pre><code class="hljs elixir">
<%= bh_label "Label", context: :default %>
<%= bh_label "Label", context: :primary %>
<%= bh_label "Label", context: :success %>
<%= bh_label "Label", context: :info %>
<%= bh_label "Label", context: :warning %>
<%= bh_label "Label", context: :danger %>
</code></pre>
<div class="bs-example">
<span class="label label-default">Label</span>
<span class="label label-primary">Label</span>
<span class="label label-success">Label</span>
<span class="label label-info">Label</span>
<span class="label label-warning">Label</span>
<span class="label label-danger">Label</span>
</div>
<div class="bs-source">
<pre><code>
<span class="label label-default">Label</span>
<span class="label label-primary">Label</span>
<span class="label label-success">Label</span>
<span class="label label-info">Label</span>
<span class="label label-warning">Label</span>
<span class="label label-danger">Label</span>
</code></pre>
</div>
<h2 id="h2_label_3">Default label pill</h2>
<pre><code>
<%= bh_label_pill "Label" %>
</code></pre>
<div class="bs-example">
<span class="label label-pill label-default">Label</span>
</div>
<div class="bs-source">
<pre><code>
<span class="label label-pill label-default">Label</span>
</code></pre>
</div>
<h2 id="h2_label_4">Label pills with different contexts</h2>
<pre><code class="hljs elixir">
<%= bh_label_pill "Label", context: :default %>
<%= bh_label_pill "Label", context: :primary %>
<%= bh_label_pill "Label", context: :success %>
<%= bh_label_pill "Label", context: :info %>
<%= bh_label_pill "Label", context: :warning %>
<%= bh_label_pill "Label", context: :danger %>
</code></pre>
<div class="bs-example">
<span class="label label-pill label-default">Label</span>
<span class="label label-pill label-primary">Label</span>
<span class="label label-pill label-success">Label</span>
<span class="label label-pill label-info">Label</span>
<span class="label label-pill label-warning">Label</span>
<span class="label label-pill label-danger">Label</span>
</div>
<div class="bs-source">
<pre><code>
<span class="label label-pill label-default">Label</span>
<span class="label label-pill label-primary">Label</span>
<span class="label label-pill label-success">Label</span>
<span class="label label-pill label-info">Label</span>
<span class="label label-pill label-warning">Label</span>
<span class="label label-pill label-danger">Label</span>
</code></pre>
</div>
<h1 id="h1_modal">Modals</h1>
<p>
<b>Note:</b> helpers do not generate trigger buttons. Trigger buttons should
be added separately.
</p>
<h2 id="h2_modal_1">With simple content and default footer</h2>
<p>
<button class="btn btn-primary" data-target="#myModalEx1" data-toggle="modal" type="button">Launch modal</button>
<div aria-hidden="true" aria-labelledby="myModalEx1Label" class="modal fade" id="myModalEx1" role="dialog" tabindex="-1" style="display: none;"><div class="modal-dialog" role="document"><div class="modal-content"><div class="modal-body"><p>Dialog content</p></div><div class="modal-footer"><button class="btn btn-secondary" data-dismiss="modal" type="button">Close</button></div></div></div></div>
</p>
<pre><code class="hljs elixir">
<%= bh_modal "Modal dialog content" %> # default id is "myModal"
<%= bh_modal "Modal dialog content", id: "myModalEx1" %>
</code></pre>
<div class="bs-example bs-example-modal">
<div aria-hidden="true" aria-labelledby="myModalLabel" class="modal fade in example-modal" id="myModal" role="dialog" tabindex="-1">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-body">
<p>Modal dialog content</p>
</div>
<div class="modal-footer">
<button class="btn btn-secondary" data-dismiss="modal" type="button">
Close
</button>
</div>
</div>
</div>
</div>
</div>
<div class="bs-source">
<pre><code>
<div aria-hidden="true" aria-labelledby="myModalLabel" class="modal fade in" id="myModal" role="dialog" tabindex="-1">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-body">
<p>Modal dialog content</p>
</div>
<div class="modal-footer">
<button class="btn btn-secondary" data-dismiss="modal" type="button">
Close
</button>
</div>
</div>
</div>
</div>
</code></pre>
</div>
<h2 id="h2_modal_2">Custom size modals</h2>
<p>
<button class="btn btn-primary" data-target="#myModalEx2" data-toggle="modal" type="button">Launch small modal</button>
<button class="btn btn-primary" data-target="#myModalEx4" data-toggle="modal" type="button">Launch standard size modal</button>
<button class="btn btn-primary" data-target="#myModalEx3" data-toggle="modal" type="button">Launch large modal</button>
<div aria-hidden="true" aria-labelledby="myModalEx2Label" class="modal fade" id="myModalEx2" role="dialog" tabindex="-1" style="display: none;"><div class="modal-dialog modal-sm" role="document"><div class="modal-content"><div class="modal-body"><p>Small modal dialog content</p></div><div class="modal-footer"><button class="btn btn-secondary" data-dismiss="modal" type="button">Close</button></div></div></div></div>
<div aria-hidden="true" aria-labelledby="myModalEx4Label" class="modal fade" id="myModalEx4" role="dialog" tabindex="-1" style="display: none;"><div class="modal-dialog" role="document"><div class="modal-content"><div class="modal-body"><p>Standard size modal dialog content</p></div><div class="modal-footer"><button class="btn btn-secondary" data-dismiss="modal" type="button">Close</button></div></div></div></div>
<div aria-hidden="true" aria-labelledby="myModalEx3Label" class="modal fade" id="myModalEx3" role="dialog" tabindex="-1" style="display: none;"><div class="modal-dialog modal-lg" role="document"><div class="modal-content"><div class="modal-body"><p>Large modal dialog content</p></div><div class="modal-footer"><button class="btn btn-secondary" data-dismiss="modal" type="button">Close</button></div></div></div></div>
</p>
<pre><code class="hljs elixir">
<%= bh_modal "Small modal dialog content", size: :small, id: "myModalEx2" %>
</code></pre>
<div class="bs-example bs-example-modal">
<div aria-hidden="true" aria-labelledby="myModalEx2Label" class="modal fade in example-modal" id="myModalEx2" role="dialog" tabindex="-1">
<div class="modal-dialog modal-sm" role="document">
<div class="modal-content">
<div class="modal-body">
<p>Small modal dialog content</p>
</div>
<div class="modal-footer">
<button class="btn btn-secondary" data-dismiss="modal" type="button">Close</button>
</div>
</div>
</div>
</div>
</div>
<div class="bs-source">
<pre><code>
<div aria-hidden="true" aria-labelledby="myModalEx2Label" class="modal fade in" id="myModalEx2" role="dialog" tabindex="-1">
<div class="modal-dialog modal-sm" role="document">
<div class="modal-content">
<div class="modal-body">
<p>Small modal dialog content</p>
</div>
<div class="modal-footer">
<button class="btn btn-secondary" data-dismiss="modal" type="button">Close</button>
</div>
</div>
</div>
</div>
</code></pre>
</div>
<h2 id="h2_modal_3">Modals with custom titles</h2>
<p>
<button class="btn btn-primary" data-target="#myModalEx5" data-toggle="modal" type="button">Launch modal</button>
<div aria-hidden="true" aria-labelledby="myModalEx5Label" class="modal fade" id="myModalEx5" role="dialog" tabindex="-1" style="display: none;"><div class="modal-dialog" role="document"><div class="modal-content"><div class="modal-header"><button aria-label="Close" class="close" data-dismiss="modal" type="button"><span aria-hidden="true">×</span></button><h4 class="modal-title" id="myModalEx5Label">Modal title</h4></div><div class="modal-body"><p>Modal content</p></div></div></div></div>
</p>
<pre><code class="hljs elixir">
<%= bh_modal "Modal content", title: "Modal title" %>
</code></pre>
<div class="bs-example bs-example-modal">
<div aria-hidden="true" aria-labelledby="myModalLabel" class="modal fade in example-modal" id="myModal" role="dialog" tabindex="-1">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button aria-label="Close" class="close" data-dismiss="modal" type="button"><span aria-hidden="true">×</span></button>
<h4 class="modal-title" id="myModalLabel">Modal title</h4>
</div>
<div class="modal-body">
<p>Modal content</p>
</div>
</div>
</div>
</div>
</div>
<div class="bs-source">
<pre><code>
<div aria-hidden="true" aria-labelledby="myModalLabel" class="modal fade in" id="myModal" role="dialog" tabindex="-1">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button aria-label="Close" class="close" data-dismiss="modal" type="button"><span aria-hidden="true">×</span></button>
<h4 class="modal-title" id="myModalLabel">Modal title</h4>
</div>
<div class="modal-body">
<p>Modal content</p>
</div>
</div>
</div>
</div>
</code></pre>
</div>
<h2 id="h2_modal_4">Modals with complex content markup</h2>
<p>
<button class="btn btn-primary" data-target="#myModalEx6" data-toggle="modal" type="button">Launch modal</button>
<div aria-hidden="true" aria-labelledby="myModalEx6Label" class="modal fade" id="myModalEx6" role="dialog" tabindex="-1" style="display: none;"><div class="modal-dialog modal-sm" role="document"><div class="modal-content"><div class="modal-header"><button aria-label="Close" class="close" data-dismiss="modal" type="button"><span aria-hidden="true">×</span></button><h4 class="modal-title" id="myModalEx6Label">Modal title</h4></div><div class="modal-body"> <p>Just any content can be used here.</p><p>You can use buttons:<br><button class="btn btn-primary-outline" type="button">Button</button> <button class="btn btn-success" type="button">Success</button></p><p><span class="label label-default">E.g.</span> <b>bold</b> and <i>italic</i> text etc.</p></div></div></div></div>
</p>
<pre><code class="hljs elixir">
<%= bh_modal title: "Modal title", size: :small do %>
<p>Just any content can be used here.</p>
<p>You can use buttons:<br />
<%= bh_button_outline "Button" %>
<%= bh_button "Success", context: :success %></p>
<p><%= bh_label "E.g." %> <b>bold</b> and <i>italic</i> text etc.</p>
<% end %>
</code></pre>
<div class="bs-example bs-example-modal">
<div aria-hidden="true" aria-labelledby="myModalEx6Label" class="modal fade in example-modal" id="myModalEx6" role="dialog" tabindex="-1">
<div class="modal-dialog modal-sm" role="document">
<div class="modal-content">
<div class="modal-header">
<button aria-label="Close" class="close" data-dismiss="modal" type="button"><span aria-hidden="true">×</span></button>
<h4 class="modal-title" id="myModalEx6Label">Modal title</h4>
</div>
<div class="modal-body">
<p>Just any content can be used here.</p>
<p>You can use buttons:<br>
<button class="btn btn-primary-outline" type="button">Button</button>
<button class="btn btn-success" type="button">Success</button>
</p>
<p><span class="label label-default">E.g.</span> <b>bold</b> and <i>italic</i> text etc.</p>
</div>
</div>
</div>
</div>
</div>
<div class="bs-source">
<pre><code>
<div aria-hidden="true" aria-labelledby="myModalLabel" class="modal fade in" id="myModal" role="dialog" tabindex="-1">
<div class="modal-dialog modal-sm" role="document">
<div class="modal-content">
<div class="modal-header">
<button aria-label="Close" class="close" data-dismiss="modal" type="button"><span aria-hidden="true">×</span></button>
<h4 class="modal-title" id="myModalLabel">Modal title</h4>
</div>
<div class="modal-body">
<p>Just any content can be used here.</p>
<p>You can use buttons:<br>
<button class="btn btn-primary-outline" type="button">Button</button>
<button class="btn btn-success" type="button">Success</button>
</p>
<p><span class="label label-default">E.g.</span> <b>bold</b> and <i>italic</i> text etc.</p>
</div>
</div>
</div>
</div>
</code></pre>
</div>
<h2 id="h1_progress">Progress bars</h2>
<h2 id="h2_progress_1">Basic progress bars</h2>
<pre><code class="hljs elixir">
<%= bh_progress %>
<%= bh_progress percentage: 50 %>
</code></pre>
<div class="bs-example">
<progress class="progress" max="100" value="0">0%</progress>
<progress class="progress" max="100" value="50">%</progress>
</div>
<div class="bs-source">
<pre><code>
<progress class="progress" max="100" value="0">0%</progress>
<progress class="progress" max="100" value="50">%</progress>
</code></pre>
</div>
<h2 id="h2_progress_2">Contextual progress bars</h2>
<pre><code class="hljs elixir">
<%= bh_progress percentage: 10 %>
<%= bh_progress percentage: 30, context: :success %>
<%= bh_progress percentage: 50, context: :info %>
<%= bh_progress percentage: 70, context: :warning %>
<%= bh_progress percentage: 90, context: :danger %>
</code></pre>
<div class="bs-example">
<progress class="progress" max="100" value="10">10%</progress>
<progress class="progress progress-success" max="100" value="30">30%</progress>
<progress class="progress progress-info" max="100" value="50">50%</progress>
<progress class="progress progress-warning" max="100" value="70">70%</progress>
<progress class="progress progress-danger" max="100" value="90">90%</progress>
</div>
<div class="bs-source">
<pre><code>
<progress class="progress" max="100" value="10">10%</progress>
<progress class="progress progress-success" max="100" value="30">30%</progress>
<progress class="progress progress-info" max="100" value="50">50%</progress>
<progress class="progress progress-warning" max="100" value="70">70%</progress>
<progress class="progress progress-danger" max="100" value="90">90%</progress>
</code></pre>
</div>
<h2 id="h2_progress_3">Striped progress bars</h2>
<pre><code class="hljs elixir">
<%= bh_progress percentage: 10, striped: :true %>
<%= bh_progress percentage: 30, context: :success, striped: true %>
<%= bh_progress percentage: 50, context: :info, striped: true %>
<%= bh_progress percentage: 70, context: :warning, striped: true %>
<%= bh_progress percentage: 90, context: :danger, striped: true %>
</code></pre>
<div class="bs-example">
<progress class="progress progress-striped" max="100" value="10">10%</progress>
<progress class="progress progress-striped progress-success" max="100" value="30">30%</progress>
<progress class="progress progress-striped progress-info" max="100" value="50">50%</progress>
<progress class="progress progress-striped progress-warning" max="100" value="70">70%</progress>
<progress class="progress progress-striped progress-danger" max="100" value="90">90%</progress>
</div>
<div class="bs-source">
<pre><code>
<progress class="progress progress-striped" max="100" value="10">10%</progress>
<progress class="progress progress-striped progress-success" max="100" value="30">30%</progress>
<progress class="progress progress-striped progress-info" max="100" value="50">50%</progress>
<progress class="progress progress-striped progress-warning" max="100" value="70">70%</progress>
<progress class="progress progress-striped progress-danger" max="100" value="90">90%</progress>
</code></pre>
</div>
<h2 id="h2_progress_4">Animated progress bars</h2>
<pre><code class="hljs elixir">
<%= bh_progress percentage: 10, striped: true, animated: true %>
<%= bh_progress percentage: 30, context: :success, striped: true, animated: true %>
<%= bh_progress percentage: 50, context: :info, striped: true, animated: true %>
<%= bh_progress percentage: 70, context: :warning, striped: true, animated: true %>
<%= bh_progress percentage: 90, context: :danger, striped: true, animated: true %>
</code></pre>
<div class="bs-example">
<progress class="progress progress-striped progress-animated" max="100" value="10">10%</progress>
<progress class="progress progress-striped progress-success progress-animated" max="100" value="30">30%</progress>
<progress class="progress progress-striped progress-info progress-animated" max="100" value="50">50%</progress>
<progress class="progress progress-striped progress-warning progress-animated" max="100" value="70">70%</progress>
<progress class="progress progress-striped progress-danger progress-animated" max="100" value="90">90%</progress>
</div>
<div class="bs-source">
<pre><code>
<progress class="progress progress-striped progress-animated" max="100" value="10">10%</progress>
<progress class="progress progress-striped progress-success progress-animated" max="100" value="30">30%</progress>
<progress class="progress progress-striped progress-info progress-animated" max="100" value="50">50%</progress>
<progress class="progress progress-striped progress-warning progress-animated" max="100" value="70">70%</progress>
<progress class="progress progress-striped progress-danger progress-animated" max="100" value="90">90%</progress>
</code></pre>
</div>
</div>
<div class="col-md-3 hidden-sm-down">
<ul class="contents-list">
<li>
<a href="#h1_alert">Alerts</a>
<ul>
<li><a href="#h2_alert_1">Dismissible alert with context</a></li>
<li><a href="#h2_alert_2">Alert with id, extra class and context</a></li>
<li><a href="#h2_alert_3">Alert with id, extra class and complex markup block</a></li>
<li><a href="#h2_alert_4">Dismissible alert with id, extra class and complex markup block</a></li>
</ul>
</li>
<li>
<a href="#h1_button">Buttons</a>
<ul>
<li><a href="#h2_button_1">Simple button</a></li>
<li><a href="#h2_button_2">Button with context</a></li>
<li><a href="#h2_button_3">Buttons with different sizes</a></li>
<li><a href="#h2_button_4">Buttons with different layout</a></li>
<li><a href="#h2_button_5">Buttons with multiple options</a></li>
<li><a href="#h2_button_6">Buttons with complex markup</a></li>
<li><a href="#h2_button_7">Simple outline button</a></li>
<li><a href="#h2_button_8">Outline buttons with context</a></li>
<li><a href="#h2_button_9">Outline buttons with different sizes</a></li>
</ul>
</li>
<li>
<a href="#h1_label">Labels</a>
<ul>
<li><a href="#h2_label_1">Default label</a></li>
<li><a href="#h2_label_2">Labels with different contexts</a></li>
<li><a href="#h2_label_3">Default label pill</a></li>
<li><a href="#h2_label_4">Label pills with different contexts</a></li>
</ul>
</li>
<li>
<a href="#h1_modal">Modals</a>
<ul>
<li><a href="#h2_modal_1">With simple content and default footer</a></li>
<li><a href="#h2_modal_2">Custom size modals</a></li>
<li><a href="#h2_modal_3">Modals with custom titles</a></li>
<li><a href="#h2_modal_4">Modals with complex content markup</a></li>
</ul>
</li>
<li>
<a href="#h1_progress">Progress bars</a>
<ul>
<li><a href="#h2_progress_1">Basic progress bars</a></li>
<li><a href="#h2_progress_2">Contextual progress bars</a></li>
<li><a href="#h2_progress_3">Striped progress bars</a></li>
<li><a href="#h2_progress_4">Animated progress bars</a></li>
</ul>
</li>
</ul>
</div>
</div></div>
<script src="gh-pages/libs/jquery/2.1.4/jquery.min.js"></script>
<script src="gh-pages/libs/tether.min.js"></script>
<script src="gh-pages/libs/bootstrap/v4.0.0-alpha.2/bootstrap.min.js"></script>
<script src="gh-pages/libs/highlight/highlight.pack.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
</body>
</html>