|
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"> |
| 15 | + <div class="custom-switch pl-0"> |
16 | 16 | <input class="custom-switch-input" id="example_01" type="checkbox"> |
17 | 17 | <label class="custom-switch-btn" for="example_01"></label> |
18 | 18 | </div> |
| 19 | + |
19 | 20 | <hr> |
20 | | - <div class="custom-switch custom-switch-label-io"> |
| 21 | + |
| 22 | + <div class="custom-switch custom-switch-label-io pl-0"> |
21 | 23 | <input class="custom-switch-input" id="example_02" type="checkbox"> |
22 | 24 | <label class="custom-switch-btn" for="example_02"></label> |
23 | 25 | </div> |
| 26 | + |
24 | 27 | <hr> |
25 | | - <div class="custom-switch custom-switch-label-onoff"> |
| 28 | + |
| 29 | + <div class="custom-switch custom-switch-label-onoff pl-0"> |
26 | 30 | <input class="custom-switch-input" id="example_03" type="checkbox"> |
27 | 31 | <label class="custom-switch-btn" for="example_03"></label> |
28 | 32 | </div> |
| 33 | + |
29 | 34 | <hr> |
30 | | - <div class="custom-switch custom-switch-label-yesno"> |
| 35 | + |
| 36 | + <div class="custom-switch custom-switch-label-yesno pl-0"> |
31 | 37 | <input class="custom-switch-input" id="example_04" type="checkbox"> |
32 | 38 | <label class="custom-switch-btn" for="example_04"></label> |
33 | 39 | </div> |
| 40 | + |
34 | 41 | <hr> |
35 | | - <div class="custom-switch custom-switch-label-status"> |
| 42 | + |
| 43 | + <div class="custom-switch custom-switch-label-status pl-0"> |
36 | 44 | <input class="custom-switch-input" id="example_05" type="checkbox"> |
37 | 45 | <label class="custom-switch-btn" for="example_05"></label> |
38 | 46 | </div> |
| 47 | + |
39 | 48 | <hr> |
40 | | - <div class="custom-switch custom-switch-label-onoff custom-switch-sm"> |
| 49 | + |
| 50 | + <div class="custom-switch custom-switch-label-onoff custom-switch-sm pl-0"> |
41 | 51 | <input class="custom-switch-input" id="example_06" type="checkbox"> |
42 | 52 | <label class="custom-switch-btn" for="example_06"></label> |
43 | 53 | </div> |
44 | 54 | <p>I'm <code>sm</code></p> |
| 55 | + |
45 | 56 | <hr> |
46 | | - <div class="custom-switch custom-switch-label-onoff custom-switch-xs"> |
| 57 | + |
| 58 | + <div class="custom-switch custom-switch-label-onoff custom-switch-xs pl-0"> |
47 | 59 | <input class="custom-switch-input" id="example_07" type="checkbox"> |
48 | 60 | <label class="custom-switch-btn" for="example_07"></label> |
49 | 61 | </div> |
50 | 62 | <p>I'm <code>xs</code></p> |
| 63 | + |
51 | 64 | <hr> |
52 | | - <div class="custom-switch custom-switch-label-yesno"> |
| 65 | + |
| 66 | + <div class="custom-switch custom-switch-label-yesno pl-0"> |
53 | 67 | <input class="custom-switch-input" id="example_08" type="checkbox"> |
54 | 68 | <label class="custom-switch-btn" for="example_08"></label> |
55 | 69 | <div class="custom-switch-content-checked"> |
|
59 | 73 | <span class="text-danger">I'm unchecked (click me!)</span> |
60 | 74 | </div> |
61 | 75 | </div> |
| 76 | + |
62 | 77 | <hr> |
63 | | - <div class="custom-switch custom-switch-label-io"> |
64 | | - <input class="custom-switch-input" id="example_09" type="checkbox" disabled> |
| 78 | + |
| 79 | + <div class="custom-switch pl-0"> |
| 80 | + <input class="custom-switch-input" id="example_09" type="checkbox" required> |
65 | 81 | <label class="custom-switch-btn" for="example_09"></label> |
66 | 82 | </div> |
67 | | - <div class="custom-switch custom-switch-label-io"> |
68 | | - <input class="custom-switch-input" id="example_10" type="checkbox" checked disabled> |
| 83 | + <p>I'm <code>required</code></p> |
| 84 | + |
| 85 | + <hr> |
| 86 | + |
| 87 | + <div class="custom-switch pl-0"> |
| 88 | + <input class="custom-switch-input" id="example_10" type="checkbox" disabled> |
69 | 89 | <label class="custom-switch-btn" for="example_10"></label> |
70 | 90 | </div> |
71 | | - <p>I'm disabled</p> |
| 91 | + <div class="custom-switch pl-0"> |
| 92 | + <input class="custom-switch-input" id="example_11" type="checkbox" checked disabled> |
| 93 | + <label class="custom-switch-btn" for="example_11"></label> |
| 94 | + </div> |
| 95 | + <p>I'm <code>disabled</code></p> |
| 96 | + |
72 | 97 | <hr> |
| 98 | + |
73 | 99 | <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> |
| 100 | + <div for="example_12">I'm a <div> form label:</div> |
| 101 | + <div class="custom-switch pl-0"> |
| 102 | + <input type="checkbox" class="custom-switch-input" id="example_12" checked> |
| 103 | + <label class="custom-switch-btn text-hide" for="example_12">{value}</label> |
78 | 104 | </div> |
79 | 105 | </div> |
80 | 106 |
|
| 107 | + <hr> |
| 108 | + <legend>Validation</legend> |
| 109 | + <form class="was-validated"> |
| 110 | + <div class="form-group is-invalid"> |
| 111 | + <div class="custom-switch pl-0"> |
| 112 | + <input class="custom-switch-input" id="example_13" type="checkbox"> |
| 113 | + <label class="custom-switch-btn" for="example_13"></label> |
| 114 | + </div> |
| 115 | + </div> |
| 116 | + </form> |
| 117 | + <p>I'm <code>invalid</code></p> |
| 118 | + |
81 | 119 | </div> |
82 | 120 | </div> |
83 | 121 | </div> |
|
0 commit comments