-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Expand file tree
/
Copy pathchip.scss
More file actions
525 lines (454 loc) · 24.3 KB
/
chip.scss
File metadata and controls
525 lines (454 loc) · 24.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
@use "../../themes/mixins" as mixins;
// Chip: Common Styles
// --------------------------------------------------
:host {
/**
* @prop --ion-chip-margin-top: Top margin of the chip
* @prop --ion-chip-margin-end: Right margin if direction is left-to-right, and left margin if direction is right-to-left of the chip
* @prop --ion-chip-margin-bottom: Bottom margin of the chip
* @prop --ion-chip-margin-start: Left margin if direction is left-to-right, and right margin if direction is right-to-left of the chip
*
* @prop --ion-chip-padding-top: Top padding of the chip
* @prop --ion-chip-padding-end: Right padding if direction is left-to-right, and left padding if direction is right-to-left of the chip
* @prop --ion-chip-padding-bottom: Bottom padding of the chip
* @prop --ion-chip-padding-start: Left padding if direction is left-to-right, and right padding if direction is right-to-left of the chip
*
* @prop --ion-chip-font-weight: Font weight of the chip
* @prop --ion-chip-letter-spacing: Letter spacing of the chip
* @prop --ion-chip-line-height: Line height of the chip
* @prop --ion-chip-gap: Gap between slotted elements in the chip
*
* Sizes
* @prop --ion-chip-size-small-min-height: Minimum height of the `small` chip size
* @prop --ion-chip-size-small-font-size: Font size of the `small` chip size
* @prop --ion-chip-size-large-min-height: Minimum height of the `large` chip size
* @prop --ion-chip-size-large-font-size: Font size of the `large` chip size
*
* Shapes
* @prop --ion-chip-shape-soft-border-radius: Border radius of the `soft` chip shape
* @prop --ion-chip-shape-round-border-radius: Border radius of the `round` chip shape
* @prop --ion-chip-shape-rectangular-border-radius: Border radius of the `rectangular` chip shape
*
* Bold Solid
* @prop --ion-chip-hue-bold-solid-default-color: Color of the `bold` hue and `solid` fill combination in the default state
* @prop --ion-chip-hue-bold-solid-default-background: Background color of the `bold` hue and `solid` fill combination in the default state
* @prop --ion-chip-hue-bold-solid-activated-background: Background color of the `bold` hue and `solid` fill combination in the activated state
* @prop --ion-chip-hue-bold-solid-focus-background: Background color of the `bold` hue and `solid` fill combination in the focus state
* @prop --ion-chip-hue-bold-solid-hover-background: Background color of the `bold` hue and `solid` fill combination in the hover state
* @prop --ion-chip-hue-bold-solid-semantic-default-color: Color of the `bold` hue and `solid` fill combination when a semantic color is applied
* @prop --ion-chip-hue-bold-solid-semantic-default-background: Background color of the `bold` hue and `solid` fill combination when a semantic color is applied
* @prop --ion-chip-hue-bold-solid-semantic-activated-background: Background color of the `bold` hue and `solid` fill combination when a semantic color is applied and in the activated state
* @prop --ion-chip-hue-bold-solid-semantic-focus-background: Background color of the `bold` hue and `solid` fill combination when a semantic color is applied and in the focus state
* @prop --ion-chip-hue-bold-solid-semantic-hover-background: Background color of the `bold` hue and `solid` fill combination when a semantic color is applied and in the hover state
*
* Bold Outline
* @prop --ion-chip-hue-bold-outline-default-color: Color of the `bold` hue and `outline` fill combination in the default state
* @prop --ion-chip-hue-bold-outline-default-background: Background color of the `bold` hue and `outline` fill combination in the default state
* @prop --ion-chip-hue-bold-outline-activated-background: Background color of the `bold` hue and `outline` fill combination in the activated state
* @prop --ion-chip-hue-bold-outline-focus-background: Background color of the `bold` hue and `outline` fill combination in the focus state
* @prop --ion-chip-hue-bold-outline-hover-background: Background color of the `bold` hue and `outline` fill combination in the hover state
* @prop --ion-chip-hue-bold-outline-default-border-width: Border width of the `bold` hue and `outline` fill combination in the default state
* @prop --ion-chip-hue-bold-outline-default-border-style: Border style of the `bold` hue and `outline` fill combination in the default state
* @prop --ion-chip-hue-bold-outline-default-border-color: Border color of the `bold` hue and `outline` fill combination in the default state
* @prop --ion-chip-hue-bold-outline-semantic-default-color: Color of the `bold` hue and `outline` fill combination when a semantic color is applied
* @prop --ion-chip-hue-bold-outline-semantic-default-background: Background color of the `bold` hue and `outline` fill combination when a semantic color is applied
* @prop --ion-chip-hue-bold-outline-semantic-activated-background: Background color of the `bold` hue and `outline` fill combination when a semantic color is applied and in the activated state
* @prop --ion-chip-hue-bold-outline-semantic-focus-background: Background color of the `bold` hue and `outline` fill combination when a semantic color is applied and in the focus state
* @prop --ion-chip-hue-bold-outline-semantic-hover-background: Background color of the `bold` hue and `outline` fill combination when a semantic color is applied and in the hover state
* @prop --ion-chip-hue-bold-outline-semantic-default-border-width: Border width of the `bold` hue and `outline` fill combination when a semantic color is applied
* @prop --ion-chip-hue-bold-outline-semantic-default-border-style: Border style of the `bold` hue and `outline` fill combination when a semantic color is applied
* @prop --ion-chip-hue-bold-outline-semantic-default-border-color: Border color of the `bold` hue and `outline` fill combination when a semantic color is applied
*
* Subtle Solid
* @prop --ion-chip-hue-subtle-solid-default-color: Color of the `subtle` hue and `solid` fill combination in the default state
* @prop --ion-chip-hue-subtle-solid-default-background: Background color of the `subtle` hue and `solid` fill combination in the default state
* @prop --ion-chip-hue-subtle-solid-activated-background: Background color of the `subtle` hue and `solid` fill combination in the activated state
* @prop --ion-chip-hue-subtle-solid-focus-background: Background color of the `subtle` hue and `solid` fill combination in the focus state
* @prop --ion-chip-hue-subtle-solid-hover-background: Background color of the `subtle` hue and `solid` fill combination in the hover state
* @prop --ion-chip-hue-subtle-solid-semantic-default-color: Color of the `subtle` hue and `solid` fill combination when a semantic color is applied
* @prop --ion-chip-hue-subtle-solid-semantic-default-background: Background color of the `subtle` hue and `solid` fill combination when a semantic color is applied
* @prop --ion-chip-hue-subtle-solid-semantic-activated-background: Background color of the `subtle` hue and `solid` fill combination when a semantic color is applied and in the activated state
* @prop --ion-chip-hue-subtle-solid-semantic-focus-background: Background color of the `subtle` hue and `solid` fill combination when a semantic color is applied and in the focus state
* @prop --ion-chip-hue-subtle-solid-semantic-hover-background: Background color of the `subtle` hue and `solid` fill combination when a semantic color is applied and in the hover state
*
* Subtle Outline
* @prop --ion-chip-hue-subtle-outline-default-color: Color of the `subtle` hue and `outline` fill combination in the default state
* @prop --ion-chip-hue-subtle-outline-default-background: Background color of the `subtle` hue and `outline` fill combination in the default state
* @prop --ion-chip-hue-subtle-outline-activated-background: Background color of the `subtle` hue and `outline` fill combination in the activated state
* @prop --ion-chip-hue-subtle-outline-focus-background: Background color of the `subtle` hue and `outline` fill combination in the focus state
* @prop --ion-chip-hue-subtle-outline-hover-background: Background color of the `subtle` hue and `outline` fill combination in the hover state
* @prop --ion-chip-hue-subtle-outline-default-border-width: Border width of the `subtle` hue and `outline` fill combination in the default state
* @prop --ion-chip-hue-subtle-outline-default-border-style: Border style of the `subtle` hue and `outline` fill combination in the default state
* @prop --ion-chip-hue-subtle-outline-default-border-color: Border color of the `subtle` hue and `outline` fill combination in the default state
* @prop --ion-chip-hue-subtle-outline-semantic-default-color: Color of the `subtle` hue and `outline` fill combination when a semantic color is applied
* @prop --ion-chip-hue-subtle-outline-semantic-default-background: Background color of the `subtle` hue and `outline` fill combination when a semantic color is applied
* @prop --ion-chip-hue-subtle-outline-semantic-activated-background: Background color of the `subtle` hue and `outline` fill combination when a semantic color is applied and in the activated state
* @prop --ion-chip-hue-subtle-outline-semantic-focus-background: Background color of the `subtle` hue and `outline` fill combination when a semantic color is applied and in the focus state
* @prop --ion-chip-hue-subtle-outline-semantic-hover-background: Background color of the `subtle` hue and `outline` fill combination when a semantic color is applied and in the hover state
* @prop --ion-chip-hue-subtle-outline-semantic-default-border-width: Border width of the `subtle` hue and `outline` fill combination when a semantic color is applied
* @prop --ion-chip-hue-subtle-outline-semantic-default-border-style: Border style of the `subtle` hue and `outline` fill combination when a semantic color is applied
* @prop --ion-chip-hue-subtle-outline-semantic-default-border-color: Border color of the `subtle` hue and `outline` fill combination when a semantic color is applied
*
* States
* @prop --ion-chip-state-focus-ring-color: Color of the focus ring
* @prop --ion-chip-state-focus-ring-style: Style of the focus ring
* @prop --ion-chip-state-focus-ring-width: Width of the focus ring
* @prop --ion-chip-state-disabled-opacity: Opacity of the chip when it is disabled
*
* Slotted Icon
* @prop --ion-chip-icon-color: Color of the slotted `ion-icon`
* @prop --ion-chip-icon-font-size: Font size of the slotted `ion-icon`
* @prop --ion-chip-icon-leading-margin-top: Top margin of the slotted `ion-icon` when it is the first child
* @prop --ion-chip-icon-leading-margin-end: Right margin if direction is left-to-right, and left margin if direction is right-to-left of the slotted `ion-icon` when it is the first child
* @prop --ion-chip-icon-leading-margin-bottom: Bottom margin of the slotted `ion-icon` when it is the first child
* @prop --ion-chip-icon-leading-margin-start: Left margin if direction is left-to-right, and right margin if direction is right-to-left of the slotted `ion-icon` when it is the first child
* @prop --ion-chip-icon-trailing-margin-top: Top margin of the slotted `ion-icon` when it is the last child
* @prop --ion-chip-icon-trailing-margin-end: Right margin if direction is left-to-right, and left margin if direction is right-to-left of the slotted `ion-icon` when it is the last child
* @prop --ion-chip-icon-trailing-margin-bottom: Bottom margin of the slotted `ion-icon` when it is the last child
* @prop --ion-chip-icon-trailing-margin-start: Left margin if direction is left-to-right, and right margin if direction is right-to-left of the slotted `ion-icon` when it is the last child
*
* Slotted Avatar
* @prop --ion-chip-avatar-width: Width of the slotted `ion-avatar`
* @prop --ion-chip-avatar-height: Height of the slotted `ion-avatar`
* @prop --ion-chip-avatar-leading-margin-top: Top margin of the slotted `ion-avatar` when it is the first child
* @prop --ion-chip-avatar-leading-margin-end: Right margin if direction is left-to-right, and left margin if direction is right-to-left of the slotted `ion-avatar` when it is the first child
* @prop --ion-chip-avatar-leading-margin-bottom: Bottom margin of the slotted `ion-avatar` when it is the first child
* @prop --ion-chip-avatar-leading-margin-start: Left margin if direction is left-to-right, and right margin if direction is right-to-left of the slotted `ion-avatar` when it is the first child
* @prop --ion-chip-avatar-trailing-margin-top: Top margin of the slotted `ion-avatar` when it is the last child
* @prop --ion-chip-avatar-trailing-margin-end: Right margin if direction is left-to-right, and left margin if direction is right-to-left of the slotted `ion-avatar` when it is the last child
* @prop --ion-chip-avatar-trailing-margin-bottom: Bottom margin of the slotted `ion-avatar` when it is the last child
* @prop --ion-chip-avatar-trailing-margin-start: Left margin if direction is left-to-right, and right margin if direction is right-to-left of the slotted `ion-avatar` when it is the last child
*/
@include mixins.font-smoothing();
@include mixins.margin(
var(--ion-chip-margin-top),
var(--ion-chip-margin-end),
var(--ion-chip-margin-bottom),
var(--ion-chip-margin-start)
);
@include mixins.padding(
var(--ion-chip-padding-top),
var(--ion-chip-padding-end),
var(--ion-chip-padding-bottom),
var(--ion-chip-padding-start)
);
display: inline-flex;
position: relative;
align-items: center;
justify-content: center;
font-weight: var(--ion-chip-font-weight);
letter-spacing: var(--ion-chip-letter-spacing);
line-height: var(--ion-chip-line-height);
cursor: pointer;
gap: var(--ion-chip-gap);
overflow: hidden;
vertical-align: middle;
box-sizing: border-box;
}
// Chip Sizes
// ---------------------------------------------
:host(.chip-size-small) {
min-height: var(--ion-chip-size-small-min-height);
font-size: var(--ion-chip-size-small-font-size);
}
:host(.chip-size-large) {
min-height: var(--ion-chip-size-large-min-height);
font-size: var(--ion-chip-size-large-font-size);
}
// Chip Shapes
// ---------------------------------------------
:host(.chip-shape-soft) {
@include mixins.border-radius(var(--ion-chip-shape-soft-border-radius));
}
:host(.chip-shape-round) {
@include mixins.border-radius(var(--ion-chip-shape-round-border-radius));
}
:host(.chip-shape-rectangular) {
@include mixins.border-radius(var(--ion-chip-shape-rectangular-border-radius));
}
// Chip: Bold Solid
// ---------------------------------------------
// Default
:host(.chip-hue-bold.chip-fill-solid) {
background: var(--ion-chip-hue-bold-solid-default-background);
color: var(--ion-chip-hue-bold-solid-default-color);
}
// Default: Activated
:host(.chip-hue-bold.chip-fill-solid.ion-activated) {
background: var(--ion-chip-hue-bold-solid-activated-background, var(--ion-chip-hue-bold-solid-default-background));
}
// Default: Focus
:host(.chip-hue-bold.chip-fill-solid.ion-focused) {
background: var(--ion-chip-hue-bold-solid-focus-background, var(--ion-chip-hue-bold-solid-default-background));
}
@media (any-hover: hover) {
// Default: Hover
:host(.chip-hue-bold.chip-fill-solid:hover) {
background: var(--ion-chip-hue-bold-solid-hover-background, var(--ion-chip-hue-bold-solid-default-background));
}
}
// Colors
:host(.chip-hue-bold.chip-fill-solid.ion-color) {
background: var(--ion-chip-hue-bold-solid-semantic-default-background);
color: var(--ion-chip-hue-bold-solid-semantic-default-color);
}
// Colors: Activated
:host(.chip-hue-bold.chip-fill-solid.ion-color.ion-activated) {
background: var(
--ion-chip-hue-bold-solid-semantic-activated-background,
var(--ion-chip-hue-bold-solid-semantic-default-background)
);
}
// Colors: Focus
:host(.chip-hue-bold.chip-fill-solid.ion-color.ion-focused) {
background: var(
--ion-chip-hue-bold-solid-semantic-focus-background,
var(--ion-chip-hue-bold-solid-semantic-default-background)
);
}
@media (any-hover: hover) {
// Colors: Hover
:host(.chip-hue-bold.chip-fill-solid.ion-color:hover) {
background: var(
--ion-chip-hue-bold-solid-semantic-hover-background,
var(--ion-chip-hue-bold-solid-semantic-default-background)
);
}
}
// Chip: Bold Outline
// ---------------------------------------------
// Default
:host(.chip-hue-bold.chip-fill-outline) {
border-width: var(--ion-chip-hue-bold-outline-default-border-width);
border-style: var(--ion-chip-hue-bold-outline-default-border-style);
border-color: var(--ion-chip-hue-bold-outline-default-border-color);
background: var(--ion-chip-hue-bold-outline-default-background);
color: var(--ion-chip-hue-bold-outline-default-color);
}
// Default: Activated
:host(.chip-hue-bold.chip-fill-outline.ion-activated) {
background: var(
--ion-chip-hue-bold-outline-activated-background,
var(--ion-chip-hue-bold-outline-default-background)
);
}
// Default: Focus
:host(.chip-hue-bold.chip-fill-outline.ion-focused) {
background: var(--ion-chip-hue-bold-outline-focus-background, var(--ion-chip-hue-bold-outline-default-background));
}
@media (any-hover: hover) {
// Default: Hover
:host(.chip-hue-bold.chip-fill-outline:hover) {
background: var(--ion-chip-hue-bold-outline-hover-background, var(--ion-chip-hue-bold-outline-default-background));
}
}
// Colors
:host(.chip-hue-bold.chip-fill-outline.ion-color) {
border-width: var(--ion-chip-hue-bold-outline-semantic-default-border-width);
border-style: var(--ion-chip-hue-bold-outline-semantic-default-border-style);
border-color: var(--ion-chip-hue-bold-outline-semantic-default-border-color);
background: var(--ion-chip-hue-bold-outline-semantic-default-background);
color: var(--ion-chip-hue-bold-outline-semantic-default-color);
}
// Colors: Activated
:host(.chip-hue-bold.chip-fill-outline.ion-color.ion-activated) {
background: var(
--ion-chip-hue-bold-outline-semantic-activated-background,
var(--ion-chip-hue-bold-outline-semantic-default-background)
);
}
// Colors: Focus
:host(.chip-hue-bold.chip-fill-outline.ion-color.ion-focused) {
background: var(
--ion-chip-hue-bold-outline-semantic-focus-background,
var(--ion-chip-hue-bold-outline-semantic-default-background)
);
}
@media (any-hover: hover) {
// Colors: Hover
:host(.chip-hue-bold.chip-fill-outline.ion-color:hover) {
background: var(
--ion-chip-hue-bold-outline-semantic-hover-background,
var(--ion-chip-hue-bold-outline-semantic-default-background)
);
}
}
// Chip: Subtle Solid
// ---------------------------------------------
// Default
:host(.chip-hue-subtle.chip-fill-solid) {
background: var(--ion-chip-hue-subtle-solid-default-background);
color: var(--ion-chip-hue-subtle-solid-default-color);
}
// Default: Activated
:host(.chip-hue-subtle.chip-fill-solid.ion-activated) {
background: var(
--ion-chip-hue-subtle-solid-activated-background,
var(--ion-chip-hue-subtle-solid-default-background)
);
}
// Default: Focus
:host(.chip-hue-subtle.chip-fill-solid.ion-focused) {
background: var(--ion-chip-hue-subtle-solid-focus-background, var(--ion-chip-hue-subtle-solid-default-background));
}
@media (any-hover: hover) {
// Default: Hover
:host(.chip-hue-subtle.chip-fill-solid:hover) {
background: var(--ion-chip-hue-subtle-solid-hover-background, var(--ion-chip-hue-subtle-solid-default-background));
}
}
// Colors
:host(.chip-hue-subtle.chip-fill-solid.ion-color) {
background: var(--ion-chip-hue-subtle-solid-semantic-default-background);
color: var(--ion-chip-hue-subtle-solid-semantic-default-color);
}
// Colors: Activated
:host(.chip-hue-subtle.chip-fill-solid.ion-color.ion-activated) {
background: var(
--ion-chip-hue-subtle-solid-semantic-activated-background,
var(--ion-chip-hue-subtle-solid-semantic-default-background)
);
}
// Colors: Focus
:host(.chip-hue-subtle.chip-fill-solid.ion-color.ion-focused) {
background: var(
--ion-chip-hue-subtle-solid-semantic-focus-background,
var(--ion-chip-hue-subtle-solid-semantic-default-background)
);
}
@media (any-hover: hover) {
// Colors: Hover
:host(.chip-hue-subtle.chip-fill-solid.ion-color:hover) {
background: var(
--ion-chip-hue-subtle-solid-semantic-hover-background,
var(--ion-chip-hue-subtle-solid-semantic-default-background)
);
}
}
// Chip: Subtle Outline
// ---------------------------------------------
// Default
:host(.chip-hue-subtle.chip-fill-outline) {
border-width: var(--ion-chip-hue-subtle-outline-default-border-width);
border-style: var(--ion-chip-hue-subtle-outline-default-border-style);
border-color: var(--ion-chip-hue-subtle-outline-default-border-color);
background: var(--ion-chip-hue-subtle-outline-default-background);
color: var(--ion-chip-hue-subtle-outline-default-color);
}
// Default: Activated
:host(.chip-hue-subtle.chip-fill-outline.ion-activated) {
background: var(
--ion-chip-hue-subtle-outline-activated-background,
var(--ion-chip-hue-subtle-outline-default-background)
);
}
// Default: Focus
:host(.chip-hue-subtle.chip-fill-outline.ion-focused) {
background: var(
--ion-chip-hue-subtle-outline-focus-background,
var(--ion-chip-hue-subtle-outline-default-background)
);
}
@media (any-hover: hover) {
// Default: Hover
:host(.chip-hue-subtle.chip-fill-outline:hover) {
background: var(
--ion-chip-hue-subtle-outline-hover-background,
var(--ion-chip-hue-subtle-outline-default-background)
);
}
}
// Colors
:host(.chip-hue-subtle.chip-fill-outline.ion-color) {
border-width: var(--ion-chip-hue-subtle-outline-semantic-default-border-width);
border-style: var(--ion-chip-hue-subtle-outline-semantic-default-border-style);
border-color: var(--ion-chip-hue-subtle-outline-semantic-default-border-color);
background: var(--ion-chip-hue-subtle-outline-semantic-default-background);
color: var(--ion-chip-hue-subtle-outline-semantic-default-color);
}
// Colors: Activated
:host(.chip-hue-subtle.chip-fill-outline.ion-color.ion-activated) {
background: var(
--ion-chip-hue-subtle-outline-semantic-activated-background,
var(--ion-chip-hue-subtle-outline-semantic-default-background)
);
}
// Colors: Focus
:host(.chip-hue-subtle.chip-fill-outline.ion-color.ion-focused) {
background: var(
--ion-chip-hue-subtle-outline-semantic-focus-background,
var(--ion-chip-hue-subtle-outline-semantic-default-background)
);
}
@media (any-hover: hover) {
// Colors: Hover
:host(.chip-hue-subtle.chip-fill-outline.ion-color:hover) {
background: var(
--ion-chip-hue-subtle-outline-semantic-hover-background,
var(--ion-chip-hue-subtle-outline-semantic-default-background)
);
}
}
// Chip States
// ---------------------------------------------
// Disabled
:host(.chip-disabled) {
cursor: default;
opacity: var(--ion-chip-state-disabled-opacity, 1);
pointer-events: none;
}
// Focus
:host(.ion-focused) {
@include mixins.focused-state(
var(--ion-chip-state-focus-ring-width),
var(--ion-chip-state-focus-ring-style),
var(--ion-chip-state-focus-ring-color)
);
}
// Chip Slotted Elements
// ---------------------------------------------
// Icon
::slotted(ion-icon) {
font-size: var(--ion-chip-icon-font-size);
}
:host(:not(.ion-color)) ::slotted(ion-icon) {
color: var(--ion-chip-icon-color);
}
::slotted(ion-icon:first-child) {
@include mixins.margin(
var(--ion-chip-icon-leading-margin-top),
var(--ion-chip-icon-leading-margin-end),
var(--ion-chip-icon-leading-margin-bottom),
var(--ion-chip-icon-leading-margin-start)
);
}
::slotted(ion-icon:last-child) {
@include mixins.margin(
var(--ion-chip-icon-trailing-margin-top),
var(--ion-chip-icon-trailing-margin-end),
var(--ion-chip-icon-trailing-margin-bottom),
var(--ion-chip-icon-trailing-margin-start)
);
}
// Avatar
::slotted(ion-avatar) {
flex-shrink: 0;
width: var(--ion-chip-avatar-width, revert-layer);
height: var(--ion-chip-avatar-height, revert-layer);
}
::slotted(ion-avatar:first-child) {
@include mixins.margin(
var(--ion-chip-avatar-leading-margin-top),
var(--ion-chip-avatar-leading-margin-end),
var(--ion-chip-avatar-leading-margin-bottom),
var(--ion-chip-avatar-leading-margin-start)
);
}
::slotted(ion-avatar:last-child) {
@include mixins.margin(
var(--ion-chip-avatar-trailing-margin-top),
var(--ion-chip-avatar-trailing-margin-end),
var(--ion-chip-avatar-trailing-margin-bottom),
var(--ion-chip-avatar-trailing-margin-start)
);
}