summaryrefslogtreecommitdiffstats
path: root/resources/scss/bootstrap-cust/_forms.scss
blob: 435352188edb2fba4eaf7d4948d7de6514f60003 (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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
.form-group {
  .control-label {
    @extend .body-2-medium;
  }
  &.required {
    label:before {
      content: "*";
      color: $text-color10;
    }
  }
}
.form-control {
  border-radius: 2px;
  height: 30px;
  @include box-shadow(none);
  &:focus {
    @include box-shadow(none);
  }
  &:hover {
    border-color: $neutral-gray;
  }
}

label {
  @extend .body-3;
}

select.form-control {
  display: block;
  width: 215px;
}

select[multiple] {
  background: none;
}

input[type="radio"], input[type="checkbox"] {
  margin: 0;

  &:before {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 10px;
    position: absolute;
    left: -1px;
    bottom: -1px;
    background-color: $white;
    border: 1px solid $border-color3;
  }
}

.radio, .checkbox label {
  font-weight: normal;
  display: inline-block;
  cursor: pointer;
  margin-right: 15px;
  font-size: 13px;
}

.radio input:before {
  border-radius: 8px;
}

.checkbox input:before {
  border-radius: 3px;
}

input[type=radio]:checked:before {
  content: "\2022";
  color: $background-color5;
  font-size: 32px;
  text-align: center;
  line-height: 16px;
}

input[type=checkbox]:checked:before {
  content: "\2713";
  font-size: 12px;
  color: $background-color5;
  text-align: center;
  line-height: 16px;
}