label, legend { font-size:1em; font-weight: 300; margin: 0; &.disabled { color: $lightbg__grey; } .error { font-size: .9em; } } .label__helper-text { color: $darkgrey; line-height: 1.2; font-size: 0.9em; margin-bottom: 0.4em; } input[type='email'], input[type='number'], input[type='password'], input[type='search'], input[type='tel'], input[type='url'], input[type='text'], input[type='date'], input[type='time'], textarea { border-radius: 0px; border: 1px solid $input-border; margin: 0; background: $white; box-shadow: 0 0 0; transition: none !important; max-height: 2.1em; &:focus { border-color: $medgrey; box-shadow: 0 -3px $field__focus inset; } &:disabled, .disabled { background: $field__disabled; border: 1px solid $lightbg__grey; } &.input__error { box-shadow: 0 -5px $error-color inset; color: $error-color; &:focus { box-shadow: 0 -5px $field__focus inset; } } } //input validation .ng-invalid.ng-touched { box-shadow: 0 -3px $error-color inset; &:focus { border-color: $medgrey; box-shadow: 0 -3px $error-color inset; } } .submitted .ng-invalid { box-shadow: 0 -3px $error-color inset; &:focus { border-color: $medgrey; box-shadow: 0 -3px $error-color inset; } } .form-error { margin-bottom: .7em; font-size: 0.8rem; color: #c60f13; height:1rem; display: block; visibility: hidden; .visible { visibility: visible; } } //Foundation overwrite [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 { border-color: $input-border; } input[readonly], input[readonly]:focus{ box-shadow: 0 0 0; background: $field__disabled; border: 1px solid $lightbg__grey; } textarea { padding: .2em; height: auto;} input[type="submit"], .submit { margin: 1em 0; width: 100%; } //Custom select select{ border-radius: 0px; height: auto; padding-right: 0.5rem; //override inherited Foundation style border-color: $input-border; @include fastTransition-all; @include bgImage__arrowDown-primary; &:focus { box-shadow: 0 0 0; } &[disabled] { @include bgImage__arrowDown-disabled; } } #login__form { input { height: 3em; max-height: none; } } .form__validation-message { color: $error-color; font-size: 0.9em; }