web-apps/apps/common/main/resources/less/switcher.less

53 lines
1.1 KiB
Plaintext

.switcher {
position: relative;
width: 25px;
height: 15px;
background-color: transparent;
cursor: pointer;
.sw-left {
display: inline-block;
height: 100%;
background-color: @primary;
border-top-left-radius: 2px;
border-bottom-left-radius: 2px;
}
.sw-right {
display: inline-block;
height: 100%;
background-color: @border-regular-control;
border-top-right-radius: 2px;
border-bottom-right-radius: 2px;
}
.thumb {
position: absolute;
left: 0;
right: auto;
top: 0;
height: 100%;
background-color: #ffffff;
border: 1px solid @primary;
border-radius: 3px;
}
&.on {
.thumb {
right: 0;
left: auto;
}
}
&.disabled {
cursor: default;
.sw-left {
background-color: @border-regular-control;
}
.thumb {
border-color: @border-regular-control;
}
}
}