|
17 | 17 | height: 17px; |
18 | 18 | top: 2px; |
19 | 19 | left: 0; |
20 | | - margin-left: -20px; |
| 20 | + margin-left: -1.25rem; |
21 | 21 | border: 1px solid rgba(0, 0, 0, 0.15); |
22 | 22 | border-radius: 3px; |
23 | 23 | background-color: #fff; |
|
30 | 30 | height: 16px; |
31 | 31 | left: 0; |
32 | 32 | top: 2px; |
33 | | - margin-left: -20px; |
| 33 | + margin-left: -1.25rem; |
34 | 34 | padding-left: 3px; |
35 | 35 | padding-top: 1px; |
36 | 36 | font-size: 11px; |
37 | | - color: #464a4c; } |
| 37 | + color: #495057; } |
38 | 38 | .abc-checkbox input[type="checkbox"], |
39 | 39 | .abc-checkbox input[type="radio"] { |
| 40 | + position: static; |
| 41 | + margin-left: 0; |
40 | 42 | cursor: pointer; |
41 | 43 | opacity: 0; |
42 | 44 | z-index: 1; } |
|
64 | 66 | opacity: 0.65; } |
65 | 67 | .abc-checkbox input[type="checkbox"]:disabled + label::before, |
66 | 68 | .abc-checkbox input[type="radio"]:disabled + label::before { |
67 | | - background-color: #eceeef; |
| 69 | + background-color: #e9ecef; |
68 | 70 | cursor: not-allowed; } |
69 | 71 | .abc-checkbox input[type="checkbox"]:disabled + label::after, |
70 | 72 | .abc-checkbox input[type="radio"]:disabled + label::after { |
|
76 | 78 |
|
77 | 79 | .abc-checkbox-primary input[type="checkbox"]:checked + label::before, |
78 | 80 | .abc-checkbox-primary input[type="radio"]:checked + label::before { |
79 | | - background-color: #0275d8; |
80 | | - border-color: #0275d8; } |
81 | | - |
| 81 | + background-color: #007bff; |
| 82 | + border-color: #007bff; } |
82 | 83 | .abc-checkbox-primary input[type="checkbox"]:checked + label::after, |
83 | 84 | .abc-checkbox-primary input[type="radio"]:checked + label::after { |
84 | 85 | color: #fff; } |
85 | 86 |
|
86 | 87 | .abc-checkbox-danger input[type="checkbox"]:checked + label::before, |
87 | 88 | .abc-checkbox-danger input[type="radio"]:checked + label::before { |
88 | | - background-color: #d9534f; |
89 | | - border-color: #d9534f; } |
90 | | - |
| 89 | + background-color: #dc3545; |
| 90 | + border-color: #dc3545; } |
91 | 91 | .abc-checkbox-danger input[type="checkbox"]:checked + label::after, |
92 | 92 | .abc-checkbox-danger input[type="radio"]:checked + label::after { |
93 | 93 | color: #fff; } |
94 | 94 |
|
95 | 95 | .abc-checkbox-info input[type="checkbox"]:checked + label::before, |
96 | 96 | .abc-checkbox-info input[type="radio"]:checked + label::before { |
97 | | - background-color: #5bc0de; |
98 | | - border-color: #5bc0de; } |
99 | | - |
| 97 | + background-color: #17a2b8; |
| 98 | + border-color: #17a2b8; } |
100 | 99 | .abc-checkbox-info input[type="checkbox"]:checked + label::after, |
101 | 100 | .abc-checkbox-info input[type="radio"]:checked + label::after { |
102 | 101 | color: #fff; } |
103 | 102 |
|
104 | 103 | .abc-checkbox-warning input[type="checkbox"]:checked + label::before, |
105 | 104 | .abc-checkbox-warning input[type="radio"]:checked + label::before { |
106 | | - background-color: #f0ad4e; |
107 | | - border-color: #f0ad4e; } |
108 | | - |
| 105 | + background-color: #ffc107; |
| 106 | + border-color: #ffc107; } |
109 | 107 | .abc-checkbox-warning input[type="checkbox"]:checked + label::after, |
110 | 108 | .abc-checkbox-warning input[type="radio"]:checked + label::after { |
111 | 109 | color: #fff; } |
112 | 110 |
|
113 | 111 | .abc-checkbox-success input[type="checkbox"]:checked + label::before, |
114 | 112 | .abc-checkbox-success input[type="radio"]:checked + label::before { |
115 | | - background-color: #5cb85c; |
116 | | - border-color: #5cb85c; } |
117 | | - |
| 113 | + background-color: #28a745; |
| 114 | + border-color: #28a745; } |
118 | 115 | .abc-checkbox-success input[type="checkbox"]:checked + label::after, |
119 | 116 | .abc-checkbox-success input[type="radio"]:checked + label::after { |
120 | 117 | color: #fff; } |
121 | 118 |
|
122 | 119 | .abc-checkbox-primary input[type="checkbox"]:indeterminate + label::before, |
123 | 120 | .abc-checkbox-primary input[type="radio"]:indeterminate + label::before { |
124 | | - background-color: #0275d8; |
125 | | - border-color: #0275d8; } |
126 | | - |
| 121 | + background-color: #007bff; |
| 122 | + border-color: #007bff; } |
127 | 123 | .abc-checkbox-primary input[type="checkbox"]:indeterminate + label::after, |
128 | 124 | .abc-checkbox-primary input[type="radio"]:indeterminate + label::after { |
129 | 125 | background-color: #fff; } |
130 | 126 |
|
131 | 127 | .abc-checkbox-danger input[type="checkbox"]:indeterminate + label::before, |
132 | 128 | .abc-checkbox-danger input[type="radio"]:indeterminate + label::before { |
133 | | - background-color: #d9534f; |
134 | | - border-color: #d9534f; } |
135 | | - |
| 129 | + background-color: #dc3545; |
| 130 | + border-color: #dc3545; } |
136 | 131 | .abc-checkbox-danger input[type="checkbox"]:indeterminate + label::after, |
137 | 132 | .abc-checkbox-danger input[type="radio"]:indeterminate + label::after { |
138 | 133 | background-color: #fff; } |
139 | 134 |
|
140 | 135 | .abc-checkbox-info input[type="checkbox"]:indeterminate + label::before, |
141 | 136 | .abc-checkbox-info input[type="radio"]:indeterminate + label::before { |
142 | | - background-color: #5bc0de; |
143 | | - border-color: #5bc0de; } |
144 | | - |
| 137 | + background-color: #17a2b8; |
| 138 | + border-color: #17a2b8; } |
145 | 139 | .abc-checkbox-info input[type="checkbox"]:indeterminate + label::after, |
146 | 140 | .abc-checkbox-info input[type="radio"]:indeterminate + label::after { |
147 | 141 | background-color: #fff; } |
148 | 142 |
|
149 | 143 | .abc-checkbox-warning input[type="checkbox"]:indeterminate + label::before, |
150 | 144 | .abc-checkbox-warning input[type="radio"]:indeterminate + label::before { |
151 | | - background-color: #f0ad4e; |
152 | | - border-color: #f0ad4e; } |
153 | | - |
| 145 | + background-color: #ffc107; |
| 146 | + border-color: #ffc107; } |
154 | 147 | .abc-checkbox-warning input[type="checkbox"]:indeterminate + label::after, |
155 | 148 | .abc-checkbox-warning input[type="radio"]:indeterminate + label::after { |
156 | 149 | background-color: #fff; } |
157 | 150 |
|
158 | 151 | .abc-checkbox-success input[type="checkbox"]:indeterminate + label::before, |
159 | 152 | .abc-checkbox-success input[type="radio"]:indeterminate + label::before { |
160 | | - background-color: #5cb85c; |
161 | | - border-color: #5cb85c; } |
162 | | - |
| 153 | + background-color: #28a745; |
| 154 | + border-color: #28a745; } |
163 | 155 | .abc-checkbox-success input[type="checkbox"]:indeterminate + label::after, |
164 | 156 | .abc-checkbox-success input[type="radio"]:indeterminate + label::after { |
165 | 157 | background-color: #fff; } |
|
198 | 190 | top: 5px; |
199 | 191 | margin-left: -20px; |
200 | 192 | border-radius: 50%; |
201 | | - background-color: #464a4c; |
| 193 | + background-color: #495057; |
202 | 194 | transform: scale(0, 0); |
203 | 195 | transition: transform 0.1s cubic-bezier(0.8, -0.33, 0.2, 1.33); } |
204 | 196 | .abc-radio input[type="radio"] { |
| 197 | + position: static; |
| 198 | + margin-left: 0; |
205 | 199 | cursor: pointer; |
206 | 200 | opacity: 0; |
207 | 201 | z-index: 1; } |
|
221 | 215 | margin-top: 0; } |
222 | 216 |
|
223 | 217 | .abc-radio-primary input[type="radio"] + label::after { |
224 | | - background-color: #0275d8; } |
225 | | - |
| 218 | + background-color: #007bff; } |
226 | 219 | .abc-radio-primary input[type="radio"]:checked + label::before { |
227 | | - border-color: #0275d8; } |
228 | | - |
| 220 | + border-color: #007bff; } |
229 | 221 | .abc-radio-primary input[type="radio"]:checked + label::after { |
230 | | - background-color: #0275d8; } |
| 222 | + background-color: #007bff; } |
231 | 223 |
|
232 | 224 | .abc-radio-danger input[type="radio"] + label::after { |
233 | | - background-color: #d9534f; } |
234 | | - |
| 225 | + background-color: #dc3545; } |
235 | 226 | .abc-radio-danger input[type="radio"]:checked + label::before { |
236 | | - border-color: #d9534f; } |
237 | | - |
| 227 | + border-color: #dc3545; } |
238 | 228 | .abc-radio-danger input[type="radio"]:checked + label::after { |
239 | | - background-color: #d9534f; } |
| 229 | + background-color: #dc3545; } |
240 | 230 |
|
241 | 231 | .abc-radio-info input[type="radio"] + label::after { |
242 | | - background-color: #5bc0de; } |
243 | | - |
| 232 | + background-color: #17a2b8; } |
244 | 233 | .abc-radio-info input[type="radio"]:checked + label::before { |
245 | | - border-color: #5bc0de; } |
246 | | - |
| 234 | + border-color: #17a2b8; } |
247 | 235 | .abc-radio-info input[type="radio"]:checked + label::after { |
248 | | - background-color: #5bc0de; } |
| 236 | + background-color: #17a2b8; } |
249 | 237 |
|
250 | 238 | .abc-radio-warning input[type="radio"] + label::after { |
251 | | - background-color: #f0ad4e; } |
252 | | - |
| 239 | + background-color: #ffc107; } |
253 | 240 | .abc-radio-warning input[type="radio"]:checked + label::before { |
254 | | - border-color: #f0ad4e; } |
255 | | - |
| 241 | + border-color: #ffc107; } |
256 | 242 | .abc-radio-warning input[type="radio"]:checked + label::after { |
257 | | - background-color: #f0ad4e; } |
| 243 | + background-color: #ffc107; } |
258 | 244 |
|
259 | 245 | .abc-radio-success input[type="radio"] + label::after { |
260 | | - background-color: #5cb85c; } |
261 | | - |
| 246 | + background-color: #28a745; } |
262 | 247 | .abc-radio-success input[type="radio"]:checked + label::before { |
263 | | - border-color: #5cb85c; } |
264 | | - |
| 248 | + border-color: #28a745; } |
265 | 249 | .abc-radio-success input[type="radio"]:checked + label::after { |
266 | | - background-color: #5cb85c; } |
267 | | - |
268 | | -input[type="checkbox"].styled:checked + label:after, |
269 | | -input[type="radio"].styled:checked + label:after { |
270 | | - font-family: "FontAwesome"; |
271 | | - content: ""; } |
272 | | - |
273 | | -input[type="checkbox"] .styled:checked + label::before, |
274 | | -input[type="radio"] .styled:checked + label::before { |
275 | | - color: #fff; } |
276 | | - |
277 | | -input[type="checkbox"] .styled:checked + label::after, |
278 | | -input[type="radio"] .styled:checked + label::after { |
279 | | - color: #fff; } |
| 250 | + background-color: #28a745; } |
280 | 251 |
|
281 | | -.has-danger .abc-checkbox label:before, .has-danger .abc-radio label:before { |
282 | | - border-color: #d9534f; } |
| 252 | +label .was-validated .form-check-input:invalid .abc-checkbox:before, label |
| 253 | +.was-validated .form-check-input:invalid .abc-radio:before, label .form-check-input.is-invalid .abc-checkbox:before, label |
| 254 | +.form-check-input.is-invalid .abc-radio:before { |
| 255 | + border-color: #dc3545; } |
0 commit comments