summaryrefslogtreecommitdiffstats
path: root/openecomp-ui/resources/scss/bootstrap-cust/_forms.scss
blob: 4ec2341011910075e9340f65a40f60c96bd20c0a (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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
.form-group {
  .control-label {
    @extend .body-2-semibold;
    font-weight: normal;
  }
  &.required {
    label:before {
      content: "*";
      color: $red;
      margin: 0 4px 0 0;
    }
  }
}
.form-control {
  @extend .body-1;
  border-radius: 2px;
  height: 30px;
  @include box-shadow(none);
  &:focus {
    @include box-shadow(none);
  }
  &:hover {
    border-color: $gray;
  }
}

label {
  @extend .body-3;
  margin-bottom: 8px;
}

.sdc-radio {
  label {
    font-weight: normal;
    margin-bottom: 0;
  }
  input[type="radio"] {
    margin: 0;
  }
}
select.form-control {
  display: block;
  width: 215px;
}

select[multiple] {
  background: none;
}

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

  &:before {
    content: "";
    display: inline-block;
    width: 11px;
    height: 11px;
    margin-right: 10px;
    position: absolute;
    background-color: $white;
    border: 1px solid $blue;
    box-sizing: content-box;
  }
}

.radio label {
  font-weight: normal;
  display: inline-block;
  cursor: pointer;
  margin-right: $body-font-1;
  font-size: $body-font-1;
}

.checkbox label {
  font-weight: normal;
  display: inline-block;
  cursor: pointer;
  margin-right: $body-font-1;
  font-size: $body-font-1;
}

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

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


input[type=checkbox]:checked:before {
  font-family: $icon-font-family;
  content: "\2714";
  font-size: $icon-font-size;
  color: $blue;
  text-align: center;
	line-height: 13px;
}

.radio,
.checkbox {
  margin-top: 0px;
  margin-bottom: 0px;
}

.radio input[type="radio"],
.radio-inline input[type="radio"],
.checkbox input[type="checkbox"],
.checkbox-inline input[type="checkbox"] {
  position: absolute;
  margin-left: -20px;
  top: 2px;
}