summaryrefslogtreecommitdiff
path: root/src/assets/styles/_form-components.scss
blob: 35274e703ff1299ba1c5a70a7a5beb2a9280d458 (plain)
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
.form-text {
  margin-top: -$spacer / 4;
  margin-bottom: $spacer / 2;
  color: $gray-800;
}

.col-form-label {
  color: $gray-800;
  font-size: 14px;
}

.form-group {
  margin-bottom: $spacer * 2;
}

.custom-select,
.custom-control-label,
.form-control {
  //important needed to override validation colors on radio labels
  color: $gray-900 !important;
  font-size: 16px;
  border-color: $gray-400 !important;
  &.is-invalid,
  &:invalid {
    border-bottom: 2px solid $danger !important;
  }
}

.custom-control {
  .custom-control-input[disabled=disabled] {
    & + .custom-control-label {
      // Disabled label for checkbox, radio,
      // switch bootstrap form components
      color: $gray-700!important;
    }
  }
}