| 1 |
/* Check box */ |
| 2 |
.htoptions_element_checkbox label { |
| 3 |
padding: 2px; |
| 4 |
width: 43px; |
| 5 |
height: 15px; |
| 6 |
background-color: #2c3e50; |
| 7 |
border-radius: 60px; |
| 8 |
-webkit-transition: background 0.2s; |
| 9 |
transition: background 0.2s; |
| 10 |
position: relative; |
| 11 |
text-indent: -99999px; |
| 12 |
} |
| 13 |
.htoptions_element_checkbox label::before { |
| 14 |
content: ""; |
| 15 |
position: absolute; |
| 16 |
top: 2px; |
| 17 |
left: 2px; |
| 18 |
bottom: 2px; |
| 19 |
right: 2px; |
| 20 |
background-color: #ffffff; |
| 21 |
border-radius: 10px; |
| 22 |
-webkit-transition: background 0.2s; |
| 23 |
transition: background 0.2s; |
| 24 |
} |
| 25 |
.htoptions_element_checkbox label::after { |
| 26 |
content: ""; |
| 27 |
position: absolute; |
| 28 |
top: 3px; |
| 29 |
left: 3px; |
| 30 |
bottom: 3px; |
| 31 |
width: 18px; |
| 32 |
background-color: #2c3e50; |
| 33 |
border-radius: 10px; |
| 34 |
-webkit-transition: margin 0.2s, background 0.2s; |
| 35 |
transition: margin 0.2s, background 0.2s; |
| 36 |
} |
| 37 |
.htoptions_element_checkbox input { |
| 38 |
opacity: 0; |
| 39 |
width: 0; |
| 40 |
height: 0; |
| 41 |
position: absolute; |
| 42 |
} |
| 43 |
.htoptions_element_checkbox input:disabled{ |
| 44 |
opacity: 0; |
| 45 |
} |
| 46 |
.htoptions_element_checkbox input:checked + label { |
| 47 |
background-color: #22b9ff; |
| 48 |
} |
| 49 |
.htoptions_element_checkbox input:checked + label::after { |
| 50 |
background-color: #22b9ff; |
| 51 |
margin-left: 23px; |
| 52 |
} |