summaryrefslogtreecommitdiff
path: root/ui/styles/textarea.css
blob: d9be0d6f059b4ad0309c2ae2f3bf4856ce62dd3d (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
/* Message input */
.create-message form {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: stretch;

  @media (width <= 640px) {
    margin: 0 0.5rem 1rem 0.5rem;
  }
}

.create-message textarea {
  padding: 0.5rem;
  border-radius: 0.5rem 0 0 0.5rem;
  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);
  font-family: 'FiraCode';
}

.create-message button {
  border-radius: 0 0.5rem 0.5rem 0;
  border: 1px solid var(--colour-input-border);
  background-color: var(--colour-input-bg);
  color: var(--colour-input-text);
}

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;
  }
}