mirror of
https://github.com/gristlabs/grist-core.git
synced 2024-10-27 20:44:07 +00:00
0aad09a4ed
Summary: Forms improvements and following new design - New headers - New UI - New right panel options Test Plan: Tests updated Reviewers: georgegevoian, dsagal Reviewed By: georgegevoian Subscribers: dsagal, paulfitz Differential Revision: https://phab.getgrist.com/D4158
50 lines
935 B
CSS
50 lines
935 B
CSS
.widget_switch {
|
|
position: relative;
|
|
margin: -1px auto;
|
|
width: 30px;
|
|
height: 17px;
|
|
flex: none;
|
|
}
|
|
|
|
.switch_slider {
|
|
position: absolute;
|
|
cursor: pointer;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background-color: var(--grist-theme-switch-slider-fg, #ccc);
|
|
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;
|
|
background-color: var(--grist-theme-switch-circle-fg, white);
|
|
border-radius: 17px;
|
|
}
|
|
|
|
.switch_on > .switch_slider {
|
|
background-color: var(--grist-actual-cell-color, #2CB0AF);
|
|
}
|
|
|
|
.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;
|
|
}
|