ss_website/app/css/additional-styles/toggle-switch.css

17 lines
441 B
CSS
Raw Permalink Normal View History

2024-05-16 05:19:03 +00:00
/* Switch element */
.form-switch {
@apply relative select-none w-12 my-2;
}
.form-switch label {
@apply block overflow-hidden cursor-pointer rounded-full h-4;
}
.form-switch label>span:first-child {
@apply absolute block rounded-full w-8 h-8 right-1/2 -left-2 -top-2 transition-all duration-150 ease-out;
}
.form-switch input[type="checkbox"]:checked+label>span:first-child {
@apply bg-blue-200 border-blue-600 left-6;
}