98 lines
1.8 KiB
SCSS
98 lines
1.8 KiB
SCSS
form {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
input,
|
|
textarea,
|
|
select {
|
|
width: 90%;
|
|
padding: 12px 18px;
|
|
box-sizing: border-box;
|
|
background: transparent;
|
|
color: $blue;
|
|
border: 1px solid $blue;
|
|
border-radius: 12px;
|
|
font-size: 18px;
|
|
font-weight: 400;
|
|
resize: none;
|
|
transition: background-color 250ms ease-in-out, color 250ms ease-in-out,
|
|
border-color 250ms ease-in-out;
|
|
&::placeholder {
|
|
color: rgba($blue, 0.6);
|
|
}
|
|
&:focus {
|
|
outline: none;
|
|
background-color: rgba($white, 0.1);
|
|
}
|
|
}
|
|
input::file-selector-button {
|
|
width: fit-content;
|
|
box-shadow: 1px 1px 3px rgba($black, 0.5);
|
|
border-radius: 6px;
|
|
padding: 6px;
|
|
color: $white;
|
|
background-color: $blue;
|
|
border: 1px solid $blue;
|
|
transition: 300ms ease-in-out;
|
|
cursor: pointer;
|
|
}
|
|
.error-border {
|
|
border: 1px solid $red;
|
|
color: $red;
|
|
&::placeholder {
|
|
color: $red;
|
|
}
|
|
}
|
|
}
|
|
|
|
.error-msg {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
height: 24px;
|
|
padding: 9px;
|
|
p {
|
|
color: $red;
|
|
font-size: 12px;
|
|
font-weight: 400;
|
|
}
|
|
}
|
|
|
|
// Show / Hide Password
|
|
|
|
.password-field {
|
|
position: relative;
|
|
width: 100%;
|
|
}
|
|
|
|
.passwordEye {
|
|
position: absolute;
|
|
right: 48px;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
cursor: pointer;
|
|
filter: brightness(0) saturate(100%) invert(16%) sepia(77%) saturate(7494%)
|
|
hue-rotate(241deg) brightness(93%) contrast(88%);
|
|
}
|
|
|
|
/*------------- RESPONSIVE -------------*/
|
|
|
|
@media screen and (max-width: 600px) {
|
|
form {
|
|
input,
|
|
textarea,
|
|
select {
|
|
width: 100%;
|
|
}
|
|
}
|
|
|
|
.passwordEye {
|
|
right: 18px;
|
|
}
|
|
|
|
.error-msg {
|
|
height: 16px;
|
|
padding: 6px;
|
|
}
|
|
}
|