-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Expand file tree
/
Copy pathtext-area.less
More file actions
110 lines (97 loc) · 1.91 KB
/
text-area.less
File metadata and controls
110 lines (97 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
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
103
104
105
106
107
108
109
110
.adm-text-area {
--font-size: var(--adm-font-size-9);
--color: var(--adm-color-text);
--placeholder-color: var(--adm-color-light);
--disabled-color: var(--adm-color-weak);
--text-align: left;
--count-text-align: right;
position: relative;
width: 100%;
max-width: 100%;
max-height: 100%;
}
.adm-text-area-input-wrapper {
display: flex;
align-items: flex-start;
}
.adm-text-area-textarea-wrapper {
position: relative;
flex: auto;
display: flex;
width: 100%;
max-width: 100%;
}
.adm-text-area-element {
font-family: var(--adm-font-family);
resize: none;
flex: auto;
display: block;
box-sizing: border-box;
width: 100%;
max-width: 100%;
max-height: 100%;
padding: 0;
margin: 0;
color: var(--color);
font-size: var(--font-size);
line-height: 1.5;
background: transparent;
border: 0;
outline: none;
appearance: none;
min-height: 1.5em;
text-align: var(--text-align);
&::placeholder {
color: var(--placeholder-color);
font-family: inherit;
}
&:-webkit-autofill {
background-color: transparent;
}
&:disabled {
color: var(--disabled-color);
cursor: not-allowed;
opacity: 1;
-webkit-text-fill-color: var(--disabled-color);
}
&:read-only {
cursor: default;
}
&:invalid {
box-shadow: none;
}
&::-ms-clear {
display: none;
}
&-hidden {
visibility: hidden;
position: absolute;
top: 0;
left: 0;
z-index: -1000;
}
}
.adm-text-area-count {
text-align: var(--count-text-align);
color: var(--adm-color-weak);
font-size: var(--adm-font-size-9);
padding-top: 8px;
}
.adm-text-area-clear {
flex: none;
margin-left: 8px;
color: var(--adm-color-light);
&:active {
color: var(--adm-color-weak);
}
padding: 4px;
cursor: pointer;
.antd-mobile-icon {
display: block;
font-size: var(--adm-font-size-7);
}
&-hidden {
visibility: hidden;
pointer-events: none;
}
}