Michael Davis | cb8bb19 | 2017-02-09 15:45:13 -0600 | [diff] [blame] | 1 | label, legend { |
| 2 | font-size:1em; |
| 3 | font-weight: 300; |
| 4 | margin: 0; |
| 5 | &.disabled { |
| 6 | color: $lightbg__grey; |
| 7 | } |
| 8 | .error { |
| 9 | font-size: .9em; |
| 10 | } |
| 11 | } |
| 12 | |
| 13 | input[type='email'], |
| 14 | input[type='number'], |
| 15 | input[type='password'], |
| 16 | input[type='search'], |
| 17 | input[type='tel'], |
| 18 | input[type='url'], |
| 19 | input[type='text'], |
| 20 | textarea { |
| 21 | border-radius: 0px; |
Michael Davis | e15a956 | 2017-03-03 14:30:24 -0600 | [diff] [blame^] | 22 | border: 1px solid $lightgrey; |
Michael Davis | cb8bb19 | 2017-02-09 15:45:13 -0600 | [diff] [blame] | 23 | height: 3.1em; |
Michael Davis | cb8bb19 | 2017-02-09 15:45:13 -0600 | [diff] [blame] | 24 | margin: 0 0 1em 0; |
Michael Davis | e15a956 | 2017-03-03 14:30:24 -0600 | [diff] [blame^] | 25 | background: $white; |
| 26 | box-shadow: 0 0 0; |
| 27 | transition: none !important; |
Michael Davis | cb8bb19 | 2017-02-09 15:45:13 -0600 | [diff] [blame] | 28 | &:focus { |
| 29 | border-color: $lightbg__accent; |
Michael Davis | e15a956 | 2017-03-03 14:30:24 -0600 | [diff] [blame^] | 30 | border-bottom: 5px solid $lightbg__primary; |
Michael Davis | cb8bb19 | 2017-02-09 15:45:13 -0600 | [diff] [blame] | 31 | } |
| 32 | &:disabled, .disabled { |
| 33 | background: $field__disabled; |
| 34 | border: 1px solid $lightbg__grey; |
| 35 | } |
| 36 | &.input__error { |
Michael Davis | 1947575 | 2017-02-23 18:30:23 -0600 | [diff] [blame] | 37 | border-color: $error-color; |
Michael Davis | cb8bb19 | 2017-02-09 15:45:13 -0600 | [diff] [blame] | 38 | } |
| 39 | } |
| 40 | |
| 41 | textarea { padding: .2em; |
| 42 | height: auto;} |
| 43 | input[type="submit"] { |
| 44 | margin: 1em 0; |
| 45 | width: 100%; |
| 46 | } |
| 47 | |
| 48 | //Custom select |
| 49 | select{ |
| 50 | border-radius: 0px; |
| 51 | height:auto; |
| 52 | @include fastTransition-all; |
| 53 | @include bgImage__arrowDown-primary; |
| 54 | &:focus { |
| 55 | border-color: $lightbg__accent; |
| 56 | @include bgImage__arrowDown-accent; |
| 57 | box-shadow: 0 0 0; |
| 58 | } |
| 59 | } |
| 60 | |
| 61 | //Custom Checkbox and Radio |
| 62 | .checkbox-custom, |
| 63 | .radio-custom { |
| 64 | opacity: 0; |
| 65 | position: absolute; |
| 66 | } |
| 67 | |
| 68 | .checkbox-custom, .checkbox-custom-label, |
| 69 | .radio-custom, |
| 70 | .radio-custom-label { |
| 71 | display: inline-block; |
| 72 | vertical-align: middle; |
| 73 | margin: .1em 0 .1em -.5em; |
| 74 | padding: .5em; |
| 75 | cursor: pointer; |
| 76 | } |
| 77 | |
| 78 | .checkbox-custom-label, .radio-custom-label { |
| 79 | position: relative; |
| 80 | padding-left: 2em; |
| 81 | |
| 82 | } |
| 83 | |
| 84 | .checkbox-custom + .checkbox-custom-label:before, |
| 85 | .radio-custom + .radio-custom-label:before { |
| 86 | content: ''; |
| 87 | background: #fff; |
| 88 | border: 1px solid $lightbg__grey; |
| 89 | display: inline-block; |
| 90 | vertical-align: middle; |
| 91 | width: 16px; |
| 92 | height: 16px; |
| 93 | margin-right: 10px; |
| 94 | margin-top: -3px; |
| 95 | text-align: center; |
| 96 | position: absolute; |
| 97 | left: 9px; |
| 98 | top: 15px; |
| 99 | } |
| 100 | |
| 101 | .checkbox-custom:checked + .checkbox-custom-label:after { |
| 102 | content: '\2713'; |
| 103 | position: absolute; |
| 104 | left: 10px; |
| 105 | top: 3px; |
| 106 | font-size: 1em; |
| 107 | padding: 4px 0 0 2px; |
| 108 | color: $white; |
| 109 | } |
| 110 | |
| 111 | .checkbox-custom:checked + .checkbox-custom-label:before { |
| 112 | background: $lightbg__primary; |
| 113 | @include fastTransition-all; |
| 114 | } |
| 115 | |
| 116 | .radio-custom + .radio-custom-label:before { |
| 117 | border-radius: 50%; |
| 118 | } |
| 119 | |
| 120 | .radio-custom:checked + .radio-custom-label:before { |
| 121 | background: $lightbg__primary; |
| 122 | @include fastTransition-all; |
| 123 | box-shadow: inset 0px 0px 0px 2px #fff; |
| 124 | } |
| 125 | |
| 126 | |
| 127 | .checkbox-custom:focus + .checkbox-custom-label, .radio-custom:focus + .radio-custom-label { |
| 128 | outline: 1px solid $lightbg__grey; /* focus style */ |
| 129 | } |