2016-11-03 19:40:54 +00:00
|
|
|
.input-field {
|
2016-11-09 14:00:40 +00:00
|
|
|
@include transition(border 150ms ease-in-out, box-shadow 150ms ease-in-out);
|
2016-11-11 14:42:23 +00:00
|
|
|
line-height: 34px;
|
2016-11-03 19:40:54 +00:00
|
|
|
border-radius: 2px;
|
2016-11-09 14:00:40 +00:00
|
|
|
background-color: $white;
|
|
|
|
border: solid 1px $accent-medium;
|
2016-11-03 19:40:54 +00:00
|
|
|
font-size: $base;
|
2016-11-09 14:00:40 +00:00
|
|
|
padding: $pad-xsmall $pad-base;
|
|
|
|
color: $text-dark;
|
|
|
|
font-family: 'Oxygen', sans-serif;
|
2016-11-11 14:42:23 +00:00
|
|
|
box-sizing: border-box;
|
|
|
|
height: 40px;
|
2016-11-03 19:40:54 +00:00
|
|
|
|
|
|
|
@include placeholder {
|
|
|
|
color: $accent-text;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:focus {
|
|
|
|
outline: none;
|
2016-11-09 14:00:40 +00:00
|
|
|
box-shadow: inset 0 0 8px 0 rgba($black, 0.1);
|
|
|
|
border-bottom-color: $brand;
|
2016-11-03 19:40:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&--error {
|
2016-11-09 14:00:40 +00:00
|
|
|
@include transition(background 150ms ease-in-out, color 150ms ease-in-out);
|
2016-11-03 19:40:54 +00:00
|
|
|
border-color: $alert;
|
2016-11-09 14:00:40 +00:00
|
|
|
background-color: $alert;
|
|
|
|
color: $white;
|
|
|
|
box-shadow: inset 0 -4px 4px 0 rgba($black, 0.1);
|
|
|
|
|
|
|
|
&:focus {
|
|
|
|
box-shadow: inset 0 0 8px 0 rgba($black, 0.1);
|
|
|
|
border-bottom-color: $alert;
|
|
|
|
background-color: $white;
|
|
|
|
color: $text-dark;
|
|
|
|
}
|
2016-11-03 19:40:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&--password {
|
|
|
|
letter-spacing: 7px;
|
|
|
|
}
|
|
|
|
|
2016-11-09 14:00:40 +00:00
|
|
|
&__textarea {
|
|
|
|
min-height: 100px;
|
|
|
|
max-width: 100%;
|
|
|
|
}
|
|
|
|
|
2016-11-03 19:40:54 +00:00
|
|
|
&__label {
|
2016-11-09 14:00:40 +00:00
|
|
|
display: block;
|
|
|
|
font-size: $base;
|
|
|
|
font-weight: $light;
|
|
|
|
color: $text-dark;
|
|
|
|
margin-bottom: $pad-xsmall;
|
|
|
|
|
2016-11-03 19:40:54 +00:00
|
|
|
&--error {
|
|
|
|
color: $alert;
|
|
|
|
}
|
|
|
|
}
|
2016-11-09 14:00:40 +00:00
|
|
|
|
|
|
|
&__wrapper {
|
2016-11-11 14:42:23 +00:00
|
|
|
margin-bottom: $pad-base;
|
2016-11-09 14:00:40 +00:00
|
|
|
}
|
2016-11-03 19:40:54 +00:00
|
|
|
}
|