-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathselect.bootstrap.scss
More file actions
76 lines (62 loc) · 1.91 KB
/
select.bootstrap.scss
File metadata and controls
76 lines (62 loc) · 1.91 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
@use 'styles/utilities' as *;
@use '../light/themes' as *;
@use 'components/input/themes/light/themes' as input-theme;
$theme: $bootstrap;
$input-theme: input-theme.$bootstrap;
: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('body-2');
color: var-get($theme, 'helper-text-color');
grid-auto-rows: minmax(rem(20px), auto);
margin-block-start: rem(4px);
}
::slotted([slot='suffix']),
::slotted([slot='prefix']) {
height: 100%;
display: flex;
align-items: center;
}
}
[part='base'] {
border: rem(1px) solid var(--dd-border-color);
padding: rem(8px) 0;
}
:host(:not(:state(ig-invalid)):focus-within) {
igc-input[readonly]:not([disabled])::part(input) {
box-shadow: 0 0 0 rem(4px) var-get($input-theme, 'focused-secondary-color');
border-color: var-get($input-theme, 'focused-border-color');
}
}
:host([disabled]),
:host(:disabled) {
igc-validator {
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;
}
}
::slotted([slot='suffix']),
[part|='toggle'] {
border-inline-end: rem(1px) solid var(--disabled-border-color);
}
::slotted([slot='prefix']) {
border-inline-start: rem(1px) solid var(--disabled-border-color);
}
}
:host(:not([disabled])),
:host(:not(:disabled)) {
::slotted([slot='suffix']),
[part|='toggle'] {
border-inline-end: rem(1px) solid var(--border-color);
}
::slotted([slot='prefix']) {
border-inline-start: rem(1px) solid var(--border-color);
}
}