ldc-legaulois/resources/sass/front/modules/_contact-form.scss
2021-03-16 10:55:05 +01:00

308 lines
6.3 KiB
SCSS
Vendored

.form-contact {
width: 85%;
max-width: 44rem;
@include max-width($tablet - 178px) {
width: 92%;
}
h4 {
color: $orange;
font-family: 'CreamyScriptRegular';
font-size: 4em;
}
hr {
border: none;
background-color: $color4;
height: 1px;
margin-bottom: 30px;
}
label {
color: #fff;
font-family: "Catamaran-Bold";
font-size: 1.37em;
}
span {
color: #fff;
}
.text-danger {
color: $color7;
padding: 1em;
font-size: 1em;
display: block;
}
.cvc {
div,
input,
label,
span {
display: inline;
color: #fff;
font-family: "Catamaran-Bold";
margin-right: 10px;
}
@include max-width($mobile) {
margin: 2em auto;
padding-left: 2em;
& > div {
display: block;
margin: 2em auto;
}
}
margin-bottom: 20px;
}
.countries {
display: inline-block;
select {
font-size: 1em !important;
}
}
#contactFormError {
display: none;
color: white;
padding: 20px 25px;
background-color: #d8293a;
margin-bottom: 30px;
i {
margin-right: 10px;
}
}
.infoLot {
color: white;
font-style: italic;
margin-bottom: 10px;
}
.error {
background-color: #fcc9c9;
}
input[type="text"],
input[type="number"],
input[type="tel"],
input[type="email"] {
border: medium none;
border-radius: 2px;
color: $color10;
font-family: "Catamaran-Regular";
font-size: 1.1em;
margin: 0 13px 20px 0;
padding: 11px 10px;
width: 46.5%;
@include max-width($tablet - 178px) {
width: 100%;
margin-right: 0;
}
&::placeholder {
color: $color10;
}
}
input[type="number"] {
-moz-appearance: textfield;
}
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
-webkit-appearance: none;
margin: 0;
}
.styled-select {
overflow: hidden;
width: 100%;
margin-bottom: 20px;
position: relative;
border-radius: 2px;
cursor: pointer;
& select {
cursor: pointer;
width: 100%;
}
& svg {
color: $color8;
font-size: 2em;
display: inline-block;
position: absolute;
right: 15px;
top: 15px;
pointer-events: none;
cursor: pointer;
}
&.countries {
width: 46.5%;
}
select {
border: medium none;
border-radius: 2px;
color: $color10;
font-family: "Catamaran-Regular";
font-size: 1.7em;
padding: 11px 10px;
width: 110%;
&::placeholder {
color: $color10;
}
}
}
.fullwidth {
width: 100% !important;
}
textarea {
border: medium none;
border-radius: 2px;
color: $color10;
font-family: "Catamaran-Regular";
font-size: 1.1em;
margin: 0px 0 20px 0;
padding: 11px 10px;
width: 100%;
height: 160px;
resize: none;
&::placeholder {
color: $color10;
}
}
.formDateQualite {
display: inline-block;
width: 49.5%;
label {
display: block;
margin-bottom: 10px;
width: 100%;
}
input {
width: 26%;
}
}
.champPj {
font-size: 1.5em;
display: flex;
flex-wrap: wrap;
margin-bottom: 35px;
label {
width: 100px;
display: inline-block;
}
span.returnFile {
font-family: "CreamyScriptRegular";
font-size: 1.7em;
margin-left: 15px;
&.valid::after {
color: $orange;
content: "\e902";
font-family: "icomoon";
font-size: 0.8em;
margin-left: 5px;
}
&.unValid::after {
color: $color7;
content: "\e90a";
font-family: "icomoon";
font-size: 0.8em;
margin-left: 5px;
}
}
.fileUpload {
cursor: pointer;
position: relative;
width: 225px;
height: 79px;
input[type="file"] {
border: medium none;
box-shadow: none;
cursor: pointer;
height: 100%;
left: 0;
opacity: 0;
padding: 0;
position: absolute;
top: 0;
width: 100%;
z-index: 2;
}
#btnup {
border: none;
color: #fff;
cursor: pointer;
display: inline-block;
font-family: "Catamaran-Black";
height: 30px;
margin-bottom: 0;
padding: 3px 10px;
background-color: $orange;
border-radius: 2px;
text-transform: uppercase;
width: 100%;
text-align: center;
i {
font-size: 1.3em;
margin-right: 8px;
vertical-align: sub;
}
}
span:nth-of-type(2) {
display: block;
font-size: 0.9em;
margin-top: 7px;
}
}
}
.envoyer {
align-items: center;
display: flex;
justify-content: flex-end;
span {
margin-right: 2em;
sup {
color: $orange;
line-height: 2em;
font-family: "Catamaran-Bold";
font-size: 1.1em;
}
}
.btn {
width: 200px;
text-transform: uppercase;
}
}
}