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