aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/unit-input/index.scss
blob: e4075d2251aaa72473bdf0abcb30ebbf55ef29e9 (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
55
.unit-input {
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  min-height: 54px;
  border: 1px solid #dedede;
  border-radius: 4px;
  background-color: #fff;
  color: #4d4d4d;
  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;
  }

  &__inputs {
    flex: 1 0 auto;
  }

  &__input {
    color: #4d4d4d;
    font-size: 1rem;
    font-family: Roboto;
    border: none;
    outline: 0 !important;
    max-width: 22ch;
  }

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

  &__suffix {
    margin-left: 3px;
  }

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