cyril lopez 1b8f9747f2 CreatedInputEmailWithErrors and associated documentation
Reorganize Inputs*WithErrors props and add  noErrorsDescription prop so it can set a spacer in order to keep the input s  alignment correct
2018-02-05 17:16:15 +01:00

72 lines
1.3 KiB
SCSS

.addonEmail {
width: 3.4rem;
height: 3.4rem;
margin-top: .9rem;
padding-left: 0.9rem;
background-color: rgba(16, 22, 34, 0.02);
border: 1px solid #E3E9F3;
border-radius: 0.25rem;
color: rgba(16, 22, 34, 0.5);
line-height: 3.2rem;
font-size: 1.3rem;
font-family: 'Lato';
font-weight: 600!important;
text-transform: capitalize;
-moz-appearance: none;
-webkit-appearance: none;
-webkit-font-smoothing: antialiased;
&:after {
content: '@';
display: inline-table;
color: #B3B5B9;
font-size: 16px;
font-weight: 900;
font-family: Lato;
}
& + input {
border-left: 0px !important;
}
}
.inputEmail {
min-width: 200px;
margin-bottom: 1rem;
font-size: 1.3rem;
> input {
height: 3.4rem;
margin-top: .9rem;
padding-left: 1rem;
background-size: 0 !important;
border: 1px solid #E3E9F3;
border-radius: 0.25rem;
line-height: 3.4rem;
font-size: 1.3rem;
font-family: 'Lato' !important;
box-shadow: 0px 1px 1px rgba(104, 118, 142, 0.05);
&:focus {
border-color: #78caff;
}
}
& + span {
border-color: #E3E9F3;
}
}
.errorAddon {
border: 1px solid #ff203c!important;
border-right: none!important;
}
.addonFocus {
border-color: #78caff;
border-right: 0;
}
.invalidEmail {
border-color: #ff203c !important;
border-left: 0;
}