-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathselect.indigo.scss
More file actions
89 lines (71 loc) · 2.11 KB
/
select.indigo.scss
File metadata and controls
89 lines (71 loc) · 2.11 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
@use 'styles/utilities' as *;
@use '../light/themes' as *;
@use 'components/dropdown/themes/light/themes' as dropdown-theme;
@use 'components/input/themes/light/themes' as input-theme;
$theme: $indigo;
$dropdown-theme: dropdown-theme.$indigo;
$input-theme: input-theme.$indigo;
:host {
--component-size: var(--ig-size, #{var-get($theme, 'default-size')});
--select-size: var(--component-size);
--dropdown-size: var(--component-size);
::part(helper-text) {
@include type-style('caption');
margin-block-start: rem(4px);
grid-auto-rows: minmax(rem(15px), auto);
}
igc-input::part(input) {
color: var-get($input-theme, 'filled-text-color');
}
igc-input::part(container) {
padding-inline: 0;
}
}
[part='base'] {
outline: var-get($dropdown-theme, 'border-width') solid var-get($dropdown-theme, 'border-color');
padding: rem(3px);
}
:host(:hover) {
[part~='toggle-icon'] {
color: var-get($theme, 'toggle-button-foreground-focus');
}
}
:host(:focus-within) {
igc-input::part(label) {
color: var-get($input-theme, 'focused-secondary-color');
}
igc-input::part(container) {
background: var-get($input-theme, 'box-background-hover');
&::after {
transform: scaleY(1);
}
}
}
:host(:not([disabled])[invalid]),
:host(:not(:disabled)[invalid]) {
igc-input::part(container) {
border-color: var-get($theme, 'error-secondary-color');
&::after {
background: var-get($theme, 'error-secondary-color');
}
}
::part(helper-text) {
color: var-get($input-theme, 'helper-text-color');
}
::part(validation-icon) {
color: var-get($theme, 'error-secondary-color');
}
}
:host(:disabled),
:host([disabled]) {
igc-input::part(input) {
color: var-get($theme, 'disabled-text-color');
}
[part~='toggle-icon'] {
background: var-get($theme, 'toggle-button-background-disabled');
color: var-get($theme, 'toggle-button-foreground-disabled');
igc-icon {
color: inherit;
}
}
}