fleet/frontend/components/forms/fields/InputFieldWithIcon/_styles.scss
2016-12-01 13:57:19 -05:00

86 lines
1.4 KiB
SCSS

.input-icon-field {
margin-top: $pad-base;
position: relative;
width: 100%;
&__icon {
position: absolute;
right: 6px;
top: 28px;
font-size: 14px;
color: $accent-text;
&--active {
color: $brand;
}
&--error {
color: $alert;
}
}
&__input {
border-left: 0;
border-right: 0;
border-top: 0;
border-bottom-width: 2px;
font-size: 20px;
border-bottom-style: solid;
border-bottom-color: $brand-ultralight;
padding-right: 30px;
opacity: 1;
text-indent: 1px;
position: relative;
width: 100%;
box-sizing: border-box;
font-family: 'Oxygen', $helvetica;
color: $text-dark;
@include placeholder {
color: $accent-text;
}
&:focus {
outline: none;
}
&--error {
border-bottom-color: $alert;
}
&--password {
letter-spacing: 7px;
}
}
&__label {
color: $brand;
font-size: $small;
text-transform: lowercase;
&--hidden {
visibility: hidden;
}
}
&__errors {
color: $alert;
font-size: $small;
text-transform: lowercase;
}
&__hint {
font-size: 14px;
font-weight: $normal;
line-height: 1.57;
letter-spacing: 1px;
color: $accent-text;
code {
color: $brand-light;
background-color: $accent-light;
padding: 2px;
font-family: 'SourceCodePro', $monospace;
}
}
}