@@ -23,7 +23,7 @@ rzslider {
2323
2424 & [disabled ] {
2525 cursor : not-allowed ;
26- span .rz-pointer {
26+ .rz-pointer {
2727 cursor : not-allowed ;
2828 background-color : @handleDisabledColor ;
2929 }
@@ -33,80 +33,80 @@ rzslider {
3333 white-space : nowrap ;
3434 position : absolute ;
3535 display : inline-block ;
36+ }
3637
37- & .rz-base {
38- width : 100% ;
39- height : 100% ;
40- padding : 0 ;
41- }
38+ .rz-base {
39+ width : 100% ;
40+ height : 100% ;
41+ padding : 0 ;
42+ }
4243
43- & .rz-bar-wrapper {
44- left : 0 ;
45- box-sizing : border-box ;
46- margin-top : - @handleSize / 2 ;
47- padding-top : @handleSize / 2 ;
48- width : 100% ;
49- height : @handleSize ;
50- z-index : 1 ;
51- }
44+ .rz-bar-wrapper {
45+ left : 0 ;
46+ box-sizing : border-box ;
47+ margin-top : - @handleSize / 2 ;
48+ padding-top : @handleSize / 2 ;
49+ width : 100% ;
50+ height : @handleSize ;
51+ z-index : 1 ;
52+ }
5253
53- & .rz-bar {
54- left : 0 ;
55- width : 100% ;
56- height : @barHeight ;
57- z-index : 1 ;
58- background : @barNormalColor ;
59- .rounded (@barHeight / 2 );
54+ .rz-bar {
55+ left : 0 ;
56+ width : 100% ;
57+ height : @barHeight ;
58+ z-index : 1 ;
59+ background : @barNormalColor ;
60+ .rounded (@barHeight / 2 );
6061
61- & .rz-selection {
62- z-index : 2 ;
63- background : @barFillColor ;
64- .rounded (@barHeight / 2 );
65- }
62+ & .rz-selection {
63+ z-index : 2 ;
64+ background : @barFillColor ;
65+ .rounded (@barHeight / 2 );
6666 }
67+ }
6768
68- & .rz-pointer {
69- cursor : pointer ;
70- width : @handleSize ;
71- height : @handleSize ;
72- top : - @handleSize / 2 + @barHeight / 2 ;
73- background-color : @handleBgColor ;
74- z-index : 3 ;
75- .rounded (@handleSize / 2 );
76- // -webkit-transition:all linear 0.15s;
77- // -moz-transition:all linear 0.15s;
78- // -o-transition:all linear 0.15s;
79- // transition:all linear 0.15s;
69+ .rz-pointer {
70+ cursor : pointer ;
71+ width : @handleSize ;
72+ height : @handleSize ;
73+ top : - @handleSize / 2 + @barHeight / 2 ;
74+ background-color : @handleBgColor ;
75+ z-index : 3 ;
76+ .rounded (@handleSize / 2 );
77+ // -webkit-transition:all linear 0.15s;
78+ // -moz-transition:all linear 0.15s;
79+ // -o-transition:all linear 0.15s;
80+ // transition:all linear 0.15s;
8081
81- & :after {
82- content : ' ' ;
83- width : @handlePointerSize ;
84- height : @handlePointerSize ;
85- position : absolute ;
86- top : @handleSize / 2 - @handlePointerSize / 2 ;
87- left : @handleSize / 2 - @handlePointerSize / 2 ;
88- .rounded (@handlePointerSize / 2 );
89- background : @handleInnerColor ;
90- }
91- & :hover :after {
92- background-color : @handleHoverColor ;
93- }
94- & .rz-active :after {
95- background-color : @handleActiveColor ;
96- }
82+ & :after {
83+ content : ' ' ;
84+ width : @handlePointerSize ;
85+ height : @handlePointerSize ;
86+ position : absolute ;
87+ top : @handleSize / 2 - @handlePointerSize / 2 ;
88+ left : @handleSize / 2 - @handlePointerSize / 2 ;
89+ .rounded (@handlePointerSize / 2 );
90+ background : @handleInnerColor ;
91+ }
92+ & :hover :after {
93+ background-color : @handleHoverColor ;
9794 }
95+ & .rz-active :after {
96+ background-color : @handleActiveColor ;
97+ }
98+ }
9899
99- & .rz-bubble {
100- cursor : default ;
101- bottom : @handleSize / 2 ;
102- padding : @bubblePadding ;
103- color : @labelTextColor ;
104- & .rz-selection {
105- top : @handleSize / 2 ;
106- }
107- & .rz-limit {
108- color : @limitLabelTextColor ;
109- }
100+ .rz-bubble {
101+ cursor : default ;
102+ bottom : @handleSize / 2 ;
103+ padding : @bubblePadding ;
104+ color : @labelTextColor ;
105+ & .rz-selection {
106+ top : @handleSize / 2 ;
107+ }
108+ & .rz-limit {
109+ color : @limitLabelTextColor ;
110110 }
111111 }
112112
0 commit comments