blob: 4ec2341011910075e9340f65a40f60c96bd20c0a [file] [log] [blame]
Michael Landoefa037d2017-02-19 12:57:33 +02001.form-group {
2 .control-label {
Avi Zivb8e2faf2017-07-18 19:45:38 +03003 @extend .body-2-semibold;
talig8e9c0652017-12-20 14:30:43 +02004 font-weight: normal;
Michael Landoefa037d2017-02-19 12:57:33 +02005 }
6 &.required {
7 label:before {
8 content: "*";
9 color: $red;
10 margin: 0 4px 0 0;
11 }
12 }
13}
14.form-control {
15 @extend .body-1;
16 border-radius: 2px;
17 height: 30px;
18 @include box-shadow(none);
19 &:focus {
20 @include box-shadow(none);
21 }
22 &:hover {
23 border-color: $gray;
24 }
25}
26
27label {
28 @extend .body-3;
29 margin-bottom: 8px;
30}
31
talig8e9c0652017-12-20 14:30:43 +020032.sdc-radio {
33 label {
34 font-weight: normal;
35 margin-bottom: 0;
36 }
37 input[type="radio"] {
38 margin: 0;
39 }
40}
Michael Landoefa037d2017-02-19 12:57:33 +020041select.form-control {
42 display: block;
43 width: 215px;
44}
45
46select[multiple] {
47 background: none;
48}
49
talig8e9c0652017-12-20 14:30:43 +020050input[type="checkbox"] {
Michael Landoefa037d2017-02-19 12:57:33 +020051 margin: 0;
52
53 &:before {
54 content: "";
55 display: inline-block;
56 width: 11px;
57 height: 11px;
58 margin-right: 10px;
59 position: absolute;
60 background-color: $white;
61 border: 1px solid $blue;
62 box-sizing: content-box;
63 }
64}
65
66.radio label {
67 font-weight: normal;
68 display: inline-block;
69 cursor: pointer;
70 margin-right: $body-font-1;
71 font-size: $body-font-1;
72}
73
74.checkbox label {
75 font-weight: normal;
76 display: inline-block;
77 cursor: pointer;
78 margin-right: $body-font-1;
79 font-size: $body-font-1;
80}
81
82.radio input:before {
83 border-radius: 8px;
84}
85
86.checkbox input:before {
87 border-radius: 2px;
88}
89
Michael Landoefa037d2017-02-19 12:57:33 +020090
91input[type=checkbox]:checked:before {
92 font-family: $icon-font-family;
AviZi280f8012017-06-09 02:39:56 +030093 content: "\2714";
Michael Landoefa037d2017-02-19 12:57:33 +020094 font-size: $icon-font-size;
95 color: $blue;
96 text-align: center;
AviZi280f8012017-06-09 02:39:56 +030097 line-height: 13px;
Michael Landoefa037d2017-02-19 12:57:33 +020098}
99
100.radio,
101.checkbox {
102 margin-top: 0px;
103 margin-bottom: 0px;
104}
105
106.radio input[type="radio"],
107.radio-inline input[type="radio"],
108.checkbox input[type="checkbox"],
109.checkbox-inline input[type="checkbox"] {
110 position: absolute;
111 margin-left: -20px;
112 top: 2px;
113}