-
Notifications
You must be signed in to change notification settings - Fork 287
/
Copy pathtextarea.scss
71 lines (59 loc) · 1.67 KB
/
textarea.scss
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
@import '@devui/theme/styles-var/devui-var.scss';
.#{$devui-prefix}-textarea {
width: 100%;
box-sizing: border-box;
padding: 4px 8px;
font-size: $devui-font-size;
font-family: inherit;
color: var(--devui-text, #252b3a);
vertical-align: middle;
outline: none;
border: 1px solid $devui-form-control-line;
border-radius: $devui-border-radius;
background: $devui-form-control-bg;
transition: border-color 0.3s $devui-animation-ease-in-out-smooth;
&::placeholder {
color: $devui-placeholder;
}
&:not(.#{$devui-prefix}-textarea--error):not(.#{$devui-prefix}-textarea--disabled):not(.#{$devui-prefix}-textarea--focus):hover {
border-color: $devui-form-control-line-hover;
}
&--focus:not(.#{$devui-prefix}-textarea--error) {
border-color: $devui-form-control-line-active;
}
&--disabled {
border-color: $devui-disabled-line;
background-color: $devui-disabled-bg;
color: $devui-disabled-text;
cursor: not-allowed;
&:hover {
border-color: $devui-disabled-line;
}
.#{$devui-prefix}-textarea__inner {
color: $devui-disabled-text;
cursor: not-allowed;
}
}
&--error {
border-color: $devui-danger-line;
background-color: $devui-danger-bg;
}
&__show-count {
text-align: right;
color: inherit;
white-space: nowrap;
pointer-events: none;
font-size: $devui-font-size;
}
&--feedback {
padding-right: 28px;
}
&--gray-style:not(.#{$devui-prefix}-textarea--disabled):not(.#{$devui-prefix}-textarea--error) {
background: $devui-gray-5;
border-color: $devui-gray-5;
&:hover {
background: $devui-gray-10;
border-color: $devui-gray-10 !important;
}
}
}