-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Expand file tree
/
Copy pathTextArea.module.css
More file actions
82 lines (70 loc) · 1.86 KB
/
TextArea.module.css
File metadata and controls
82 lines (70 loc) · 1.86 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
:global(.webchat-fluent) .sendbox__text-area {
display: grid;
grid-template-areas: 'main';
max-height: 200px;
overflow: auto;
scrollbar-gutter: stable;
}
:global(.webchat-fluent) .sendbox__text-area--hidden {
/* TODO: Not perfect way of hiding the text box. */
height: 0;
visibility: collapse;
}
:global(.webchat-fluent) .sendbox__text-area--in-completion {
.sendbox__text-area-doppelganger {
visibility: unset;
}
.sendbox__text-area-input {
background-color: transparent;
caret-color: var(--webchat-colorNeutralForeground1);
color: transparent;
}
textarea::placeholder {
color: transparent;
}
}
:global(.webchat-fluent) .sendbox__text-area-shared {
border: none;
font: inherit;
grid-area: main;
outline: inherit;
overflow-wrap: anywhere;
resize: inherit;
}
:global(.webchat-fluent) .sendbox__text-area-doppelganger {
overflow: visible;
pointer-events: none;
user-select: none;
visibility: hidden;
white-space: pre-wrap;
}
:global(.webchat-fluent) .sendbox__text-area-input {
background-color: inherit;
color: currentColor;
contain: size;
overflow: hidden;
padding: 0;
}
:global(.webchat-fluent) .sendbox__text-area--scroll {
/* Edge uses -webkit-scrollbar if scrollbar-* is not set */
scrollbar-color: unset;
scrollbar-width: unset;
/* Firefox */
-moz-scrollbar-color: var(--webchat-colorNeutralBackground5) var(--webchat-colorNeutralForeground2);
-moz-scrollbar-width: thin;
/* Chrome, Edge, and Safari */
&::-webkit-scrollbar {
width: 8px;
}
&::-webkit-scrollbar-track {
background-color: var(--webchat-colorNeutralBackground5);
border-radius: 16px;
}
&::-webkit-scrollbar-thumb {
background-color: var(--webchat-colorNeutralForeground2);
border-radius: 16px;
}
&::-webkit-scrollbar-corner {
background-color: var(--webchat-colorNeutralBackground5);
}
}