@@ -9,6 +9,9 @@ $md-slider-padding: 8px !default;
99
1010$md-slider-track-thickness : 2px !default ;
1111$md-slider-thumb-size : 20px !default ;
12+ $md-slider-thumb-border-width : 3px !default ;
13+ $md-slider-thumb-border-width-active : 2px !default ;
14+ $md-slider-thumb-border-width-disabled : 4px !default ;
1215
1316$md-slider-thumb-default-scale : 0.7 !default ;
1417$md-slider-thumb-focus-scale : 1 !default ;
@@ -45,13 +48,15 @@ md-slider {
4548.md-slider-track-fill {
4649 position : absolute ;
4750 transform-origin : 0 0 ;
48- transition : transform $swift-ease-out-duration $swift-ease-out-timing-function ;
51+ transition : transform $swift-ease-out-duration $swift-ease-out-timing-function ,
52+ background-color $swift-ease-out-duration $swift-ease-out-timing-function ;
4953}
5054
5155.md-slider-track-background {
5256 position : absolute ;
5357 transform-origin : 100% 100% ;
54- transition : transform $swift-ease-out-duration $swift-ease-out-timing-function ;
58+ transition : transform $swift-ease-out-duration $swift-ease-out-timing-function ,
59+ background-color $swift-ease-out-duration $swift-ease-out-timing-function ;
5560}
5661
5762.md-slider-ticks-container {
@@ -62,6 +67,7 @@ md-slider {
6267}
6368
6469.md-slider-ticks {
70+ box-sizing : border-box ;
6571 opacity : 0 ;
6672 transition : opacity $swift-ease-out-duration $swift-ease-out-timing-function ;
6773}
@@ -76,11 +82,15 @@ md-slider {
7682 position : absolute ;
7783 right : - $md-slider-thumb-size / 2 ;
7884 bottom : - $md-slider-thumb-size / 2 ;
85+ box-sizing : border-box ;
7986 width : $md-slider-thumb-size ;
8087 height : $md-slider-thumb-size ;
88+ border : $md-slider-thumb-border-width solid transparent ;
8189 border-radius : 50% ;
8290 transform : scale ($md-slider-thumb-default-scale );
83- transition : transform $swift-ease-out-duration $swift-ease-out-timing-function ;
91+ transition : transform $swift-ease-out-duration $swift-ease-out-timing-function ,
92+ background-color $swift-ease-out-duration $swift-ease-out-timing-function ,
93+ border-color $swift-ease-out-duration $swift-ease-out-timing-function ;
8494}
8595
8696.md-slider-thumb-label {
@@ -91,16 +101,17 @@ md-slider {
91101 width : $md-slider-thumb-label-size ;
92102 height : $md-slider-thumb-label-size ;
93103 border-radius : 50% ;
94- transition : 300ms $swift-ease-in-out-timing-function ;
95- transition-property : transform , border-radius ;
104+ transition : transform $swift-ease-out-duration $swift-ease-out-timing-function ,
105+ border-radius $swift-ease-out-duration $swift-ease-out-timing-function ,
106+ background-color $swift-ease-out-duration $swift-ease-out-timing-function ;
96107}
97108
98109.md-slider-thumb-label-text {
99110 z-index : 1 ;
100111 font-size : 12px ;
101112 font-weight : bold ;
102113 opacity : 0 ;
103- transition : opacity 300 ms $swift-ease-in -out-timing-function ;
114+ transition : opacity $swift-ease-out-duration $swift-ease -out-timing-function ;
104115}
105116
106117
@@ -123,13 +134,15 @@ md-slider {
123134 position : absolute ;
124135 border : 0 solid $md-slider-tick-color ;
125136 opacity : 0 ;
126- transition : opacity 300 ms $swift-ease-in -out-timing-function ;
137+ transition : opacity $swift-ease-out-duration $swift-ease -out-timing-function ;
127138 }
128139
129140 & .md-slider-active ,
130141 & :hover {
131- .md-slider-wrapper ::after {
132- opacity : 1 ;
142+ & :not (.md-slider-hide-last-tick ) {
143+ .md-slider-wrapper ::after {
144+ opacity : 1 ;
145+ }
133146 }
134147
135148 .md-slider-ticks {
@@ -162,6 +175,7 @@ md-slider {
162175// Active slider.
163176.md-slider-active {
164177 .md-slider-thumb {
178+ border-width : $md-slider-thumb-border-width-active ;
165179 transform : scale ($md-slider-thumb-focus-scale );
166180 }
167181
@@ -182,6 +196,7 @@ md-slider {
182196// Disabled slider.
183197.md-slider-disabled {
184198 .md-slider-thumb {
199+ border-width : $md-slider-thumb-border-width-disabled ;
185200 transform : scale ($md-slider-thumb-disabled-scale );
186201 }
187202
@@ -239,6 +254,7 @@ md-slider {
239254 // (see https://bugzilla.mozilla.org/show_bug.cgi?id=1314319).
240255 background : -moz-repeating-linear-gradient (0.0001deg , $md-slider-tick-color ,
241256 $md-slider-tick-color $md-slider-tick-size , transparent 0 , transparent ) repeat ;
257+ background-clip : content-box ;
242258 height : $md-slider-track-thickness ;
243259 width : 100% ;
244260 }
@@ -252,7 +268,7 @@ md-slider {
252268 .md-slider-thumb-label {
253269 right : - $md-slider-thumb-label-size / 2 ;
254270 top : - ($md-slider-thumb-label-size + $md-slider-thumb-arrow-gap );
255- transform : translateY ($md-slider-thumb-label-size / 2 + $md-slider-thumb-arrow-gap ) scale (0.4 )
271+ transform : translateY ($md-slider-thumb-label-size / 2 + $md-slider-thumb-arrow-gap ) scale (0.01 )
256272 rotate (45deg );
257273 }
258274
@@ -312,6 +328,7 @@ md-slider {
312328 .md-slider-ticks {
313329 background : repeating-linear-gradient (to bottom , $md-slider-tick-color ,
314330 $md-slider-tick-color $md-slider-tick-size , transparent 0 , transparent ) repeat ;
331+ background-clip : content-box ;
315332 width : $md-slider-track-thickness ;
316333 height : 100% ;
317334 }
@@ -325,8 +342,8 @@ md-slider {
325342 .md-slider-thumb-label {
326343 bottom : - $md-slider-thumb-label-size / 2 ;
327344 left : - ($md-slider-thumb-label-size + $md-slider-thumb-arrow-gap );
328- transform : translateX ($md-slider-thumb-label-size / 2 + $md-slider-thumb-arrow-gap )
329- scale ( 0.4 ) rotate (-45deg );
345+ transform : translateX ($md-slider-thumb-label-size / 2 + $md-slider-thumb-arrow-gap ) scale ( 0.01 )
346+ rotate (-45deg );
330347 }
331348
332349 .md-slider-thumb-label-text {
0 commit comments