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'], |
Yoshie Muranaka | 5bd1dec | 2019-05-16 13:06:32 -0500 | [diff] [blame^] | 20 | input[type='date'], |
| 21 | input[type='time'], |
Michael Davis | cb8bb19 | 2017-02-09 15:45:13 -0600 | [diff] [blame] | 22 | textarea { |
| 23 | border-radius: 0px; |
Michael Davis | 4ac71d4 | 2017-06-19 14:47:50 -0500 | [diff] [blame] | 24 | border: 1px solid $input-border; |
beccabroek | a09cc2d | 2019-01-23 14:26:55 -0600 | [diff] [blame] | 25 | margin: 0; |
Michael Davis | e15a956 | 2017-03-03 14:30:24 -0600 | [diff] [blame] | 26 | background: $white; |
| 27 | box-shadow: 0 0 0; |
| 28 | transition: none !important; |
Yoshie Muranaka | 5bd1dec | 2019-05-16 13:06:32 -0500 | [diff] [blame^] | 29 | max-height: 2.1em; |
Michael Davis | cb8bb19 | 2017-02-09 15:45:13 -0600 | [diff] [blame] | 30 | &:focus { |
Michael Davis | 19ac8f8 | 2017-05-08 11:20:12 -0500 | [diff] [blame] | 31 | border-color: $medgrey; |
beccabroek | a09cc2d | 2019-01-23 14:26:55 -0600 | [diff] [blame] | 32 | box-shadow: 0 -3px $field__focus inset; |
Michael Davis | cb8bb19 | 2017-02-09 15:45:13 -0600 | [diff] [blame] | 33 | } |
Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 34 | &:disabled, |
| 35 | .disabled { |
Michael Davis | cb8bb19 | 2017-02-09 15:45:13 -0600 | [diff] [blame] | 36 | background: $field__disabled; |
| 37 | border: 1px solid $lightbg__grey; |
| 38 | } |
| 39 | &.input__error { |
Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 40 | box-shadow: 0 -5px $error-color inset; |
| 41 | color: $error-color; |
| 42 | &:focus { |
| 43 | box-shadow: 0 -5px $field__focus inset; |
| 44 | } |
Michael Davis | cb8bb19 | 2017-02-09 15:45:13 -0600 | [diff] [blame] | 45 | } |
| 46 | } |
| 47 | |
beccabroek | a09cc2d | 2019-01-23 14:26:55 -0600 | [diff] [blame] | 48 | //input validation |
| 49 | .ng-invalid.ng-touched { |
| 50 | box-shadow: 0 -3px $error-color inset; |
| 51 | &:focus { |
| 52 | border-color: $medgrey; |
| 53 | box-shadow: 0 -3px $error-color inset; |
| 54 | } |
| 55 | } |
| 56 | .submitted .ng-invalid { |
| 57 | box-shadow: 0 -3px $error-color inset; |
| 58 | &:focus { |
| 59 | border-color: $medgrey; |
| 60 | box-shadow: 0 -3px $error-color inset; |
| 61 | } |
| 62 | } |
| 63 | |
| 64 | .form-error { |
| 65 | margin-bottom: .7em; |
| 66 | font-size: 0.8rem; |
| 67 | color: #c60f13; |
| 68 | height:1rem; |
| 69 | display: block; |
| 70 | visibility: hidden; |
| 71 | .visible { |
| 72 | visibility: visible; |
| 73 | } |
| 74 | } |
Michael Davis | 4ac71d4 | 2017-06-19 14:47:50 -0500 | [diff] [blame] | 75 | //Foundation overwrite |
| 76 | [type=color], [type=date], [type=datetime-local], [type=datetime], [type=email], [type=month], [type=number], [type=password], [type=search], [type=tel], [type=text], [type=time], [type=url], [type=week], textarea { |
| 77 | border-color: $input-border; |
| 78 | } |
| 79 | |
Michael Davis | 5194655 | 2017-05-01 10:30:38 -0500 | [diff] [blame] | 80 | input[readonly], |
| 81 | input[readonly]:focus{ |
| 82 | box-shadow: 0 0 0; |
| 83 | background: $field__disabled; |
| 84 | border: 1px solid $lightbg__grey; |
| 85 | } |
| 86 | |
Michael Davis | cb8bb19 | 2017-02-09 15:45:13 -0600 | [diff] [blame] | 87 | textarea { padding: .2em; |
| 88 | height: auto;} |
Iftekharul Islam | f157d37 | 2017-03-08 11:11:27 -0600 | [diff] [blame] | 89 | input[type="submit"], .submit { |
Michael Davis | cb8bb19 | 2017-02-09 15:45:13 -0600 | [diff] [blame] | 90 | margin: 1em 0; |
| 91 | width: 100%; |
| 92 | } |
| 93 | |
| 94 | //Custom select |
| 95 | select{ |
| 96 | border-radius: 0px; |
Yoshie Muranaka | de38208 | 2019-04-30 13:56:10 -0500 | [diff] [blame] | 97 | height: auto; |
| 98 | padding-right: 0.5rem; //override inherited Foundation style |
Yoshie Muranaka | 5bd1dec | 2019-05-16 13:06:32 -0500 | [diff] [blame^] | 99 | border-color: $input-border; |
Michael Davis | cb8bb19 | 2017-02-09 15:45:13 -0600 | [diff] [blame] | 100 | @include fastTransition-all; |
| 101 | @include bgImage__arrowDown-primary; |
| 102 | &:focus { |
Michael Davis | cb8bb19 | 2017-02-09 15:45:13 -0600 | [diff] [blame] | 103 | box-shadow: 0 0 0; |
| 104 | } |
Yoshie Muranaka | de38208 | 2019-04-30 13:56:10 -0500 | [diff] [blame] | 105 | &[disabled] { |
| 106 | @include bgImage__arrowDown-disabled; |
| 107 | } |
Michael Davis | cb8bb19 | 2017-02-09 15:45:13 -0600 | [diff] [blame] | 108 | } |
Yoshie Muranaka | 5bd1dec | 2019-05-16 13:06:32 -0500 | [diff] [blame^] | 109 | |
| 110 | #login__form { |
| 111 | input { |
| 112 | height: 3em; |
| 113 | max-height: none; |
| 114 | } |
| 115 | } |