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 | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame^] | 22 | border: 1px solid $medgrey; |
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 | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame^] | 30 | box-shadow: 0 -5px $field__focus inset; |
Michael Davis | cb8bb19 | 2017-02-09 15:45:13 -0600 | [diff] [blame] | 31 | } |
Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame^] | 32 | &:disabled, |
| 33 | .disabled { |
Michael Davis | cb8bb19 | 2017-02-09 15:45:13 -0600 | [diff] [blame] | 34 | background: $field__disabled; |
| 35 | border: 1px solid $lightbg__grey; |
| 36 | } |
| 37 | &.input__error { |
Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame^] | 38 | box-shadow: 0 -5px $error-color inset; |
| 39 | color: $error-color; |
| 40 | &:focus { |
| 41 | box-shadow: 0 -5px $field__focus inset; |
| 42 | } |
Michael Davis | cb8bb19 | 2017-02-09 15:45:13 -0600 | [diff] [blame] | 43 | } |
| 44 | } |
| 45 | |
Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame^] | 46 | input[readonly], |
| 47 | input[readonly]:focus{ |
| 48 | box-shadow: 0 0 0; |
| 49 | background: $field__disabled; |
| 50 | border: 1px solid $lightbg__grey; |
| 51 | } |
| 52 | |
Michael Davis | cb8bb19 | 2017-02-09 15:45:13 -0600 | [diff] [blame] | 53 | textarea { padding: .2em; |
| 54 | height: auto;} |
Iftekharul Islam | f157d37 | 2017-03-08 11:11:27 -0600 | [diff] [blame] | 55 | input[type="submit"], .submit { |
Michael Davis | cb8bb19 | 2017-02-09 15:45:13 -0600 | [diff] [blame] | 56 | margin: 1em 0; |
| 57 | width: 100%; |
| 58 | } |
| 59 | |
| 60 | //Custom select |
| 61 | select{ |
| 62 | border-radius: 0px; |
| 63 | height:auto; |
| 64 | @include fastTransition-all; |
| 65 | @include bgImage__arrowDown-primary; |
| 66 | &:focus { |
| 67 | border-color: $lightbg__accent; |
| 68 | @include bgImage__arrowDown-accent; |
| 69 | box-shadow: 0 0 0; |
| 70 | } |
| 71 | } |