104 lines
1.6 KiB
CSS
104 lines
1.6 KiB
CSS
/* .input {
|
|
//padding: 0.4em 0.25em;
|
|
width: 100%;
|
|
background: transparent;
|
|
color: #afb5bb;
|
|
//font-size: 1.55em;
|
|
&:focus + label span {
|
|
transform: translate3d(0, -90%, 0);
|
|
}
|
|
|
|
& + label {
|
|
position: absolute;
|
|
width: 100%;
|
|
text-align: left;
|
|
pointer-events: none;
|
|
left: 0;
|
|
& span{
|
|
transition: transform .3s;
|
|
}
|
|
}
|
|
} */
|
|
.input-container {
|
|
position: relative;
|
|
margin-top: 10px;
|
|
width: 100%;
|
|
}
|
|
|
|
.input {
|
|
background-color: transparent;
|
|
border: none;
|
|
padding: 10px 10px 10px 5px;
|
|
border-bottom: 1px solid #64619f;
|
|
width: 100%;
|
|
font-size: .9em;
|
|
font-weight: 500;
|
|
color: white;
|
|
}
|
|
|
|
.input ~ label {
|
|
font-size: 1em;
|
|
font-weight: normal;
|
|
position: absolute;
|
|
pointer-events: none;
|
|
left: 5px;
|
|
top: 10px;
|
|
-webkit-transition: 0.3s ease all;
|
|
transition: 0.3s ease all;
|
|
font-weight: 400;
|
|
color: #8e8e8e;
|
|
opacity: .4;
|
|
}
|
|
|
|
.input:focus {
|
|
outline: none;
|
|
}
|
|
|
|
.input:focus ~ label,
|
|
.input:valid ~ label {
|
|
top: -.8em;
|
|
font-size: 12px;
|
|
color: #5396e7;
|
|
opacity: 1;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.input:focus ~ .bar:before {
|
|
width: 100%;
|
|
}
|
|
|
|
.bar {
|
|
position: relative;
|
|
display: block;
|
|
width: 100%;
|
|
}
|
|
|
|
.bar:before {
|
|
content: "";
|
|
height: 2px;
|
|
width: 0;
|
|
bottom: 0px;
|
|
position: absolute;
|
|
background: #5396e7;
|
|
-webkit-transition: 0.3s ease all;
|
|
transition: 0.3s ease all;
|
|
left: 0%;
|
|
}
|
|
|
|
.error {
|
|
color: #ff4f64;
|
|
}
|
|
|
|
.error input {
|
|
color: #ff4f64;
|
|
border-bottom: 1px solid #ff4f64;
|
|
}
|
|
|
|
.error input:focus ~ label, .error input:valid ~ label {
|
|
color: #ff4f64;
|
|
}
|
|
|
|
.error input:focus ~ .bar::before {
|
|
background-color: #ff4f64;
|
|
}
|
|
/*# sourceMappingURL=input.module.css.map */ |