|
4 | 4 | <meta charset="utf-8"> |
5 | 5 | <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> |
6 | 6 | <title>Example</title> |
7 | | - <link href="https://maxcdn.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" rel="stylesheet"> |
| 7 | + <link href="https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" rel="stylesheet"> |
8 | 8 | <link href="dist/css/component-custom-switch.css" rel="stylesheet"> |
9 | 9 | </head> |
10 | 10 | <body class="h-100"> |
11 | 11 | <div class="container h-100"> |
12 | 12 | <div class="d-flex align-items-start flex-column h-100"> |
13 | 13 | <div class="w-100 m-auto py-5 text-center"> |
14 | 14 |
|
15 | | -<div class="custom-switch custom-switch-label"> |
16 | | - <input class="custom-switch-input" id="example_01" type="checkbox"> |
17 | | - <label class="custom-switch-btn" for="example_01"></label> |
18 | | -</div> |
19 | | -<hr> |
20 | | -<div class="custom-switch custom-switch-label-io"> |
21 | | - <input class="custom-switch-input" id="example_02" type="checkbox"> |
22 | | - <label class="custom-switch-btn" for="example_02"></label> |
23 | | -</div> |
24 | | -<hr> |
25 | | -<div class="custom-switch custom-switch-label-onoff"> |
26 | | - <input class="custom-switch-input" id="example_03" type="checkbox"> |
27 | | - <label class="custom-switch-btn" for="example_03"></label> |
28 | | -</div> |
29 | | -<hr> |
30 | | -<div class="custom-switch custom-switch-label-yesno"> |
31 | | - <input class="custom-switch-input" id="example_04" type="checkbox"> |
32 | | - <label class="custom-switch-btn" for="example_04"></label> |
33 | | -</div> |
34 | | -<hr> |
35 | | -<div class="custom-switch custom-switch-label-status"> |
36 | | - <input class="custom-switch-input" id="example_05" type="checkbox"> |
37 | | - <label class="custom-switch-btn" for="example_05"></label> |
38 | | -</div> |
39 | | -<hr> |
40 | | -<div class="custom-switch custom-switch-label-onoff custom-switch-sm"> |
41 | | - <input class="custom-switch-input" id="example_06" type="checkbox"> |
42 | | - <label class="custom-switch-btn" for="example_06"></label> |
43 | | -</div> |
44 | | -<p>I'm <code>sm</code></p> |
45 | | -<hr> |
46 | | -<div class="custom-switch custom-switch-label-onoff custom-switch-xs"> |
47 | | - <input class="custom-switch-input" id="example_07" type="checkbox"> |
48 | | - <label class="custom-switch-btn" for="example_07"></label> |
49 | | -</div> |
50 | | -<p>I'm <code>xs</code></p> |
51 | | -<hr> |
52 | | -<div class="custom-switch custom-switch-label-yesno"> |
53 | | - <input class="custom-switch-input" id="example_08" type="checkbox"> |
54 | | - <label class="custom-switch-btn" for="example_08"></label> |
55 | | - <div class="custom-switch-content-checked"> |
56 | | - <span class="text-success">I'm checked</span> |
57 | | - </div> |
58 | | - <div class="custom-switch-content-unchecked"> |
59 | | - <span class="text-danger">I'm unchecked (click me!)</span> |
60 | | - </div> |
61 | | -</div> |
62 | | -<hr> |
63 | | -<div class="custom-switch custom-switch-label-io"> |
64 | | - <input class="custom-switch-input" id="example_09" type="checkbox" disabled> |
65 | | - <label class="custom-switch-btn" for="example_09"></label> |
66 | | -</div> |
67 | | -<div class="custom-switch custom-switch-label-io"> |
68 | | - <input class="custom-switch-input" id="example_10" type="checkbox" checked disabled> |
69 | | - <label class="custom-switch-btn" for="example_10"></label> |
70 | | -</div> |
71 | | -<p>I'm disabled</p> |
| 15 | + <div class="custom-switch"> |
| 16 | + <input class="custom-switch-input" id="example_01" type="checkbox"> |
| 17 | + <label class="custom-switch-btn" for="example_01"></label> |
| 18 | + </div> |
| 19 | + <hr> |
| 20 | + <div class="custom-switch custom-switch-label-io"> |
| 21 | + <input class="custom-switch-input" id="example_02" type="checkbox"> |
| 22 | + <label class="custom-switch-btn" for="example_02"></label> |
| 23 | + </div> |
| 24 | + <hr> |
| 25 | + <div class="custom-switch custom-switch-label-onoff"> |
| 26 | + <input class="custom-switch-input" id="example_03" type="checkbox"> |
| 27 | + <label class="custom-switch-btn" for="example_03"></label> |
| 28 | + </div> |
| 29 | + <hr> |
| 30 | + <div class="custom-switch custom-switch-label-yesno"> |
| 31 | + <input class="custom-switch-input" id="example_04" type="checkbox"> |
| 32 | + <label class="custom-switch-btn" for="example_04"></label> |
| 33 | + </div> |
| 34 | + <hr> |
| 35 | + <div class="custom-switch custom-switch-label-status"> |
| 36 | + <input class="custom-switch-input" id="example_05" type="checkbox"> |
| 37 | + <label class="custom-switch-btn" for="example_05"></label> |
| 38 | + </div> |
| 39 | + <hr> |
| 40 | + <div class="custom-switch custom-switch-label-onoff custom-switch-sm"> |
| 41 | + <input class="custom-switch-input" id="example_06" type="checkbox"> |
| 42 | + <label class="custom-switch-btn" for="example_06"></label> |
| 43 | + </div> |
| 44 | + <p>I'm <code>sm</code></p> |
| 45 | + <hr> |
| 46 | + <div class="custom-switch custom-switch-label-onoff custom-switch-xs"> |
| 47 | + <input class="custom-switch-input" id="example_07" type="checkbox"> |
| 48 | + <label class="custom-switch-btn" for="example_07"></label> |
| 49 | + </div> |
| 50 | + <p>I'm <code>xs</code></p> |
| 51 | + <hr> |
| 52 | + <div class="custom-switch custom-switch-label-yesno"> |
| 53 | + <input class="custom-switch-input" id="example_08" type="checkbox"> |
| 54 | + <label class="custom-switch-btn" for="example_08"></label> |
| 55 | + <div class="custom-switch-content-checked"> |
| 56 | + <span class="text-success">I'm checked</span> |
| 57 | + </div> |
| 58 | + <div class="custom-switch-content-unchecked"> |
| 59 | + <span class="text-danger">I'm unchecked (click me!)</span> |
| 60 | + </div> |
| 61 | + </div> |
| 62 | + <hr> |
| 63 | + <div class="custom-switch custom-switch-label-io"> |
| 64 | + <input class="custom-switch-input" id="example_09" type="checkbox" disabled> |
| 65 | + <label class="custom-switch-btn" for="example_09"></label> |
| 66 | + </div> |
| 67 | + <div class="custom-switch custom-switch-label-io"> |
| 68 | + <input class="custom-switch-input" id="example_10" type="checkbox" checked disabled> |
| 69 | + <label class="custom-switch-btn" for="example_10"></label> |
| 70 | + </div> |
| 71 | + <p>I'm disabled</p> |
| 72 | + <hr> |
| 73 | + <div class="form-group"> |
| 74 | + <div for="example_11">I'm a form label:</div> |
| 75 | + <div class="custom-switch"> |
| 76 | + <input type="checkbox" class="custom-switch-input" id="example_11" checked> |
| 77 | + <label class="custom-switch-btn text-hide" for="example_11">{value}</label> |
| 78 | + </div> |
| 79 | + </div> |
72 | 80 |
|
73 | 81 | </div> |
74 | 82 | </div> |
|
0 commit comments