|
1 | 1 | /*\ |
2 | | -|*| ======================================================================== |
3 | | -|*| Bootstrap Switch Button: bootstrap-switch-button.css v1.0.0 |
4 | | -|*| https://gitbrent.github.io/bootstrap-switch-button/ |
5 | | -|*| ======================================================================== |
6 | | -|*| Copyright 2018-2019 Brent Ely |
7 | | -|*| Licensed under MIT |
8 | | -|*| ======================================================================== |
| 2 | +|*| :: Bootstrap Switch Button :: |
| 3 | +|*| |
| 4 | +|*| Bootstrap Switch Button |
| 5 | +|*| https://github.com/gitbrent/bootstrap-switch-button |
| 6 | +|*| |
| 7 | +|*| This library is released under the MIT Public License (MIT) |
| 8 | +|*| |
| 9 | +|*| Bootstrap Switch Button (C) 2019-present Brent Ely (https://github.com/gitbrent) |
| 10 | +|*| |
| 11 | +|*| Permission is hereby granted, free of charge, to any person obtaining a copy |
| 12 | +|*| of this software and associated documentation files (the "Software"), to deal |
| 13 | +|*| in the Software without restriction, including without limitation the rights |
| 14 | +|*| to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
| 15 | +|*| copies of the Software, and to permit persons to whom the Software is |
| 16 | +|*| furnished to do so, subject to the following conditions: |
| 17 | +|*| |
| 18 | +|*| The above copyright notice and this permission notice shall be included in all |
| 19 | +|*| copies or substantial portions of the Software. |
| 20 | +|*| |
| 21 | +|*| THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
| 22 | +|*| IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| 23 | +|*| FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
| 24 | +|*| AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
| 25 | +|*| LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
| 26 | +|*| OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
| 27 | +|*| SOFTWARE. |
9 | 28 | \*/ |
10 | 29 |
|
11 | 30 | .btn-group-xs > .btn, .btn-xs { |
|
113 | 132 | opacity: 0.5; |
114 | 133 | } |
115 | 134 |
|
| 135 | +/* bootstrap-4.x .form-control {height} values used as `min-height` to mirror output sizes */ |
| 136 | + |
116 | 137 | /* NOTE: Must come first, so classes below override as needed */ |
117 | | -/* [default] (bootstrap-4.1.3 - .btn - h:38px) */ |
118 | | -.switch.btn { min-width: 3.7rem; min-height: 2.15rem; } |
| 138 | +.switch.btn { min-width: 3.7rem; min-height: calc(1.5em + .75rem + 2px); } |
119 | 139 | .switch-on.btn { padding-right: 1.5rem; } |
120 | 140 | .switch-off.btn { padding-left: 1.5rem; } |
121 | 141 |
|
122 | | -/* `lg` (bootstrap-4.1.3 - .btn - h:48px) */ |
123 | | -.switch.btn-lg { min-width: 5rem; min-height: 2.815rem; } |
| 142 | +.switch.btn-lg { min-width: 5rem; line-height: 1.5; min-height: calc(1.5em + 1rem + 2px); } |
124 | 143 | .switch-on.btn-lg { padding-right: 2rem; } |
125 | 144 | .switch-off.btn-lg { padding-left: 2rem; } |
126 | 145 | .switch-handle.btn-lg { width: 2.5rem; } |
127 | 146 |
|
128 | | -/* `sm` (bootstrap-4.1.3 - .btn - h:31px) */ |
129 | | -.switch.btn-sm { min-width: 3.125rem; min-height: 1.938rem; } |
| 147 | +.switch.btn-sm { min-width: 3.25rem; min-height: calc(1.5em + .5rem + 2px); } |
130 | 148 | .switch-on.btn-sm { padding-right: 1rem; } |
131 | 149 | .switch-off.btn-sm { padding-left: 1rem; } |
132 | 150 |
|
133 | 151 | /* `xs` (bootstrap-3.3 - .btn - h:22px) */ |
134 | | -.switch.btn-xs { min-width: 2.19rem; min-height: 1.375rem; } |
| 152 | +.switch.btn-xs { min-width: 3.125rem; min-height: 1.375rem; } |
135 | 153 | .switch-on.btn-xs { padding-right: .8rem; } |
136 | 154 | .switch-off.btn-xs { padding-left: .8rem; } |
0 commit comments