blob: 21253e7cd0f91699b7803b343308b30d5476da73 [file] [log] [blame]
Michael Daviscb8bb192017-02-09 15:45:13 -06001label, 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
13input[type='email'],
14input[type='number'],
15input[type='password'],
16input[type='search'],
17input[type='tel'],
18input[type='url'],
19input[type='text'],
Yoshie Muranaka5bd1dec2019-05-16 13:06:32 -050020input[type='date'],
21input[type='time'],
Michael Daviscb8bb192017-02-09 15:45:13 -060022textarea {
23 border-radius: 0px;
Michael Davis4ac71d42017-06-19 14:47:50 -050024 border: 1px solid $input-border;
beccabroeka09cc2d2019-01-23 14:26:55 -060025 margin: 0;
Michael Davise15a9562017-03-03 14:30:24 -060026 background: $white;
27 box-shadow: 0 0 0;
28 transition: none !important;
Yoshie Muranaka5bd1dec2019-05-16 13:06:32 -050029 max-height: 2.1em;
Michael Daviscb8bb192017-02-09 15:45:13 -060030 &:focus {
Michael Davis19ac8f82017-05-08 11:20:12 -050031 border-color: $medgrey;
beccabroeka09cc2d2019-01-23 14:26:55 -060032 box-shadow: 0 -3px $field__focus inset;
Michael Daviscb8bb192017-02-09 15:45:13 -060033 }
Michael Davis51946552017-05-01 10:30:38 -050034 &:disabled,
35 .disabled {
Michael Daviscb8bb192017-02-09 15:45:13 -060036 background: $field__disabled;
37 border: 1px solid $lightbg__grey;
38 }
39 &.input__error {
Michael Davis51946552017-05-01 10:30:38 -050040 box-shadow: 0 -5px $error-color inset;
41 color: $error-color;
42 &:focus {
43 box-shadow: 0 -5px $field__focus inset;
44 }
Michael Daviscb8bb192017-02-09 15:45:13 -060045 }
46}
47
beccabroeka09cc2d2019-01-23 14:26:55 -060048//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 Davis4ac71d42017-06-19 14:47:50 -050075//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 Davis51946552017-05-01 10:30:38 -050080input[readonly],
81input[readonly]:focus{
82 box-shadow: 0 0 0;
83 background: $field__disabled;
84 border: 1px solid $lightbg__grey;
85}
86
Michael Daviscb8bb192017-02-09 15:45:13 -060087textarea { padding: .2em;
88 height: auto;}
Iftekharul Islamf157d372017-03-08 11:11:27 -060089input[type="submit"], .submit {
Michael Daviscb8bb192017-02-09 15:45:13 -060090 margin: 1em 0;
91 width: 100%;
92}
93
94//Custom select
95select{
96 border-radius: 0px;
Yoshie Muranakade382082019-04-30 13:56:10 -050097 height: auto;
98 padding-right: 0.5rem; //override inherited Foundation style
Yoshie Muranaka5bd1dec2019-05-16 13:06:32 -050099 border-color: $input-border;
Michael Daviscb8bb192017-02-09 15:45:13 -0600100 @include fastTransition-all;
101 @include bgImage__arrowDown-primary;
102 &:focus {
Michael Daviscb8bb192017-02-09 15:45:13 -0600103 box-shadow: 0 0 0;
104 }
Yoshie Muranakade382082019-04-30 13:56:10 -0500105 &[disabled] {
106 @include bgImage__arrowDown-disabled;
107 }
Michael Daviscb8bb192017-02-09 15:45:13 -0600108}
Yoshie Muranaka5bd1dec2019-05-16 13:06:32 -0500109
110#login__form {
111 input {
112 height: 3em;
113 max-height: none;
114 }
115}