blob: 940f440dede32d4d8f99676a28f0d1b2622368e3 [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 }
svishnevd105b362018-01-15 18:04:38 +020025 &.custom-select {
26 padding-top: 3px;
27 }
Michael Landoefa037d2017-02-19 12:57:33 +020028}
29
30label {
31 @extend .body-3;
32 margin-bottom: 8px;
33}
34
talig8e9c0652017-12-20 14:30:43 +020035.sdc-radio {
36 label {
37 font-weight: normal;
38 margin-bottom: 0;
39 }
40 input[type="radio"] {
41 margin: 0;
42 }
43}
Michael Landoefa037d2017-02-19 12:57:33 +020044select.form-control {
45 display: block;
46 width: 215px;
47}
48
49select[multiple] {
50 background: none;
51}
52
talig8e9c0652017-12-20 14:30:43 +020053input[type="checkbox"] {
Michael Landoefa037d2017-02-19 12:57:33 +020054 margin: 0;
55
56 &:before {
57 content: "";
58 display: inline-block;
59 width: 11px;
60 height: 11px;
61 margin-right: 10px;
62 position: absolute;
63 background-color: $white;
64 border: 1px solid $blue;
65 box-sizing: content-box;
66 }
67}
68
69.radio label {
70 font-weight: normal;
71 display: inline-block;
72 cursor: pointer;
73 margin-right: $body-font-1;
74 font-size: $body-font-1;
75}
76
77.checkbox label {
78 font-weight: normal;
79 display: inline-block;
80 cursor: pointer;
81 margin-right: $body-font-1;
82 font-size: $body-font-1;
83}
84
85.radio input:before {
86 border-radius: 8px;
87}
88
89.checkbox input:before {
90 border-radius: 2px;
91}
92
Michael Landoefa037d2017-02-19 12:57:33 +020093
94input[type=checkbox]:checked:before {
95 font-family: $icon-font-family;
AviZi280f8012017-06-09 02:39:56 +030096 content: "\2714";
Michael Landoefa037d2017-02-19 12:57:33 +020097 font-size: $icon-font-size;
98 color: $blue;
99 text-align: center;
AviZi280f8012017-06-09 02:39:56 +0300100 line-height: 13px;
Michael Landoefa037d2017-02-19 12:57:33 +0200101}
102
103.radio,
104.checkbox {
105 margin-top: 0px;
106 margin-bottom: 0px;
107}
108
109.radio input[type="radio"],
110.radio-inline input[type="radio"],
111.checkbox input[type="checkbox"],
112.checkbox-inline input[type="checkbox"] {
113 position: absolute;
114 margin-left: -20px;
115 top: 2px;
116}