consul/ui/packages/consul-ui/app/components/sliding-toggle/skin.scss

31 lines
723 B
SCSS
Raw Normal View History

/* TODO: Maybe move this to reset? */
%sliding-toggle label span {
cursor: pointer;
}
%sliding-toggle label span::after {
border-radius: $decor-radius-full;
}
%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 {
color: $gray-900;
}
%sliding-toggle label span::after {
background-color: $white;
}
%sliding-toggle label input:checked + span::before,
%sliding-toggle-negative label input + span::before {
background-color: $blue-500;
}
%sliding-toggle label span::before,
%sliding-toggle-negative label input:checked + span::before {
background-color: $gray-300;
}