aboutsummaryrefslogtreecommitdiff
path: root/frontend/src/components/fields/extensions/ColorField.scss
blob: 26b21f14a79867c6ad18319969011c7c6bb6ce6d (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
@import "../../../colors.scss";

.color-field {
  .color-input {
    display: flex;
    align-items: flex-end;

    .input-field {
      flex: 1;

      input {
        border-top-right-radius: 0 !important;
        border-bottom-right-radius: 0 !important;
      }
    }

    .color-picker {
      margin-bottom: 5px;

      .picker-button {
        font-size: 0.8em;
        padding: 8px 15px;
        border-top-right-radius: 5px;
        border-bottom-right-radius: 5px;
        background-color: $color-primary-1;
      }
    }
  }

  .color-error {
    font-size: 0.8em;
    margin-left: 10px;
    color: $color-secondary-0;
  }
}

.colors-container {
  width: 600px;

  .color-input {
    display: inline-block;
    width: 31px;
    height: 31px;
    cursor: pointer;
  }
}