-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathtextarea.common.scss
More file actions
102 lines (83 loc) · 2.22 KB
/
textarea.common.scss
File metadata and controls
102 lines (83 loc) · 2.22 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
@use 'styles/utilities' as *;
@use '../light/themes' as *;
$theme: $base;
[part~='prefixed'] {
[part~='prefix'] {
color: var-get($theme, 'input-prefix-color');
background: var-get($theme, 'input-prefix-background');
}
}
[part~='suffixed'] {
[part~='suffix'] {
color: var-get($theme, 'input-suffix-color');
background: var-get($theme, 'input-suffix-background');
}
}
[part~='filled'] {
[part~='input'] {
color: var-get($theme, 'filled-text-color');
}
[part~='prefix'] {
color: var-get($theme, 'input-prefix-color--filled');
background: var-get($theme, 'input-prefix-background--filled');
}
[part~='suffix'] {
color: var-get($theme, 'input-suffix-color--filled');
background: var-get($theme, 'input-suffix-background--filled');
}
}
[part~='label'] {
color: var-get($theme, 'idle-secondary-color');
}
textarea {
background: transparent;
color: var-get($theme, 'filled-text-color');
&::placeholder {
color: var-get($theme, 'placeholder-color');
}
}
:host([readonly]) {
[part='prefix'],
[part='suffix'] {
color: var-get($theme, 'disabled-text-color');
}
}
:host(:not([readonly]):hover),
:host(:focus) {
textarea {
&::placeholder {
color: var-get($theme, 'hover-placeholder-color');
}
}
}
:host(:not([disabled],[readonly]):state(ig-invalid)),
:host(:not(:disabled,[readonly]):state(ig-invalid)) {
::part(helper-text) {
color: var-get($theme, 'error-secondary-color');
}
}
:host(:disabled),
:host([disabled]) {
color: var-get($theme, 'disabled-text-color');
[part='prefix'],
[part='suffix'] {
color: var-get($theme, 'disabled-text-color');
background: inherit;
}
::part(helper-text) {
color: var-get($theme, 'disabled-text-color');
}
textarea {
color: var-get($theme, 'disabled-text-color');
&::placeholder {
color: var-get($theme, 'disabled-placeholder-color');
}
}
[part~='label'] {
color: var-get($theme, 'disabled-text-color');
}
}
::slotted([slot='suffix']),
::slotted([slot='prefix']) {
padding-inline: var(--affix-padding);
}