Files
lucent-laravel/front/sass/_switch.scss
T

35 lines
652 B
SCSS
Raw Normal View History

2024-08-15 18:52:53 +03:00
input.switch {
-webkit-appearance: none;
width: 34px;
height: 18px;
2024-08-17 19:23:19 +03:00
border: 1px solid var(--p40);
2024-08-15 18:52:53 +03:00
position: relative;
border-radius: 50px;
box-sizing: content-box;
cursor: pointer;
transition: background 150ms ease-in-out;
background: white;
}
input.switch::after {
top: 2px;
left: 2px;
transition: left 150ms ease-in-out;
content: " ";
width: 14px;
height: 14px;
2024-08-17 19:23:19 +03:00
background: var(--p40);
box-shadow: inset 0 0 0px 1px var(--p40);
2024-08-15 18:52:53 +03:00
position: absolute;
border-radius: 50px;
}
input.switch:checked {
2024-08-17 19:23:19 +03:00
background: var(--p50);
2024-08-15 18:52:53 +03:00
}
input.switch:checked::after {
left: calc(100% - 17px);
2024-08-17 19:23:19 +03:00
background: var(--p10);
2024-08-15 18:52:53 +03:00
}