|
28 | 28 | // ----------------------------------------- |
29 | 29 |
|
30 | 30 | .searchbar-search-icon { |
31 | | - width: globals.$ion-scale-500; |
32 | | - height: globals.$ion-scale-500; |
| 31 | + width: globals.$ion-scale-400; |
| 32 | + height: globals.$ion-scale-400; |
33 | 33 | } |
34 | 34 |
|
35 | 35 | // Searchbar Input Field |
|
59 | 59 | // ----------------------------------------- |
60 | 60 |
|
61 | 61 | .searchbar-cancel-button { |
62 | | - width: globals.$ion-scale-500; |
63 | | - height: globals.$ion-scale-500; |
| 62 | + width: globals.$ion-scale-400; |
| 63 | + height: globals.$ion-scale-400; |
64 | 64 |
|
65 | 65 | background-color: transparent; |
66 | 66 |
|
67 | | - font-size: globals.$ion-font-size-500; |
| 67 | + font-size: globals.$ion-font-size-400; |
68 | 68 | } |
69 | 69 |
|
70 | 70 | // Searchbar Search & Clear Icon & Cancel Icon |
|
113 | 113 | * the size of the leading icon (search or cancel), |
114 | 114 | * and the gap between the icon and the input. |
115 | 115 | */ |
116 | | - padding-inline-start: calc(9px + globals.$ion-scale-500 + globals.$ion-space-200); |
| 116 | + padding-inline-start: calc(9px + globals.$ion-scale-400 + globals.$ion-space-200); |
117 | 117 | } |
118 | 118 |
|
119 | 119 | // Searchbar States |
|
181 | 181 | * the size of the trailing icon (clear), |
182 | 182 | * and the gap between the icon and the input. |
183 | 183 | */ |
184 | | - @include globals.padding-horizontal( |
185 | | - calc(globals.$ion-space-300 + globals.$ion-scale-500 + globals.$ion-space-200), |
186 | | - calc(globals.$ion-space-300 + globals.$ion-scale-400 + globals.$ion-space-200) |
187 | | - ); |
| 184 | + @include globals.padding-horizontal(calc(globals.$ion-space-300 + globals.$ion-scale-400 + globals.$ion-space-200)); |
188 | 185 |
|
189 | 186 | height: globals.$ion-scale-1000; |
190 | 187 | } |
|
213 | 210 | * the size of the trailing icon (clear), |
214 | 211 | * and the gap between the icon and the input. |
215 | 212 | */ |
216 | | - @include globals.padding-horizontal( |
217 | | - calc(globals.$ion-space-400 + globals.$ion-scale-500 + globals.$ion-space-200), |
218 | | - calc(globals.$ion-space-400 + globals.$ion-scale-400 + globals.$ion-space-200) |
219 | | - ); |
| 213 | + @include globals.padding-horizontal(calc(globals.$ion-space-400 + globals.$ion-scale-400 + globals.$ion-space-200)); |
220 | 214 |
|
221 | 215 | height: globals.$ion-scale-1200; |
222 | 216 | } |
|
233 | 227 | } |
234 | 228 |
|
235 | 229 | /* Large */ |
| 230 | +:host(.searchbar-size-large) .searchbar-search-icon, |
| 231 | +:host(.searchbar-size-large) .searchbar-cancel-button { |
| 232 | + width: globals.$ion-scale-500; |
| 233 | + height: globals.$ion-scale-500; |
| 234 | +} |
| 235 | + |
| 236 | +:host(.searchbar-size-large) .searchbar-cancel-button { |
| 237 | + font-size: globals.$ion-font-size-500; |
| 238 | +} |
| 239 | + |
| 240 | +:host-context(ion-toolbar).searchbar-size-large.searchbar-should-show-cancel .searchbar-input { |
| 241 | + /** |
| 242 | + * Padding start is based on |
| 243 | + * the alignment of the back button, |
| 244 | + * the size of the leading icon (search or cancel), |
| 245 | + * and the gap between the icon and the input. |
| 246 | + */ |
| 247 | + padding-inline-start: calc(9px + globals.$ion-scale-500 + globals.$ion-space-200); |
| 248 | +} |
| 249 | + |
236 | 250 | :host(.searchbar-size-large) .searchbar-input { |
237 | 251 | @include globals.padding(globals.$ion-space-400, null); |
238 | 252 |
|
|
0 commit comments