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

86 lines
2.2 KiB
Plaintext
Raw Normal View History

2016-03-11 00:48:53 +00:00
.slider {
position: relative;
height: 18px;
2021-04-12 18:46:28 +00:00
&.single-slider {
padding-top: 7px;
.track {
@track-height: 4px;
height: @track-height;
2022-03-05 17:04:12 +00:00
border: (@track-height / 2) solid @border-regular-control-ie;
border: (@track-height / 2) solid @border-regular-control;
border-radius: (@track-height / 2);
2021-08-18 12:41:38 +00:00
background-color: @border-regular-control-ie;
background-color: @border-regular-control;
2021-04-12 18:46:28 +00:00
width: calc(100% + @track-height);
2022-03-05 17:04:12 +00:00
margin-left: (-@track-height / 2);
2021-04-12 18:46:28 +00:00
}
.thumb {
@thumb-width: 12px;
width: @thumb-width;
height: @thumb-width;
border: @scaled-one-px-value-ie solid @icon-normal-ie;
border: @scaled-one-px-value solid @icon-normal;
background-color: @background-normal-ie;
background-color: @background-normal;
2022-03-05 17:04:12 +00:00
border-radius: (@thumb-width / 2);
2021-04-12 18:46:28 +00:00
top: 3px;
2022-03-05 17:04:12 +00:00
margin-left: (@thumb-width / -2);
2021-04-12 18:46:28 +00:00
&.active {
}
}
2021-08-03 16:58:38 +00:00
&.vertical {
height: auto;
width: 18px;
padding-top: 0;
padding-left: 7px;
.track {
position: absolute;
2021-08-03 16:58:38 +00:00
@track-height: 4px;
height: calc(100% + @track-height);
2021-08-03 16:58:38 +00:00
width: @track-height;
margin-left: 0;
2022-03-05 17:04:12 +00:00
margin-top: (-@track-height / 2);
2021-08-03 16:58:38 +00:00
}
.thumb {
@thumb-width: 12px;
top: auto;
left: 3px;
margin-left: 0;
2022-03-05 17:04:12 +00:00
margin-top: (@thumb-width / -2);
2021-08-03 16:58:38 +00:00
}
}
2021-04-12 18:46:28 +00:00
}
2016-03-11 00:48:53 +00:00
.thumb {
position: absolute;
left: 0;
margin-left: -7px;
cursor: default;
&.active {
}
}
.track {
height: 18px;
background-color: transparent;
div {
width: 7px;
height: 18px;
display: inline-block;
}
}
&.disabled {
opacity: @component-disabled-opacity;
2016-03-11 00:48:53 +00:00
}
}