2727
2828.icon-holder ,
2929.clear-btn {
30- width : 14px ;
31- height : 14px ;
3230 position : absolute ;
3331 right : 0 ;
34- top : 50% ;
35- margin : -7px 8px 0 0 ;
3632
3733 mm-icon {
38- color : $color-A18 ;
34+ color : $color-A18 !important ;
3935 }
4036}
4137
4743.text-input {
4844 box-sizing : border-box ;
4945 height : 29px !important ;
50- line-height : 2.231em !important ; // line-height equal to height, in em (don't remember the specifics around this choice but there was a case for this)
51- padding : 0 10px ;
5246}
5347
5448// layout modes for input
122116 .text-input {
123117 height : 46px !important ;
124118 font-size : 15px !important ;
125- line-height : 2.875em !important ;
126- padding : 0 15px ;
119+ line-height : 46px !important ;
120+ padding : 0 15px !important ;
121+
122+ & ::placeholder {
123+ font-size : 15px !important ;
124+ line-height : 46px !important ;
125+ }
126+ }
127+ }
128+
129+ :host ([size = ' large' ][search ]),
130+ :host ([size = ' large' ][clear ]),
131+ :host ([size = ' normal' ][icon ]){
132+ .text-input {
133+ padding : 0 30px 0 15px !important ;
134+ }
135+
136+ .icon-holder ,
137+ .clear-btn {
138+ width : 16px ;
139+ height : 16px ;
140+ top : 15px ;
141+ right : 10px ;
127142 }
128143}
129144
130145:host ([size = ' normal' ]){
131146 .text-input {
132147 height : 29px !important ;
133148 font-size : 13px !important ;
134- line-height : 2.231em !important ;
135- padding : 0 10px ;
149+ line-height : 29px !important ;
150+ padding : 0 10px !important ;
151+
152+ & ::placeholder {
153+ font-size : 13px !important ;
154+ line-height : 29px !important ;
155+ }
156+ }
157+ }
158+
159+ :host ([size = ' normal' ][search ]),
160+ :host ([size = ' normal' ][clear ]),
161+ :host ([size = ' normal' ][icon ]){
162+ .text-input {
163+ padding : 0 25px 0 10px !important ;
164+ }
165+
166+ .icon-holder ,
167+ .clear-btn {
168+ width : 14px ;
169+ height : 14px ;
170+ top : 7.5px ;
171+ right : 8px ;
136172 }
137173}
138174
139175:host ([size = ' small' ]){
140176 .text-input {
141- height : 20 px !important ;
177+ height : 26 px !important ;
142178 font-size : 11px !important ;
143- line-height : 1.250em !important ;
144- padding : 0 7px ;
179+ line-height : 26px !important ;
180+ padding : 0 8px !important ;
181+
182+ & ::placeholder {
183+ font-size : 11px !important ;
184+ line-height : 26px !important ;
185+ }
186+ }
187+ }
188+
189+ :host ([size = ' small' ][search ]),
190+ :host ([size = ' small' ][clear ]),
191+ :host ([size = ' normal' ][icon ]){
192+ .text-input {
193+ padding : 0 22px 0 8px !important ;
194+ }
195+
196+ .icon-holder ,
197+ .clear-btn {
198+ width : 11px ;
199+ height : 11px ;
200+ top : 7.5px ;
201+ right : 8px ;
145202 }
146203}
0 commit comments