File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -11,8 +11,7 @@ $md-input-underline-disabled-background-image:
11
11
// Applies a floating placeholder above the input itself.
12
12
@mixin md-input-placeholder-floating {
13
13
display : block ;
14
- padding-bottom : 5px ;
15
- transform : translateY (-100% ) scale ($md-input-floating-placeholder-scale-factor );
14
+ transform : translateY (-1.35em ) scale ($md-input-floating-placeholder-scale-factor );
16
15
width : 100% / $md-input-floating-placeholder-scale-factor ;
17
16
}
18
17
@@ -33,7 +32,9 @@ md-input, md-textarea {
33
32
// Global wrapper. We need to apply margin to the element for spacing, but
34
33
// cannot apply it to the host element directly.
35
34
.md-input-wrapper {
36
- margin : 16px 0 ;
35
+ margin : 1em 0 ;
36
+ // Account for the underline which has 4px of margin + 2px of border.
37
+ padding-bottom : 6px ;
37
38
}
38
39
39
40
// We use a table layout to baseline align the prefix and suffix classes.
@@ -184,7 +185,7 @@ md-input, md-textarea {
184
185
display : block ;
185
186
position : absolute ;
186
187
font-size : 75% ;
187
- bottom : -0.5 em ;
188
+ bottom : 0 ;
188
189
189
190
& .md-right {
190
191
right : 0 ;
You can’t perform that action at this time.
0 commit comments