aboutsummaryrefslogtreecommitdiff
path: root/frontend/src/components/fields/common.scss
blob: f37369ed3aec029296e96c1d3aca8f6604ce2661 (plain) (blame)
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
@import "../../colors.scss";

.field {
  input, textarea {
    width: 100%;
    padding: 7px 10px;
    color: $color-primary-4;
    border: none;
    border-radius: 5px;
    background-color: $color-primary-2;

    &:focus {
      color: $color-primary-4;
      outline: none;
      background-color: $color-primary-1;
      box-shadow: none;
    }

    &[readonly] {
      color: $color-primary-4;
      border: none;
      background-color: $color-primary-2;
    }

    &[readonly]:focus {
      color: $color-primary-4;
      background-color: $color-primary-1;
      box-shadow: none;
    }
  }

  button {
    font-weight: 500;
    padding: 5px 12px;
    color: $color-primary-4;
    border: none;
    border-radius: 0;
    outline: none;
    background-color: $color-primary-2;

    &:hover,
    &:active {
      color: $color-primary-4;
      background-color: $color-primary-1;
    }

    &:focus,
    &:active {
      outline: none !important;
      box-shadow: none !important;
    }
  }
}