aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/unit-input/index.scss
blob: c99199b6273ee76a64348d0e0f34776373b71c39 (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
.unit-input {
  min-height: 54px;
  border-radius: 4px;
  background-color: #f0f0f0;
  color: $black;
  font-size: 1rem;
  padding: 8px 10px;
  position: relative;

  input[type="number"] {
    -moz-appearance: textfield;
  }

  input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    -moz-appearance: none;
    display: none;
  }

  input[type="number"]:hover::-webkit-inner-spin-button {
    -webkit-appearance: none;
    -moz-appearance: none;
    display: none;
  }

  &__input {
    color: $black;
    font-size: 1rem;
    font-family: Overpass;
    border: none;
    outline: 0 !important;
    max-width: 22ch;
  }

  &__input-container {
    display: flex;
    align-items: center;
  }

  &__suffix {
    margin-left: 3px;
  }

  &--error {
    border-color: $red;
  }
}