-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathcombo.common.scss
More file actions
101 lines (82 loc) · 2.35 KB
/
combo.common.scss
File metadata and controls
101 lines (82 loc) · 2.35 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
@use 'styles/utilities' as *;
@use '../light/themes' as *;
@use '../../../input/themes/light/themes' as input-theme;
@use '../../../dropdown/themes/light/themes' as dropdown-theme;
$theme: $material;
$input-theme: input-theme.$material;
$dropdown-theme: dropdown-theme.$material;
:host {
::part(helper-text) {
color: var-get($input-theme, 'helper-text-color');
}
igc-popover::part(container) {
border-radius: var-get($dropdown-theme, 'border-radius');
}
}
[part='empty'] {
color: var-get($theme, 'empty-list-placeholder-color');
}
[part~='toggle-icon'] {
background: var-get($theme, 'toggle-button-background');
color: var-get($theme, 'toggle-button-foreground');
igc-icon {
color: inherit;
}
}
[part~='clear-icon'] {
background: var-get($theme, 'clear-button-background');
color: var-get($theme, 'clear-button-foreground');
igc-icon {
color: inherit;
}
}
:host(:focus-within) {
[part~='toggle-icon'] {
background: var-get($theme, 'toggle-button-background-focus--border');
color: var-get($theme, 'toggle-button-foreground-focus');
igc-icon {
color: inherit;
}
}
[part~='clear-icon'] {
background: var-get($theme, 'clear-button-background-focus');
color: var-get($theme, 'clear-button-foreground-focus');
igc-icon {
color: inherit;
}
}
}
:host(:not([disabled]):state(ig-invalid)),
:host(:not(:disabled):state(ig-invalid)) {
::part(helper-text) {
color: var-get($theme, 'error-secondary-color');
}
}
:host(:disabled),
:host([disabled]) {
::slotted([slot='prefix']),
::slotted([slot='suffix']),
igc-input::part(label),
igc-input::part(input)::placeholder,
::part(helper-text) {
color: var-get($input-theme, 'disabled-text-color');
}
[part~='clear-icon'] {
background: inherit;
color: var-get($input-theme, 'disabled-text-color');
igc-icon {
color: inherit;
}
}
[part~='toggle-icon'] {
background: var-get($theme, 'toggle-button-background-disabled');
color: var-get($theme, 'toggle-button-foreground-disabled');
igc-icon {
color: inherit;
}
}
}
::slotted([slot='suffix']),
::slotted([slot='prefix']) {
padding-inline: var(--affix-padding);
}