@@ -40,9 +40,8 @@ md-input-container {
40
40
> md-icon {
41
41
position : absolute ;
42
42
top : 5px ;
43
- left : 2px ;
44
- + input {
45
- }
43
+ @include rtl (left , 2px , auto );
44
+ @include rtl (right , auto , 2px );
46
45
}
47
46
48
47
textarea ,
@@ -84,14 +83,17 @@ md-input-container {
84
83
label :not (.md-container-ignore ) {
85
84
position : absolute ;
86
85
bottom : 100% ;
87
- left : 0 ;
86
+ @include rtl (left , 0 , auto );
87
+ @include rtl (right , auto , 0 );
88
88
}
89
89
90
90
// icon offset should have higher priority as normal label
91
91
& .md-has-icon {
92
- padding-left : $icon-offset ;
92
+ @include rtl (padding-left , $icon-offset , 0 );
93
+ @include rtl (padding-right , 0 , $icon-offset );
93
94
> label {
94
- left : $icon-offset ;
95
+ @include rtl (left , $icon-offset , auto );
96
+ @include rtl (right , auto , $icon-offset );
95
97
}
96
98
}
97
99
@@ -100,7 +102,8 @@ md-input-container {
100
102
order : 1 ;
101
103
pointer-events : none ;
102
104
-webkit-font-smoothing : antialiased ;
103
- padding-left : $input-container-padding ;
105
+ @include rtl (padding-left , $input-container-padding , 0 );
106
+ @include rtl (padding-right , 0 , $input-container-padding );
104
107
z-index : 1 ;
105
108
transform : translate3d (0 , $input-label-default-offset + 4 , 0 ) scale ($input-label-default-scale );
106
109
transition : transform $swift-ease-out-timing-function 0.25s ;
@@ -165,7 +168,7 @@ md-input-container {
165
168
// Hacky fix to force vertical alignment between `input` and `textarea`
166
169
// Input and textarea do not align by default:
167
170
// http://jsbin.com/buqomevage/1/edit?html,css,js,output
168
- float : left ;
171
+ @include rtl ( float , left , right ) ;
169
172
170
173
& :focus {
171
174
outline : none ;
@@ -182,7 +185,8 @@ md-input-container {
182
185
183
186
.md-char-counter {
184
187
position : absolute ;
185
- right : $input-container-padding ;
188
+ @include rtl (right , $input-container-padding , auto );
189
+ @include rtl (left , auto , $input-container-padding );
186
190
bottom : 7px ;
187
191
}
188
192
@@ -202,12 +206,13 @@ md-input-container {
202
206
transition : $swift-ease-out ;
203
207
transition-duration : $swift-ease-out-duration / 1.5 ;
204
208
opacity : 0 ;
205
- clear : left ;
209
+ @include rtl ( clear , left , right ) ;
206
210
207
211
.md-char-counter {
208
212
position : absolute ;
209
213
top : 0 ;
210
- right : 0 ;
214
+ @include rtl (right , 0 , auto );
215
+ @include rtl (left , auto , 0 );
211
216
bottom : auto ;
212
217
}
213
218
}
@@ -228,7 +233,8 @@ md-input-container {
228
233
padding-top : $error-padding-top ;
229
234
230
235
& :not (.md-char-counter ) {
231
- padding-right : rem (5 );
236
+ @include rtl (padding-right , rem (5 ), 0 );
237
+ @include rtl (padding-left , 0 , rem (5 ));
232
238
}
233
239
234
240
& .ng-enter {
@@ -304,7 +310,8 @@ md-input-container.md-icon-float {
304
310
305
311
> md-icon {
306
312
top : 2px ;
307
- left : 2px ;
313
+ @include rtl (left , 2px , auto );
314
+ @include rtl (right , auto , 2px );
308
315
}
309
316
310
317
& .md-input-focused ,
@@ -320,11 +327,15 @@ md-input-container.md-icon-float {
320
327
321
328
md-input-container .md-icon-right {
322
329
input {
323
- margin-right : $icon-offset ;
330
+ @include rtl (margin-right , $icon-offset , 0 );
331
+ @include rtl (margin-left , 0 , $icon-offset );
324
332
+ md-icon {
325
333
top : 26px ;
326
- right : 2px ;
327
334
margin-right : 0 ;
335
+ margin-left : 0 ;
336
+
337
+ @include rtl (right , 2px , auto );
338
+ @include rtl (left , auto , 2px );
328
339
}
329
340
}
330
341
}
0 commit comments