-
Notifications
You must be signed in to change notification settings - Fork 0
/
radios.css
37 lines (37 loc) · 977 Bytes
/
radios.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/* SOURCE: https://codepen.io/rauldronca/pen/EWLeMz */
.custom-radios div {
display: inline-block;
}
.custom-radios input[type=radio] {
display: none;
}
.custom-radios input[type=radio] + label {
color: #333;
font-family: Arial, sans-serif;
font-size: 14px;
}
.custom-radios input[type=radio] + label span {
display: inline-block;
width: 40px;
height: 40px;
margin: -1px 4px 0 0;
vertical-align: middle;
cursor: pointer;
border-radius: 50%;
border: 2px solid #FFFFFF;
/*box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.33);*/
background-repeat: no-repeat;
background-position: center;
text-align: center;
line-height: 44px;
}
.custom-radios input[type=radio] + label span img {
opacity: 0;
transition: all 0.3s ease;
}
.custom-radios input[type=radio] + label span {
background-color: var(--bgc);
}
.custom-radios input[type=radio]:checked + label span img {
opacity: 1;
}