2019-11-25 17:43:25 +00:00
|
|
|
/* TODO: Maybe move this to reset? */
|
|
|
|
%sliding-toggle label span {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
%sliding-toggle label span::after {
|
2021-10-07 18:21:11 +00:00
|
|
|
border-radius: var(--decor-radius-full);
|
2019-11-25 17:43:25 +00:00
|
|
|
}
|
|
|
|
%sliding-toggle label span::before {
|
|
|
|
border-radius: 7px;
|
|
|
|
}
|
|
|
|
%sliding-toggle-negative {
|
|
|
|
border: 0;
|
|
|
|
}
|
|
|
|
%sliding-toggle.type-negative {
|
|
|
|
@extend %sliding-toggle-negative;
|
|
|
|
}
|
|
|
|
%sliding-toggle label span {
|
2021-10-07 18:21:11 +00:00
|
|
|
color: rgb(var(--tone-gray-900));
|
2019-11-25 17:43:25 +00:00
|
|
|
}
|
|
|
|
%sliding-toggle label span::after {
|
2021-10-07 18:21:11 +00:00
|
|
|
background-color: rgb(var(--white));
|
2019-11-25 17:43:25 +00:00
|
|
|
}
|
|
|
|
%sliding-toggle label input:checked + span::before,
|
|
|
|
%sliding-toggle-negative label input + span::before {
|
2021-10-07 18:21:11 +00:00
|
|
|
background-color: rgb(var(--tone-blue-500));
|
2019-11-25 17:43:25 +00:00
|
|
|
}
|
|
|
|
%sliding-toggle label span::before,
|
|
|
|
%sliding-toggle-negative label input:checked + span::before {
|
2021-10-07 18:21:11 +00:00
|
|
|
background-color: rgb(var(--tone-gray-300));
|
2019-11-25 17:43:25 +00:00
|
|
|
}
|