mirror of
https://github.com/vector-im/element-call.git
synced 2024-11-24 00:38:31 +08:00
47 lines
680 B
CSS
47 lines
680 B
CSS
.toggle {
|
|
align-items: center;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.button {
|
|
position: relative;
|
|
padding: 0;
|
|
transition: background-color 0.2s 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;
|
|
}
|