File: /var/www/quadcode-site/src/style/components/form-field.scss
.form-field {
position: relative;
&__title {
font-size: 12px;
line-height: 18px;
&.required {
&:after {
content: '*';
color: $red;
font-size: 20px;
}
}
}
&__label {
display: block;
width: 100%;
.iti {
width: 100%;
.iti__selected-flag {
background: transparent;
border-right: thin solid rgba(42,53,64,0.5);
}
.iti__arrow {
background-image: url("../assets/resource/arrow.svg");
background-size: contain;
background-repeat: no-repeat;
width: 8px;
height: 5px;
margin-left: 4px;
border: none;
&--up {
background-image: url("../assets/resource/arrow-up.svg");
}
}
}
}
&__input {
width: 100%;
outline: none;
padding: 11px 18px;
border: thin solid rgba(42, 53, 64, 0.5);
background: none;
color: #2a3540;
resize: none;
font-size: 14px;
line-height: 16px;
@include breakpoint-down('tabM') {
padding: 9px 15px;
}
&::placeholder {
color: #bcc6cf;
}
}
&__error {
color: $red;
position: absolute;
top: 4px;
right: 0;
font-size: 12px;
align-items: center;
opacity: 0;
display: none;
&:before {
content: "!";
display: flex;
align-items: center;
justify-content: center;
width: 12px;
height: 12px;
margin-right: 5px;
border-radius: 50%;
background-color: $red;
color: $white;
font-size: 10px;
}
}
&.error {
.form-field {
&__input {
border: thin solid $red;
}
&__error {
display: flex;
opacity: 1;
}
}
}
}