blob: 4dc804a4b179ec8fd1d473ac869e889a40711d0e (
plain)
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
|
/* Message input */
.create-message form {
display: flex;
flex-direction: row;
justify-content: flex-start;
align-items: stretch;
}
/* The second selector is more generally useful, but it doesn't seem to work,
* so I added in the first selector. */
.textarea:empty:before,
[contenteditable='true']:empty:before {
content: attr(placeholder);
pointer-events: none;
display: block; /* For Firefox */
}
.create-message .textarea {
padding: 1rem;
border: 1px solid var(--colour-input-border);
z-index: 1; /* Just to make the focus-active border go over the following button. */
flex-grow: 1;
background-color: var(--colour-input-bg);
color: var(--colour-input-text);
min-height: 1rem;
max-height: 10rem;
overflow-x: hidden;
overflow-y: auto;
@media (width <= 640px) {
border-radius: 0;
min-height: 2.5rem;
}
}
.create-message button {
border: 1px solid var(--colour-input-border);
background-color: var(--colour-input-bg);
color: var(--colour-input-text);
padding: 1rem;
@media (width <= 640px) {
border-radius: 0;
}
}
main {
display: flex;
flex-direction: column;
justify-content: flex-start;
align-items: stretch;
}
/* Workaround for iOS zooming in on the textarea when it gets focus. */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
select,
.textarea,
input {
font-size: 16px;
}
}
|