summaryrefslogtreecommitdiff
path: root/src/assets/styles/_form-components.scss
blob: d1fe78543a517f10be39b0414a8f69791695bf23 (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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
.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: $dark !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;
    }
  }
}

.b-form-tag-remove {
  // X button to remove tag
  font-weight: normal;
}

.b-form-tags-button {
  // Add button inside input field
  white-space: nowrap;
  margin-right: -$spacer;
  &.btn-link-primary {
    color: $primary;
    fill: currentColor;
  }
}