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

.check-field {
  font-size: 0.9em;
  margin: 5px 0;

  .field-input {
    border-radius: 5px;
    width: fit-content;
    background-color: $color-primary-2;

    input {
      display: none;
    }

    label {
      margin: 0;
      padding: 6px 15px;
      cursor: pointer;
    }

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

  &.field-checked .field-input {
    background-color: $color-primary-4 !important;
    color: $color-primary-3;
  }

  &.field-small {
    font-size: 0.8em;

    .field-input label {
      padding: 7px 15px;
    }
  }
}