2016-04-27 20:44:36 +08:00
|
|
|
@import "../../style/themes/default";
|
|
|
|
@import "../../style/mixins/index";
|
2015-07-13 07:59:38 +08:00
|
|
|
|
2016-09-14 16:18:33 +08:00
|
|
|
@slider-prefix-cls: ~"@{ant-prefix}-slider";
|
2015-07-14 12:07:04 +08:00
|
|
|
// slider color
|
2017-01-01 22:20:06 +08:00
|
|
|
@slider-disabled-color: @disabled-color;
|
2015-07-14 12:07:04 +08:00
|
|
|
// tooltip
|
2015-07-15 15:48:47 +08:00
|
|
|
@slider-tooltip-color: #fff;
|
2016-11-08 20:50:59 +08:00
|
|
|
@slider-tooltip-bg: tint(@text-color, 4%);
|
2015-07-15 15:48:47 +08:00
|
|
|
@slider-tooltip-arrow-width: 4px;
|
2017-07-17 15:44:40 +08:00
|
|
|
@slider-tooltip-distance: @slider-tooltip-arrow-width + 4px;
|
2015-07-15 15:48:47 +08:00
|
|
|
@slider-tooltip-arrow-color: @slider-tooltip-bg;
|
2015-07-13 07:59:38 +08:00
|
|
|
|
2015-08-20 16:55:42 +08:00
|
|
|
.@{slider-prefix-cls} {
|
2017-09-22 18:33:29 +08:00
|
|
|
.reset-component;
|
2015-07-13 07:59:38 +08:00
|
|
|
position: relative;
|
2016-11-18 16:21:37 +08:00
|
|
|
margin: 10px 6px;
|
2017-06-30 11:08:28 +08:00
|
|
|
padding: 4px 0;
|
2015-09-23 11:35:44 +08:00
|
|
|
height: 12px;
|
2015-08-19 12:20:03 +08:00
|
|
|
cursor: pointer;
|
2015-07-13 07:59:38 +08:00
|
|
|
|
2017-01-05 12:05:24 +08:00
|
|
|
.vertical();
|
|
|
|
|
2016-11-21 16:10:46 +08:00
|
|
|
&-with-marks {
|
|
|
|
margin-bottom: 28px;
|
|
|
|
}
|
|
|
|
|
2017-06-30 11:08:28 +08:00
|
|
|
&-rail {
|
|
|
|
position: absolute;
|
|
|
|
width: 100%;
|
|
|
|
height: 4px;
|
|
|
|
border-radius: 2px;
|
2017-09-27 22:32:49 +08:00
|
|
|
background-color: @background-color-base;
|
|
|
|
transition: background-color .3s;
|
2017-06-30 11:08:28 +08:00
|
|
|
}
|
|
|
|
|
2015-07-13 07:59:38 +08:00
|
|
|
&-track {
|
|
|
|
position: absolute;
|
|
|
|
height: 4px;
|
|
|
|
border-radius: @border-radius-base;
|
2017-10-16 19:53:46 +08:00
|
|
|
background-color: @primary-3;
|
2015-08-19 12:20:03 +08:00
|
|
|
transition: background-color 0.3s ease;
|
|
|
|
}
|
|
|
|
|
2015-07-13 07:59:38 +08:00
|
|
|
&-handle {
|
|
|
|
position: absolute;
|
|
|
|
margin-left: -7px;
|
|
|
|
margin-top: -5px;
|
|
|
|
width: 14px;
|
|
|
|
height: 14px;
|
|
|
|
cursor: pointer;
|
|
|
|
border-radius: 50%;
|
2017-10-16 19:53:46 +08:00
|
|
|
border: solid 2px @primary-3;
|
2016-11-29 11:56:10 +08:00
|
|
|
background-color: @component-background;
|
2017-10-16 19:53:46 +08:00
|
|
|
transition: border-color .3s, transform .3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
|
2015-07-13 07:59:38 +08:00
|
|
|
|
2017-10-16 19:53:46 +08:00
|
|
|
&.@{ant-prefix}-tooltip-open {
|
|
|
|
border-color: @primary-color;
|
2015-07-13 07:59:38 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-06-30 11:08:28 +08:00
|
|
|
&:hover {
|
|
|
|
.@{slider-prefix-cls}-rail {
|
|
|
|
background-color: #e1e1e1;
|
|
|
|
}
|
|
|
|
.@{slider-prefix-cls}-track {
|
2017-10-16 19:53:46 +08:00
|
|
|
background-color: @primary-4;
|
2017-06-30 11:08:28 +08:00
|
|
|
}
|
2017-10-16 19:53:46 +08:00
|
|
|
.@{slider-prefix-cls}-handle:not(.@{ant-prefix}-tooltip-open) {
|
|
|
|
border-color: @primary-4;
|
2017-06-30 11:08:28 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-07-13 07:59:38 +08:00
|
|
|
&-mark {
|
|
|
|
position: absolute;
|
2017-06-30 11:08:28 +08:00
|
|
|
top: 14px;
|
2015-08-20 16:55:42 +08:00
|
|
|
left: 0;
|
2015-07-13 07:59:38 +08:00
|
|
|
width: 100%;
|
2016-11-08 20:57:07 +08:00
|
|
|
font-size: @font-size-base;
|
2015-07-13 07:59:38 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&-mark-text {
|
|
|
|
position: absolute;
|
|
|
|
display: inline-block;
|
|
|
|
vertical-align: middle;
|
|
|
|
text-align: center;
|
|
|
|
cursor: pointer;
|
2016-11-08 20:45:56 +08:00
|
|
|
color: @text-color-secondary;
|
2015-07-13 07:59:38 +08:00
|
|
|
|
|
|
|
&-active {
|
2016-11-08 20:50:59 +08:00
|
|
|
color: @text-color;
|
2015-07-13 07:59:38 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&-step {
|
|
|
|
position: absolute;
|
|
|
|
width: 100%;
|
|
|
|
height: 4px;
|
|
|
|
background: transparent;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-dot {
|
|
|
|
position: absolute;
|
|
|
|
top: -2px;
|
|
|
|
margin-left: -4px;
|
|
|
|
width: 8px;
|
|
|
|
height: 8px;
|
2016-12-27 17:04:10 +08:00
|
|
|
border: 2px solid @border-color-split;
|
2016-11-29 11:56:10 +08:00
|
|
|
background-color: @component-background;
|
2015-07-13 07:59:38 +08:00
|
|
|
cursor: pointer;
|
|
|
|
border-radius: 50%;
|
|
|
|
vertical-align: middle;
|
|
|
|
&:first-child {
|
|
|
|
margin-left: -4px;
|
|
|
|
}
|
|
|
|
&:last-child {
|
|
|
|
margin-left: -4px;
|
|
|
|
}
|
|
|
|
&-active {
|
|
|
|
border-color: tint(@primary-color, 50%);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&-disabled {
|
2017-07-20 10:38:10 +08:00
|
|
|
cursor: not-allowed;
|
2015-07-13 07:59:38 +08:00
|
|
|
|
2015-08-20 16:55:42 +08:00
|
|
|
.@{slider-prefix-cls}-track {
|
2015-08-19 12:20:03 +08:00
|
|
|
background-color: @slider-disabled-color !important;
|
2015-07-13 07:59:38 +08:00
|
|
|
}
|
|
|
|
|
2015-11-26 19:32:55 +08:00
|
|
|
.@{slider-prefix-cls}-handle,
|
|
|
|
.@{slider-prefix-cls}-dot {
|
2017-08-04 17:58:32 +08:00
|
|
|
border-color: @slider-disabled-color !important;
|
2016-11-29 11:56:10 +08:00
|
|
|
background-color: @component-background;
|
2015-07-13 07:59:38 +08:00
|
|
|
cursor: not-allowed;
|
2016-12-03 15:31:10 +08:00
|
|
|
box-shadow: none;
|
2015-07-13 07:59:38 +08:00
|
|
|
}
|
|
|
|
|
2015-11-26 19:32:55 +08:00
|
|
|
.@{slider-prefix-cls}-mark-text,
|
|
|
|
.@{slider-prefix-cls}-dot {
|
2017-08-04 17:58:32 +08:00
|
|
|
cursor: not-allowed !important;
|
2015-07-13 07:59:38 +08:00
|
|
|
}
|
|
|
|
}
|
2015-08-19 12:20:03 +08:00
|
|
|
}
|
2017-01-05 12:05:24 +08:00
|
|
|
|
|
|
|
.vertical() {
|
|
|
|
&-vertical {
|
|
|
|
width: 12px;
|
|
|
|
height: 100%;
|
|
|
|
margin: 6px 10px;
|
2017-06-30 11:08:28 +08:00
|
|
|
padding: 0 4px;
|
|
|
|
|
|
|
|
.@{slider-prefix-cls}-rail {
|
|
|
|
height: 100%;
|
|
|
|
width: 4px;
|
|
|
|
}
|
2017-01-05 12:05:24 +08:00
|
|
|
|
|
|
|
.@{slider-prefix-cls}-track {
|
|
|
|
width: 4px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.@{slider-prefix-cls}-handle {
|
|
|
|
margin-left: -5px;
|
|
|
|
margin-bottom: -7px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.@{slider-prefix-cls}-mark {
|
|
|
|
top: 0;
|
2017-06-30 11:08:28 +08:00
|
|
|
left: 12px;
|
2017-01-05 12:05:24 +08:00
|
|
|
width: 18px;
|
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.@{slider-prefix-cls}-mark-text {
|
|
|
|
left: 4px;
|
|
|
|
white-space: nowrap;
|
|
|
|
}
|
|
|
|
|
|
|
|
.@{slider-prefix-cls}-step {
|
|
|
|
width: 4px;
|
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.@{slider-prefix-cls}-dot {
|
|
|
|
top: auto;
|
|
|
|
left: 2px;
|
|
|
|
margin-bottom: -4px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|