element-call/src/input/Toggle.module.css

47 lines
747 B
CSS
Raw Normal View History

2022-04-28 17:44:50 -07:00
.toggle {
align-items: center;
margin-bottom: 20px;
}
.button {
position: relative;
padding: 0;
2022-05-04 11:24:25 +01:00
transition: background-color 0.2s ease-out 0.1s;
2022-04-28 17:44:50 -07:00
width: 44px;
height: 24px;
border: none;
border-radius: 21px;
2022-06-01 11:48:17 -04:00
background-color: var(--quaternary-content);
2022-04-28 17:44:50 -07:00
cursor: pointer;
margin-right: 8px;
}
.ball {
transition: left 0.15s ease-out 0.1s;
position: absolute;
width: 20px;
height: 20px;
border-radius: 21px;
2022-06-01 11:48:17 -04:00
background-color: var(--background);
2022-04-28 17:44:50 -07:00
left: 2px;
top: 2px;
}
.label {
padding: 10px 8px;
line-height: 24px;
2022-06-01 11:48:17 -04:00
color: var(--quaternary-content);
2022-04-28 17:44:50 -07:00
}
.toggle.on .button {
2022-06-01 11:48:17 -04:00
background-color: var(--accent);
2022-04-28 17:44:50 -07:00
}
.toggle.on .ball {
left: 22px;
}
.toggle.on .label {
2022-06-01 11:48:17 -04:00
color: var(--primary-content);
2022-05-04 11:24:25 +01:00
}