46 lines
680 B
CSS
46 lines
680 B
CSS
|
.toggle {
|
||
|
align-items: center;
|
||
|
margin-bottom: 20px;
|
||
|
}
|
||
|
|
||
|
.button {
|
||
|
position: relative;
|
||
|
padding: 0;
|
||
|
transition: background-color 0.20s ease-out 0.1s;
|
||
|
width: 44px;
|
||
|
height: 24px;
|
||
|
border: none;
|
||
|
border-radius: 21px;
|
||
|
background-color: #6F7882;
|
||
|
cursor: pointer;
|
||
|
margin-right: 8px;
|
||
|
}
|
||
|
|
||
|
.ball {
|
||
|
transition: left 0.15s ease-out 0.1s;
|
||
|
position: absolute;
|
||
|
width: 20px;
|
||
|
height: 20px;
|
||
|
border-radius: 21px;
|
||
|
background-color: #15191E;
|
||
|
left: 2px;
|
||
|
top: 2px;
|
||
|
}
|
||
|
|
||
|
.label {
|
||
|
padding: 10px 8px;
|
||
|
line-height: 24px;
|
||
|
color: #6F7882;
|
||
|
}
|
||
|
|
||
|
.toggle.on .button {
|
||
|
background-color: #0DBD8B;
|
||
|
}
|
||
|
|
||
|
.toggle.on .ball {
|
||
|
left: 22px;
|
||
|
}
|
||
|
|
||
|
.toggle.on .label {
|
||
|
color: #ffffff;
|
||
|
}
|