edition/assets/css/general/form.css

105 lines
1.7 KiB
CSS

label {
display: block;
font-size: 1.4rem;
font-weight: 700;
color: var(--darker-gray-color);
}
label + label {
margin-top: 2rem;
}
label input,
label textarea {
margin-top: 0.7rem;
}
input,
textarea {
width: 100%;
height: 44px;
padding: 0 1.5rem;
font-size: 1.6rem;
color: var(--darker-gray-color);
appearance: none;
background-color: var(--white-color);
border: 1px solid var(--light-gray-color);
border-radius: 6px;
outline: none;
}
input:focus,
textarea:focus {
border-color: var(--mid-gray-color);
}
textarea {
height: 100%;
padding-top: 1.5rem;
padding-bottom: 1.5rem;
resize: vertical;
}
.form-wrapper {
position: relative;
}
.form-button {
position: absolute;
top: 5px;
right: 5px;
display: flex;
align-items: center;
justify-content: center;
height: 40px;
padding: 0 15px;
font-size: 1.3rem;
font-weight: 800;
color: var(--white-color);
text-transform: uppercase;
cursor: pointer;
background-color: var(--brand-color);
border: 0;
border-radius: 4px;
outline: none;
}
.form-button.with-icon {
width: 40px;
padding: 0;
border-radius: 0 4px 4px 0;
}
.form-wrapper .loader,
.form-wrapper .success {
display: none;
}
.form-wrapper .loader .icon {
width: 28px;
height: 28px;
}
.form-wrapper.loading .default,
.form-wrapper.success .default,
.form-wrapper.success .loader {
display: none;
}
.form-wrapper.loading .loader {
display: block;
}
.form-wrapper.success .success {
display: flex;
align-items: center;
}
.contact-form {
margin-top: 3rem;
}
.contact-form .button {
margin-top: 1.5rem;
}