2
2
@import ' mixins' ;
3
3
@import ' variables' ;
4
4
5
+ $md-input-floating-placeholder-scale-factor : 0.75 !default ;
5
6
6
7
// Placeholder colors. Required is used for the `*` star shown in the placeholder.
7
8
$md-input-placeholder-color : md-color ($md-foreground , hint-text );
@@ -33,7 +34,8 @@ $md-input-underline-disabled-background-image: linear-gradient(to right,
33
34
@mixin md-input-placeholder-floating {
34
35
display : block ;
35
36
padding-bottom : 5px ;
36
- transform : translateY (-100% ) scale (0.75 );
37
+ transform : translateY (-100% ) scale ($md-input-floating-placeholder-scale-factor );
38
+ width : 100% / $md-input-floating-placeholder-scale-factor ;
37
39
38
40
.md-placeholder-required {
39
41
color : $md-input-required-placeholder-color ;
@@ -44,6 +46,7 @@ $md-input-underline-disabled-background-image: linear-gradient(to right,
44
46
display : inline-block ;
45
47
position : relative ;
46
48
font-family : $md-font-family ;
49
+ overflow : hidden ;
47
50
48
51
// To avoid problems with text-align.
49
52
text-align : left ;
@@ -119,7 +122,8 @@ $md-input-underline-disabled-background-image: linear-gradient(to right,
119
122
transform-origin : bottom left ;
120
123
transition : transform $swift-ease-out-duration $swift-ease-out-timing-function ,
121
124
scale $swift-ease-out-duration $swift-ease-out-timing-function ,
122
- color $swift-ease-out-duration $swift-ease-out-timing-function ;
125
+ color $swift-ease-out-duration $swift-ease-out-timing-function ,
126
+ width $swift-ease-out-duration $swift-ease-out-timing-function ;
123
127
124
128
& .md-empty {
125
129
display : block ;
0 commit comments