_forms.scss 1.2 KB
Newer Older
C
chomik 已提交
1 2 3 4 5 6 7
textarea {
  &[cols] {
    height: auto;
  }
}

.form-label {
C
codecalm 已提交
8
  font-size: $h4-font-size;
C
codecalm 已提交
9
  font-weight: $font-weight-bold;
C
chomik 已提交
10
  display: block;
C
codecalm 已提交
11
  margin-bottom: .5rem;
C
chomik 已提交
12 13 14
}

.form-control {
15 16
  vertical-align: middle;

C
chomik 已提交
17
  &:-webkit-autofill {
C
codecalm 已提交
18
    box-shadow: 0 0 0 1000px #fff inset;
C
chomik 已提交
19 20
  }

C
chomik 已提交
21 22 23 24 25 26 27 28
  &:disabled,
  &.disabled {
    color: $text-muted;
    user-select: none;
  }
}

.form-control-light {
29 30
  background-color: $gray-100;
  border-color: transparent;
C
chomik 已提交
31 32 33 34 35 36 37 38
}

.form-footer {
  margin-top: 2rem;
}

.form-fieldset {
  padding: 1rem;
C
chomik 已提交
39
  margin-bottom: 1rem;
C
codecalm 已提交
40
  background: $min-black;
C
chomik 已提交
41 42 43 44 45 46 47 48 49 50 51 52 53
  border: 1px solid $border-color;
  border-radius: $border-radius;
}

.form-required {
  color: $red;
}

.custom-control-label::before {
  background: transparent;
  border: 1px solid $border-color;
}

C
chomik 已提交
54 55 56 57 58 59 60
/**
Form help
 */
.form-help {
  display: inline-block;
  width: 1rem;
  height: 1rem;
C
codecalm 已提交
61
  font-size: $h5-font-size;
C
chomik 已提交
62 63
  line-height: 1rem;
  color: $text-muted;
C
codecalm 已提交
64
  text-align: center;
C
chomik 已提交
65 66 67
  text-decoration: none;
  cursor: pointer;
  user-select: none;
C
codecalm 已提交
68 69 70
  background: $gray-100;
  border-radius: 50%;
  transition: .3s background-color, .3s color;
C
chomik 已提交
71 72 73 74

  &:hover,
  &[aria-describedby] {
    color: #fff;
C
codecalm 已提交
75
    background: $primary;
C
chomik 已提交
76 77
  }
}