ldc-doux/resources/sass/frontend/_form.scss
Olivier Legat fee051a7de Squashed commit of the following:
commit c87deb1d185b5cce65e417fde124a2691e268355
Author: Sebastien Hattry <sebastien.hattry@ldc.fr>
Date:   Wed Apr 13 10:58:17 2022 +0200

    Fix bug when product not published but display

commit 93de503ce91b3f36251f00340344046aa8218b36
Author: Sebastien Hattry <sebastien.hattry@ldc.fr>
Date:   Wed Apr 13 10:57:11 2022 +0200

    Product in BO - Gamme required setting

commit b1da45a5fba0c4a8aacbe10d06ada6ef93e748a0
Author: Sebastien Hattry <sebastien.hattry@ldc.fr>
Date:   Tue Apr 12 17:45:21 2022 +0200

    Header - Size of search picture fix bug in IOS

commit 590772a2483be51dc9e89aa44822e20eb414dca6
Author: Sebastien Hattry <sebastien.hattry@ldc.fr>
Date:   Tue Apr 12 10:18:46 2022 +0200

    Slide - Remove title and text display in BO

commit 08daf95799ab591167f33dfad6a6fec37aa4090a
Author: Sebastien Hattry <sebastien.hattry@ldc.fr>
Date:   Tue Apr 12 10:13:41 2022 +0200

    form Contact : add drom list if france choose

commit f5ba031076bbb51655eaa2451bce06902191c116
Author: Sebastien Hattry <sebastien.hattry@ldc.fr>
Date:   Tue Apr 12 09:59:16 2022 +0200

    Add story line Svg if needed
2022-04-26 09:42:40 +02:00

268 lines
4.8 KiB
SCSS
Vendored

form {
font-size: 16px;
}
input[type="text"] {
border: 0 none;
}
input[type="submit"] {
min-width: 180px;
padding: 15px;
color: $color-main;
background-color: transparent;
font-weight: bold;
text-align: center;
text-transform: uppercase;
border: 1px solid $color-main;
}
.newsletter input[type="text"],
input[type="submit"] {
border-radius: 30px;
}
input[type="submit"] {
cursor: pointer;
&:hover {
color: $color-light;
background-color: $color-main;
}
}
input[type="text"],
input[type="number"],
input[type="mail"] {
padding: 15px;
font-size: 15px;
border: 0 none;
outline-color: #efefef;
}
textarea {
width: 100%;
max-width: 100%;
margin-top: 30px;
margin-bottom: 30px;
}
.form-row {
display: flex;
padding-top: 30px;
padding-bottom: 30px;
}
.form-group {
display: flex;
padding-bottom: 2px;
width: 100%;
max-width: 100%;
border-bottom: solid 1px $color-dark;
input[type="text"],
input[type="number"],
input[type="mail"] {
flex-grow: 2;
}
&:first-of-type {
margin-left: 0;
}
&:last-of-type {
margin-right: 0;
}
}
.country,
.drom {
width: 50%;
select {
width: 100%;
border: none;
border-bottom-color: currentcolor;
border-bottom-style: none;
border-bottom-width: medium;
border-bottom: 1px solid black;
padding-bottom: 1rem;
}
}
.country {
margin-right: 15px;
}
fieldset {
margin-top: 45px;
border: 0 none;
legend {
margin-bottom: 30px;
font-weight: bold;
}
}
/*CUSTOM RADIO*/
.radio-label {
position: relative;
padding-left: 20px;
margin-right: 25px;
// color:#999999;
cursor: pointer;
}
/* Hide the browser's default radio button */
.radio-label input {
appearance: none;
}
/* Create a custom radio button */
.checkmark {
position: absolute;
top: 3px;
left: 0;
right: 10px;
height: 12px;
width: 12px;
background-color: $color-light;
border: solid 1px $color-main;
border-radius: 50%;
}
/* On mouse-over, add a grey background color */
.radio-label:hover input ~ .checkmark {
background-color: $color-main;
}
/* When the radio button is checked, add a blue background */
.radio-label input:checked ~ .checkmark {
background-color: $color-light;
}
/* Create the indicator (the dot/circle - hidden when not checked) */
.checkmark:after {
content: "";
position: absolute;
display: none;
}
/* Show the indicator (dot/circle) when checked */
.radio-label input:checked ~ .checkmark:after {
display: block;
}
/* Style the indicator (dot/circle) */
.radio-label .checkmark:after {
top: 2px;
left: 2px;
width: 6px;
height: 6px;
border-radius: 50%;
background-color: $color-main;
}
/*CUSTOM CHECKBOX*/
.ck-button {
margin-bottom: 45px;
}
.ck-button label {
margin-right: 10px;
&:last-child {
margin-right: 0;
}
}
.ck-button label span {
padding: 10px;
margin-right: 10px;
border: 1px solid $color-dark;
border-radius: 40px;
cursor: pointer;
&:last-child {
margin-right: 0;
}
&:hover {
color: $color-light;
border-color: $color-main;
background-color: $color-main;
}
}
.ck-button label input {
position: absolute;
left: -20px;
}
.ck-button input:checked + span {
background-color: $color-main;
color: $color-light;
border-color: $color-light;
}
/*CUSTOM FORM*/
.swap {
visibility: hidden;
}
.swap:after {
cursor: pointer;
visibility: visible;
content: "";
font-size: calc(var(--swap-size) - 2.5rem);
display: inline-block;
width: var(--swap-size);
height: var(--swap-size);
padding: 0.5rem;
border: 1px solid $color-main;
border-radius: 0.4em;
background-color: $color-light;
display: flex;
justify-content: center;
align-items: center;
}
.swap:checked:after {
content: "";
background-color: $color-main;
}
@media screen and (min-width: 800px) {
.newsletter input[type="text"] {
width: 430px;
}
.form-group {
align-items: center;
margin-left: 15px;
margin-right: 15px;
}
}
@media screen and (max-width: 799px) {
input[type="text"],
input[type="submit"] {
display: block;
margin-left: auto;
margin-right: auto;
}
form,
input[type="text"] {
width: 100%;
max-width: 100%;
}
input[type="submit"] {
margin-top: 25px;
}
.form-row,
.form-group {
flex-direction: column;
}
.form-group {
margin-bottom: 25px;
&:last-child {
margin-bottom: 0;
}
}
.ck-button label span {
display: inline-block;
margin-bottom: 5px;
}
}