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 | } |
| 25 | } |
| 26 | |
| 27 | label { |
| 28 | @extend .body-3; |
| 29 | margin-bottom: 8px; |
| 30 | } |
| 31 | |
talig | 8e9c065 | 2017-12-20 14:30:43 +0200 | [diff] [blame] | 32 | .sdc-radio { |
| 33 | label { |
| 34 | font-weight: normal; |
| 35 | margin-bottom: 0; |
| 36 | } |
| 37 | input[type="radio"] { |
| 38 | margin: 0; |
| 39 | } |
| 40 | } |
Michael Lando | efa037d | 2017-02-19 12:57:33 +0200 | [diff] [blame] | 41 | select.form-control { |
| 42 | display: block; |
| 43 | width: 215px; |
| 44 | } |
| 45 | |
| 46 | select[multiple] { |
| 47 | background: none; |
| 48 | } |
| 49 | |
talig | 8e9c065 | 2017-12-20 14:30:43 +0200 | [diff] [blame] | 50 | input[type="checkbox"] { |
Michael Lando | efa037d | 2017-02-19 12:57:33 +0200 | [diff] [blame] | 51 | 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 Lando | efa037d | 2017-02-19 12:57:33 +0200 | [diff] [blame] | 90 | |
| 91 | input[type=checkbox]:checked:before { |
| 92 | font-family: $icon-font-family; |
AviZi | 280f801 | 2017-06-09 02:39:56 +0300 | [diff] [blame] | 93 | content: "\2714"; |
Michael Lando | efa037d | 2017-02-19 12:57:33 +0200 | [diff] [blame] | 94 | font-size: $icon-font-size; |
| 95 | color: $blue; |
| 96 | text-align: center; |
AviZi | 280f801 | 2017-06-09 02:39:56 +0300 | [diff] [blame] | 97 | line-height: 13px; |
Michael Lando | efa037d | 2017-02-19 12:57:33 +0200 | [diff] [blame] | 98 | } |
| 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 | } |