2020-10-02 15:10:00 +00:00
|
|
|
.widget_switch {
|
|
|
|
position: relative;
|
|
|
|
margin: -1px auto;
|
|
|
|
width: 30px;
|
|
|
|
height: 17px;
|
2024-01-18 17:23:50 +00:00
|
|
|
flex: none;
|
2020-10-02 15:10:00 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.switch_slider {
|
|
|
|
position: absolute;
|
|
|
|
cursor: pointer;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
bottom: 0;
|
2023-09-21 16:57:58 +00:00
|
|
|
background-color: var(--grist-theme-switch-slider-fg, #ccc);
|
2020-10-02 15:10:00 +00:00
|
|
|
border-radius: 17px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.switch_slider:hover {
|
|
|
|
box-shadow: 0 0 1px #2196F3;
|
|
|
|
}
|
|
|
|
|
|
|
|
.switch_circle {
|
|
|
|
position: absolute;
|
|
|
|
cursor: pointer;
|
|
|
|
content: "";
|
|
|
|
height: 13px;
|
|
|
|
width: 13px;
|
|
|
|
left: 2px;
|
|
|
|
bottom: 2px;
|
2023-09-21 16:57:58 +00:00
|
|
|
background-color: var(--grist-theme-switch-circle-fg, white);
|
2020-10-02 15:10:00 +00:00
|
|
|
border-radius: 17px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.switch_on > .switch_slider {
|
2022-08-08 13:32:50 +00:00
|
|
|
background-color: var(--grist-actual-cell-color, #2CB0AF);
|
2020-10-02 15:10:00 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.switch_on > .switch_circle {
|
|
|
|
-webkit-transform: translateX(13px);
|
|
|
|
-ms-transform: translateX(13px);
|
|
|
|
transform: translateX(13px);
|
|
|
|
}
|
|
|
|
|
|
|
|
.switch_transition > .switch_slider, .switch_transition > .switch_circle {
|
|
|
|
-webkit-transition: .4s;
|
|
|
|
transition: .4s;
|
|
|
|
}
|