aboutsummaryrefslogtreecommitdiffhomepage
path: root/static/form.css
blob: 91f755b3ebbaaaf59805cd91d513c459e1e1bda5 (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
62
63
64
65
66
67
68
69
70
71
form {
  border: 1px solid #3334;
  background: #9892;
  border-radius: 8px;
  margin: 16px;
  padding: 16px;
  display: grid;
  grid-auto-flow: row;
  gap: 8px;
  max-width: max-content;

  label:has(+ input, + textarea) {
    display: block;
    font-size: 10pt;
    color: #555;
  }
  input:not([type="checkbox"]),
  textarea {
    display: block;
    border: 1px solid #3334;
    border-radius: 8px;
    margin: 8px 0;
    padding: 8px;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    background: #fff;
    width: min(60vw, 24em, calc(100% - 16px));
  }
  textarea {
    resize: vertical;
  }
  button {
    background: #3b005e;
    color: #fff;
    font-family: inherit;
    font-size: inherit;
    border-radius: 8px;
    border: none;
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
    cursor: pointer;
    &:disabled {
      opacity: 80%;
      cursor: default;
    }
  }
  .error {
    background: #f004;
    border: 1px solid #f007;
    border-radius: 8px;
    padding: 16px;
    margin: 0;
  }

  &.noteReplyForm {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    margin-top: 8px;
    max-width: 100%;
    input:not([type="checkbox"]),
    textarea,
    button {
      width: 100%;
      box-sizing: border-box;
    }
  }
}