Skip to content

Commit 0f40edd

Browse files
committed
Fades out unselected radio boxes
1 parent 9836dd6 commit 0f40edd

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

web/assets/v5/css/style.css

+12-1
Original file line numberDiff line numberDiff line change
@@ -388,11 +388,17 @@ label.radio input[type="radio"] {
388388
}
389389

390390
.radio-tile .content:hover {
391+
color: #999;
391392
border-color: #2c9ab7;
392393
box-shadow: 0 0 0 1px #2c9ab7;
393394
}
394395

396+
.radio-tile input + .content {
397+
color: #ccc;
398+
}
399+
395400
.radio-tile input:checked + .content {
401+
color: #000;
396402
border-color: #f47421;
397403
box-shadow: 0 0 0 1px #f47421;
398404
}
@@ -421,12 +427,16 @@ label.radio input[type="radio"] {
421427
margin: -1px 0;
422428
background-color: transparent;
423429
font: normal normal 400 1.5em/1.2em FontAwesome;
424-
color: #f47421;
430+
color: #ccc;
425431
text-align: center;
426432
display: inline-block;
427433
vertical-align: middle;
428434
}
429435

436+
.radio-tile input:checked + .content .icon {
437+
color: #f47421;
438+
}
439+
430440
.radio-tile .icon:before {
431441
content: "\f096";
432442
}
@@ -452,6 +462,7 @@ label.radio input[type="radio"] {
452462
}
453463

454464
.radio-tile .header.large .icon {
465+
margin-bottom: 10px;
455466
font-size: 1.3em;
456467
}
457468

0 commit comments

Comments
 (0)