Loading files
9f4bea8acThis file is pinned to the selected release. Download the original to open it in your design tool.
input[type=checkbox]{
height: 0;
width: 0;
visibility: hidden;
}
label.toggle {
cursor: pointer;
text-indent: -9999px;
width: 4rem;
height: 2rem;
border-radius: 0.5rem;
background: #3D3B39;
display: inline-block;
position: relative;
}
label.toggle:after {
content: '';
position: absolute;
top: 0.1rem;
left: 0.1rem;
width: 1.8rem;
height: 1.8rem;
background: #d5d5d5;
border-radius: 0.5rem;
transition: 0.2s;
}
input:checked + label {
background: #FA8756;
}
input:checked + label:after {
left: calc(100% - 0.1rem);
transform: translateX(-100%);
background: #3D3B39;
}
label:active:after {
width: 0.8rem;
}