openreplay/frontend/app/components/ui/Toggler/toggler.module.css
Shekar Siri 2ed5cac986
Webpack upgrade and dependency cleanup (#523)
* change(ui) - webpack update
* change(ui) - api optimize and other fixes
2022-06-03 16:47:38 +02:00

61 lines
1 KiB
CSS

.switch {
position: relative;
display: inline-block;
width: 35px;
height: 16px;
}
.label {
display: flex;
align-items: center;
cursor: pointer;
& span {
padding-left: 10px;
color: $gray-medium;
}
}
.switch input {
display:none;
}
.slider {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: #ccc !important; /* postss reset is bad */
transition: .4s;
border-radius: 34px !important;
}
.slider:before {
position: absolute;
content: "";
height: 20px;
width: 20px;
left: 0;
bottom: -2px;
transition: .4s;
border-radius: 50%;
background: inherit;
box-shadow: 0px 2px 1px -1px rgba(0, 0, 0, 0.2), 0px 1px 1px rgba(0, 0, 0, 0.14), 0px 1px 3px rgba(0, 0, 0, 0.12);
}
.slider.checked {
/* background-color: $teal !important; */
background-color: #b2bcff !important;
}
.slider.checked:before {
border: solid 1px $teal;
background-color: $teal !important;
transform: translateX(15px);
}
.slider.checked:before {
/* transform: translateX(15px); */
}