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-04-27 20:44:36 +08:00
|
|
|
@slider-prefix-cls: ant-slider;
|
2015-07-14 12:07:04 +08:00
|
|
|
// slider color
|
2015-07-15 15:48:47 +08:00
|
|
|
@slider-disabled-color: #ccc;
|
2015-07-14 12:07:04 +08:00
|
|
|
// tooltip
|
2015-07-15 15:48:47 +08:00
|
|
|
@slider-tooltip-color: #fff;
|
|
|
|
@slider-tooltip-bg: tint(#666, 4%);
|
|
|
|
@slider-tooltip-arrow-width: 4px;
|
2015-08-20 16:55:42 +08:00
|
|
|
@slider-tooltip-distance: @slider-tooltip-arrow-width + 4;
|
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} {
|
2015-07-13 07:59:38 +08:00
|
|
|
position: relative;
|
2015-12-16 17:39:10 +08:00
|
|
|
margin: 10px 8px;
|
2015-09-23 11:35:44 +08:00
|
|
|
height: 12px;
|
|
|
|
border-radius: 5px;
|
2015-07-13 07:59:38 +08:00
|
|
|
background-color: #e9e9e9;
|
2015-08-19 12:20:03 +08:00
|
|
|
cursor: pointer;
|
2015-09-23 11:35:44 +08:00
|
|
|
border-top: 4px solid #fff;
|
|
|
|
border-bottom: 4px solid #fff;
|
2015-08-19 12:20:03 +08:00
|
|
|
transition: background-color 0.3s ease;
|
2015-07-13 07:59:38 +08:00
|
|
|
|
|
|
|
&-track {
|
|
|
|
position: absolute;
|
|
|
|
left: 0;
|
|
|
|
height: 4px;
|
|
|
|
border-radius: @border-radius-base;
|
|
|
|
background-color: tint(@primary-color, 60%);
|
|
|
|
z-index: 1;
|
2015-08-19 12:20:03 +08:00
|
|
|
transition: background-color 0.3s ease;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background-color: #e1e1e1;
|
2015-09-23 11:35:44 +08:00
|
|
|
.@{slider-prefix-cls}-handle {
|
|
|
|
border-color: tint(@primary-color, 20%);
|
|
|
|
}
|
2015-08-19 12:20:03 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&:hover &-track {
|
|
|
|
background-color: tint(@primary-color, 40%);
|
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%;
|
|
|
|
border: solid 2px tint(@primary-color, 50%);
|
|
|
|
background-color: #fff;
|
|
|
|
z-index: 2;
|
2015-08-19 12:20:03 +08:00
|
|
|
transition: border-color 0.3s ease;
|
2015-07-13 07:59:38 +08:00
|
|
|
|
|
|
|
&:hover {
|
|
|
|
border-color: tint(@primary-color, 20%);
|
|
|
|
}
|
2015-08-19 12:20:03 +08:00
|
|
|
|
2016-04-25 15:26:09 +08:00
|
|
|
&:active {
|
|
|
|
box-shadow: 0 0 0 2px fadeout(@primary-color, 80%);
|
2015-07-13 07:59:38 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&-mark {
|
|
|
|
position: absolute;
|
2015-07-14 12:07:04 +08:00
|
|
|
top: 10px;
|
2015-08-20 16:55:42 +08:00
|
|
|
left: 0;
|
2015-07-13 07:59:38 +08:00
|
|
|
width: 100%;
|
|
|
|
font-size: 12px;
|
|
|
|
z-index: 3;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-mark-text {
|
|
|
|
position: absolute;
|
|
|
|
display: inline-block;
|
|
|
|
vertical-align: middle;
|
|
|
|
text-align: center;
|
|
|
|
cursor: pointer;
|
|
|
|
color: #999;
|
|
|
|
|
|
|
|
&-active {
|
|
|
|
color: #666;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&-step {
|
|
|
|
position: absolute;
|
|
|
|
width: 100%;
|
|
|
|
height: 4px;
|
|
|
|
background: transparent;
|
|
|
|
z-index: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-dot {
|
|
|
|
position: absolute;
|
|
|
|
top: -2px;
|
|
|
|
margin-left: -4px;
|
|
|
|
width: 8px;
|
|
|
|
height: 8px;
|
|
|
|
border: 2px solid #e9e9e9;
|
|
|
|
background-color: #fff;
|
|
|
|
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 {
|
2015-08-19 12:20:03 +08:00
|
|
|
background-color: #e9e9e9 !important;
|
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 {
|
2015-10-20 19:39:43 +08:00
|
|
|
border-color: @slider-disabled-color!important;
|
2015-07-13 07:59:38 +08:00
|
|
|
background-color: #fff;
|
|
|
|
cursor: not-allowed;
|
|
|
|
}
|
|
|
|
|
2015-11-26 19:32:55 +08:00
|
|
|
.@{slider-prefix-cls}-mark-text,
|
|
|
|
.@{slider-prefix-cls}-dot {
|
2015-07-13 07:59:38 +08:00
|
|
|
cursor: not-allowed!important;
|
|
|
|
}
|
|
|
|
}
|
2015-07-14 12:07:04 +08:00
|
|
|
|
|
|
|
// slider tooltip style
|
|
|
|
&-tooltip {
|
|
|
|
position: absolute;
|
|
|
|
left: -9999px;
|
|
|
|
top: -9999px;
|
|
|
|
z-index: 4;
|
|
|
|
visibility: visible;
|
|
|
|
|
|
|
|
&-hidden {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2015-08-19 12:20:03 +08:00
|
|
|
&-placement-points-bc-tc {
|
2015-07-15 15:48:47 +08:00
|
|
|
padding: @slider-tooltip-arrow-width 0 @slider-tooltip-distance 0;
|
2015-07-14 12:07:04 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&-inner {
|
2015-09-16 20:51:01 +08:00
|
|
|
padding: 6px;
|
2015-09-11 12:18:54 +08:00
|
|
|
min-width: 24px;
|
2015-07-14 12:07:04 +08:00
|
|
|
height: 24px;
|
|
|
|
font-size: @font-size-base;
|
|
|
|
line-height: 1;
|
2015-07-15 15:48:47 +08:00
|
|
|
color: @slider-tooltip-color;
|
2015-07-14 12:07:04 +08:00
|
|
|
text-align: center;
|
|
|
|
text-decoration: none;
|
2015-07-15 15:48:47 +08:00
|
|
|
background-color: @slider-tooltip-bg;
|
2015-07-14 12:07:04 +08:00
|
|
|
border-radius: @border-radius-base;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-arrow {
|
|
|
|
position: absolute;
|
|
|
|
width: 0;
|
|
|
|
height: 0;
|
|
|
|
border-color: transparent;
|
|
|
|
border-style: solid;
|
|
|
|
}
|
|
|
|
|
2015-08-08 00:49:48 +08:00
|
|
|
&-placement-points-bc-tc &-arrow {
|
2015-07-15 15:48:47 +08:00
|
|
|
bottom: @slider-tooltip-distance - @slider-tooltip-arrow-width;
|
2015-07-14 12:07:04 +08:00
|
|
|
left: 50%;
|
2015-07-15 15:48:47 +08:00
|
|
|
margin-left: -@slider-tooltip-arrow-width;
|
|
|
|
border-width: @slider-tooltip-arrow-width @slider-tooltip-arrow-width 0;
|
|
|
|
border-top-color: @slider-tooltip-arrow-color;
|
2015-07-14 12:07:04 +08:00
|
|
|
}
|
|
|
|
}
|
2015-08-19 12:20:03 +08:00
|
|
|
}
|