|
93 | 93 | // Button Sizes |
94 | 94 | // ------------------------------------------------------------------------------- |
95 | 95 |
|
96 | | -/* Extra Small and Small Button */ |
97 | | -:host(.button-xsmall), |
98 | | -:host(.button-small) { |
99 | | - ::slotted(ion-icon[slot="start"]) { |
100 | | - @include globals.margin-horizontal(null, globals.$ion-space-100); |
101 | | - } |
102 | | - |
103 | | - ::slotted(ion-icon[slot="end"]) { |
104 | | - @include globals.margin-horizontal(globals.$ion-space-100, null); |
105 | | - } |
106 | | -} |
107 | | - |
108 | 96 | /* Extra Small Button */ |
109 | 97 | :host(.button-xsmall) { |
110 | 98 | --padding-top: #{globals.$ion-space-100}; |
|
172 | 160 | aspect-ratio: 1 / 1; |
173 | 161 | } |
174 | 162 |
|
| 163 | +// Button with Spinner |
| 164 | +// ------------------------------------------------------------------------------- |
| 165 | +::slotted(ion-spinner) { |
| 166 | + --color: currentColor; |
| 167 | +} |
| 168 | + |
| 169 | +/* Button containing only a spinner */ |
| 170 | +::slotted(ion-spinner[slot="start"]), |
| 171 | +::slotted(ion-spinner[slot="end"]), |
| 172 | +::slotted(ion-spinner[slot="icon-only"]) { |
| 173 | + width: globals.$ion-space-500; |
| 174 | + height: globals.$ion-space-500; |
| 175 | +} |
| 176 | + |
| 177 | +:host(.button-xlarge) ::slotted(ion-spinner) { |
| 178 | + width: globals.$ion-space-600; |
| 179 | + height: globals.$ion-space-600; |
| 180 | +} |
| 181 | + |
175 | 182 | // Button Shapes |
176 | 183 | // ------------------------------------------------------------------------------- |
177 | 184 |
|
|
246 | 253 | font-size: globals.$ion-font-size-500; |
247 | 254 | } |
248 | 255 |
|
249 | | -:host(.button-small) ::slotted(ion-icon[slot="start"]) { |
| 256 | +:host(.button-xsmall) ::slotted(ion-icon[slot="start"]), |
| 257 | +:host(.button-xsmall) ::slotted(ion-spinner[slot="start"]), |
| 258 | +:host(.button-small) ::slotted(ion-icon[slot="start"]), |
| 259 | +:host(.button-small) ::slotted(ion-spinner[slot="start"]) { |
250 | 260 | @include globals.margin-horizontal(null, globals.$ion-space-200); |
251 | 261 | } |
252 | 262 |
|
253 | | -::slotted(ion-icon[slot="start"]) { |
| 263 | +::slotted(ion-icon[slot="start"]), |
| 264 | +::slotted(ion-spinner[slot="start"]) { |
254 | 265 | @include globals.margin-horizontal(null, globals.$ion-space-250); |
255 | 266 | } |
256 | 267 |
|
257 | | -:host(.button-large) ::slotted(ion-icon[slot="start"]) { |
| 268 | +:host(.button-large) ::slotted(ion-icon[slot="start"]), |
| 269 | +:host(.button-large) ::slotted(ion-spinner[slot="start"]), |
| 270 | +:host(.button-xlarge) ::slotted(ion-icon[slot="start"]), |
| 271 | +:host(.button-xlarge) ::slotted(ion-spinner[slot="start"]) { |
258 | 272 | @include globals.margin-horizontal(null, globals.$ion-space-300); |
259 | 273 | } |
260 | 274 |
|
261 | | -:host(.button-small) ::slotted(ion-icon[slot="end"]) { |
| 275 | +:host(.button-xsmall) ::slotted(ion-icon[slot="end"]), |
| 276 | +:host(.button-xsmall) ::slotted(ion-spinner[slot="end"]), |
| 277 | +:host(.button-small) ::slotted(ion-icon[slot="end"]), |
| 278 | +:host(.button-small) ::slotted(ion-spinner[slot="end"]) { |
262 | 279 | @include globals.margin-horizontal(globals.$ion-space-200, null); |
263 | 280 | } |
264 | 281 |
|
265 | | -::slotted(ion-icon[slot="end"]) { |
| 282 | +::slotted(ion-icon[slot="end"]), |
| 283 | +::slotted(ion-spinner[slot="end"]) { |
266 | 284 | @include globals.margin-horizontal(globals.$ion-space-250, null); |
267 | 285 | } |
268 | 286 |
|
269 | | -:host(.button-large) ::slotted(ion-icon[slot="end"]) { |
| 287 | +:host(.button-large) ::slotted(ion-icon[slot="end"]), |
| 288 | +:host(.button-large) ::slotted(ion-spinner[slot="end"]), |
| 289 | +:host(.button-xlarge) ::slotted(ion-icon[slot="end"]), |
| 290 | +:host(.button-xlarge) ::slotted(ion-spinner[slot="end"]) { |
270 | 291 | @include globals.margin-horizontal(globals.$ion-space-300, null); |
271 | 292 | } |
0 commit comments