Michael Lando | efa037d | 2017-02-19 12:57:33 +0200 | [diff] [blame] | 1 | .form-group { |
| 2 | .control-label { |
Avi Ziv | b8e2faf | 2017-07-18 19:45:38 +0300 | [diff] [blame] | 3 | @extend .body-2-semibold; |
talig | 8e9c065 | 2017-12-20 14:30:43 +0200 | [diff] [blame] | 4 | font-weight: normal; |
Michael Lando | efa037d | 2017-02-19 12:57:33 +0200 | [diff] [blame] | 5 | } |
| 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 | } |
svishnev | d105b36 | 2018-01-15 18:04:38 +0200 | [diff] [blame^] | 25 | &.custom-select { |
| 26 | padding-top: 3px; |
| 27 | } |
Michael Lando | efa037d | 2017-02-19 12:57:33 +0200 | [diff] [blame] | 28 | } |
| 29 | |
| 30 | label { |
| 31 | @extend .body-3; |
| 32 | margin-bottom: 8px; |
| 33 | } |
| 34 | |
talig | 8e9c065 | 2017-12-20 14:30:43 +0200 | [diff] [blame] | 35 | .sdc-radio { |
| 36 | label { |
| 37 | font-weight: normal; |
| 38 | margin-bottom: 0; |
| 39 | } |
| 40 | input[type="radio"] { |
| 41 | margin: 0; |
| 42 | } |
| 43 | } |
Michael Lando | efa037d | 2017-02-19 12:57:33 +0200 | [diff] [blame] | 44 | select.form-control { |
| 45 | display: block; |
| 46 | width: 215px; |
| 47 | } |
| 48 | |
| 49 | select[multiple] { |
| 50 | background: none; |
| 51 | } |
| 52 | |
talig | 8e9c065 | 2017-12-20 14:30:43 +0200 | [diff] [blame] | 53 | input[type="checkbox"] { |
Michael Lando | efa037d | 2017-02-19 12:57:33 +0200 | [diff] [blame] | 54 | 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 Lando | efa037d | 2017-02-19 12:57:33 +0200 | [diff] [blame] | 93 | |
| 94 | input[type=checkbox]:checked:before { |
| 95 | font-family: $icon-font-family; |
AviZi | 280f801 | 2017-06-09 02:39:56 +0300 | [diff] [blame] | 96 | content: "\2714"; |
Michael Lando | efa037d | 2017-02-19 12:57:33 +0200 | [diff] [blame] | 97 | font-size: $icon-font-size; |
| 98 | color: $blue; |
| 99 | text-align: center; |
AviZi | 280f801 | 2017-06-09 02:39:56 +0300 | [diff] [blame] | 100 | line-height: 13px; |
Michael Lando | efa037d | 2017-02-19 12:57:33 +0200 | [diff] [blame] | 101 | } |
| 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 | } |