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