-
Notifications
You must be signed in to change notification settings - Fork 37
/
Copy pathTextArea.css
59 lines (48 loc) · 1.11 KB
/
TextArea.css
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
.textArea {
position: relative;
max-width: 100%;
&.fullWidth {
width: 100%;
}
& textarea {
padding: var(--input-vertical-padding) var(--input-horizontal-padding);
font-size: var(--font-size-medium);
line-height: var(--line-height);
max-width: 100%;
}
}
.lockWidth {
min-width: 100%;
max-width: 100%;
}
.startControls,
.endControls {
position: absolute;
inset-inline-end: 8px; /* leave some space for textarea's resize control */
bottom: 1px; /* makes the controls look more vertically centered in single line textareas */
pointer-events: none;
height: auto;
display: flex;
justify-content: flex-start;
align-items: stretch;
flex: 0;
}
.startControls {
justify-content: flex-start;
padding: 0 0 0 var(--input-horizontal-padding);
}
[dir="rtl"] .startControls {
padding: 0 var(--input-horizontal-padding) 0 0;
}
.endControls {
justify-content: flex-end;
padding: 0 var(--input-horizontal-padding) 0 0;
}
[dir="rtl"] .endControls {
padding: 0 0 0 var(--input-horizontal-padding);
}
.controlGroup {
pointer-events: all;
display: flex;
align-items: center;
}