2021-05-27 12:25:00 -04:00
|
|
|
@use '_variables' as *;
|
|
|
|
@use '_mixins' as *;
|
2020-11-19 05:12:01 -05:00
|
|
|
|
|
|
|
input {
|
|
|
|
position: absolute;
|
|
|
|
visibility: hidden;
|
|
|
|
|
2021-04-28 10:41:07 -04:00
|
|
|
+ label {
|
2020-11-19 05:12:01 -05:00
|
|
|
cursor: pointer;
|
|
|
|
text-indent: -9999px;
|
|
|
|
width: 35px;
|
|
|
|
height: 20px;
|
|
|
|
background: #cccccc;
|
|
|
|
display: block;
|
|
|
|
border-radius: 100px;
|
|
|
|
position: relative;
|
|
|
|
margin: 0;
|
|
|
|
|
2021-04-28 10:41:07 -04:00
|
|
|
&::after {
|
2020-11-19 05:12:01 -05:00
|
|
|
content: '';
|
|
|
|
position: absolute;
|
|
|
|
top: 3px;
|
|
|
|
left: 3px;
|
|
|
|
width: 14px;
|
|
|
|
height: 14px;
|
|
|
|
background: pvar(--mainBackgroundColor);
|
|
|
|
border-radius: 50%;
|
|
|
|
transition: 0.3s ease-out;
|
|
|
|
}
|
|
|
|
|
2021-04-28 10:41:07 -04:00
|
|
|
&:active::after {
|
2020-11-19 05:12:01 -05:00
|
|
|
width: 40px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&:checked + label {
|
|
|
|
background: pvar(--mainColor);
|
|
|
|
|
2021-04-28 10:41:07 -04:00
|
|
|
&::after {
|
2020-11-19 05:12:01 -05:00
|
|
|
left: calc(100% - 3px);
|
|
|
|
transform: translateX(-100%);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|