Landing/src/components/form-input/form-input.style.scss
katherineus 6568fcfce0 test
2022-04-20 15:46:53 +03:00

58 lines
1,016 B
SCSS

@use "../../assets/stylesheets/base/colors" as *;
@mixin shrinkLabel {
top: -14px;
font-size: 12px;
}
.group {
position: relative;
.form-input-label {
position: absolute;
top: 6px;
opacity: 0.5;
color: #FFF;
text-transform: uppercase;
transition: 300ms ease all;
&.shrink {
top: -20px;
font-size: 10px;
}
}
input {
grid-column: 1/4;
background: none;
border: none;
border-bottom: 1px solid rgba(255, 255, 255, 0.3);
width: 100%;
height: 36px;
margin-bottom: 39px;
position: relative;
color: $color-text-primary;
&:focus-visible {
outline: none;
}
&:focus ~ .form-input-label {
@include shrinkLabel();
}
}
}
input:autofill,
input:utofill:hover,
input:autofill:focus {
// border: 1px solid green;
-webkit-text-fill-color: $color-text-primary;
// background-color: #111;
-webkit-box-shadow: 0 0 0px 1000px #111 inset;
// transition: background-color 5000s ease-in-out 0s;
}