aboutsummaryrefslogtreecommitdiff
path: root/frontend/src/components/fields/common.scss
blob: f83a988e7db5e78d03075ed81506b0e9257aa217 (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
54
@import '../../colors.scss';

.field {

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

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

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

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

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

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

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