/* Rounded sliders */
.switch {
position: relative;
display: inline-block;
width: 60px;
height: 10px;
left: 40px;
.no { color: $light-green; }
.yes { color: #cdcdcd; }
&.active {
.no { color: #cdcdcd !important; }
.yes { color: $light-green !important; }
}
input { display:none; }
.slider {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: #cdcdcd;
transition: .4s;
&:before {
position: absolute;
content: "";
height: 26px;
width: 26px;
left: -3px;
bottom: -7px;
background-color: $light-green;
transition: .4s;
}
}
input:checked + .slider {
background-color: $light-green;
}
input:focus + .slider {
box-shadow: 0 0 1px #CDCDCD;
}
input:checked + .slider:before {
transform: translateX(40px);
}
/* Rounded sliders */
.slider.round {
border-radius: 34px;
}
.slider.round:before {
border-radius: 50%;
}
span.answer {
font-family: $primary-font;
font-size: 1.6rem;
font-weight: 400;
position: relative;
&.no {
left: -35px;
top: -5px;
}
&.yes {
left: 55px;
top: -5px;
}
&.active {
color: $light-green;
}
}
}