Skip to content

Commit b372df8

Browse files
committedJul 20, 2016
default checkbox CHECKED state updated
1 parent 2e50f32 commit b372df8

File tree

6 files changed

+104
-1
lines changed

6 files changed

+104
-1
lines changed
 

‎.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules/

‎src/pretty.css

+71
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@
149149
color: transparent;
150150
position: relative;
151151
z-index: 999;
152+
left: -1px;
152153
}
153154

154155
.pretty i:after {
@@ -166,6 +167,22 @@
166167
color: inherit;
167168
}
168169

170+
.pretty > input[type='radio'] + label > i.default:before {
171+
content: '\0000';
172+
border-radius: 2px;
173+
-webkit-transform: scale(0.8);
174+
-moz-transform: scale(0.8);
175+
-o-transform: scale(0.8);
176+
transform: scale(0.8);
177+
color: transparent;
178+
background: transparent;
179+
left: 0;
180+
}
181+
182+
.pretty > input[type='radio']:checked + label > i.default:before {
183+
background: #aaa;
184+
}
185+
169186
.pretty > input[type='checkbox'][disabled],
170187
.pretty > input[type='radio'][disabled] {
171188
cursor: not-allowed;
@@ -207,6 +224,10 @@
207224
border-radius: 100px;
208225
}
209226

227+
.pretty.circle label i.default:before {
228+
border-radius: 100px !important;
229+
}
230+
210231
.pretty.primary input:checked + label i:before {
211232
color: #fff;
212233
}
@@ -216,6 +237,16 @@
216237
border-color: #428bca;
217238
}
218239

240+
.pretty.primary input[type='radio']:checked + label i.default:before {
241+
background-color: #428bca;
242+
color: transparent;
243+
}
244+
245+
.pretty.primary input[type='radio']:checked + label i.default:after {
246+
background-color: initial;
247+
border-color: #428bca;
248+
}
249+
219250
.pretty.primary.smooth input:checked ~ label i:after {
220251
-webkit-transform: scale(1) !important;
221252
-moz-transform: scale(1) !important;
@@ -260,6 +291,16 @@
260291
border-color: #5cb85c;
261292
}
262293

294+
.pretty.success input[type='radio']:checked + label i.default:before {
295+
background-color: #5cb85c;
296+
color: transparent;
297+
}
298+
299+
.pretty.success input[type='radio']:checked + label i.default:after {
300+
background-color: initial;
301+
border-color: #5cb85c;
302+
}
303+
263304
.pretty.success.smooth input:checked ~ label i:after {
264305
-webkit-transform: scale(1) !important;
265306
-moz-transform: scale(1) !important;
@@ -304,6 +345,16 @@
304345
border-color: #5bc0de;
305346
}
306347

348+
.pretty.info input[type='radio']:checked + label i.default:before {
349+
background-color: #5bc0de;
350+
color: transparent;
351+
}
352+
353+
.pretty.info input[type='radio']:checked + label i.default:after {
354+
background-color: initial;
355+
border-color: #5bc0de;
356+
}
357+
307358
.pretty.info.smooth input:checked ~ label i:after {
308359
-webkit-transform: scale(1) !important;
309360
-moz-transform: scale(1) !important;
@@ -348,6 +399,16 @@
348399
border-color: #f0ad4e;
349400
}
350401

402+
.pretty.warning input[type='radio']:checked + label i.default:before {
403+
background-color: #f0ad4e;
404+
color: transparent;
405+
}
406+
407+
.pretty.warning input[type='radio']:checked + label i.default:after {
408+
background-color: initial;
409+
border-color: #f0ad4e;
410+
}
411+
351412
.pretty.warning.smooth input:checked ~ label i:after {
352413
-webkit-transform: scale(1) !important;
353414
-moz-transform: scale(1) !important;
@@ -392,6 +453,16 @@
392453
border-color: #d9534f;
393454
}
394455

456+
.pretty.danger input[type='radio']:checked + label i.default:before {
457+
background-color: #d9534f;
458+
color: transparent;
459+
}
460+
461+
.pretty.danger input[type='radio']:checked + label i.default:after {
462+
background-color: initial;
463+
border-color: #d9534f;
464+
}
465+
395466
.pretty.danger.smooth input:checked ~ label i:after {
396467
-webkit-transform: scale(1) !important;
397468
-moz-transform: scale(1) !important;

0 commit comments

Comments
 (0)
Please sign in to comment.