cookie notice LDC
This commit is contained in:
parent
249bcd4b80
commit
c392bb8ee6
11 changed files with 2283 additions and 4 deletions
833
public/canard/css/app.css
vendored
833
public/canard/css/app.css
vendored
|
|
@ -325,6 +325,839 @@ select:disabled {
|
|||
default text
|
||||
color: #2D3B45;
|
||||
*/
|
||||
/* DEBUT DU PARAMETRAGE */
|
||||
/* - Choix des FONTS */
|
||||
/* - Changement des couleurs et des polices */
|
||||
:root {
|
||||
/* PARTIE A RENSEIGNER */
|
||||
--primary-color: #1a3441;
|
||||
--secondary-color: #a8be36;
|
||||
--background-color: #f9f7f3;
|
||||
--title-font: "Berkshire Swash", Arial, Helvetica, sans-serif;
|
||||
--title-size: 30px;
|
||||
--text-font: "Roboto", Arial, Helvetica, sans-serif;
|
||||
--text-size: 1rem;
|
||||
--accept-color: #38c172;
|
||||
--deny-color: #e3342f;
|
||||
/* PARTIE A RENSEIGNER FACULTATIF */
|
||||
/* FENETRE D'ACCUEIL */
|
||||
--ck-bg-color: var(--background-color);
|
||||
/* Title settings */
|
||||
--ck-w1-bgcolor-title: var(--background-color);
|
||||
--ck-w1-font-family-title: var(--title-font);
|
||||
--ck-w1-font-size-title: var(--title-size);
|
||||
--ck-w1-color-title: var(--primary);
|
||||
/* Text settings */
|
||||
--ck-w1-font-family-txt: var(--text-font);
|
||||
--ck-w1-font-size-txt: var(--text-size);
|
||||
--ck-w1-color-txt: var(--primary-color);
|
||||
--ck-w1-color-href-hover: var(--secondary-color);
|
||||
/* Button settings */
|
||||
--ck-w1-color-btn: var(--primary-color);
|
||||
--ck-w1-color-btn-hover: var(--secondary-color);
|
||||
--ck-w1-font-family-btn-txt: var(--text-font);
|
||||
--ck-w1-font-size-btn-txt: var(--text-size);
|
||||
--ck-w1-color-btn-txt: #ffffff;
|
||||
--ck-w1-color-btn-txt-hover: #ffffff;
|
||||
--ck-w1-color-btn-border: transparent;
|
||||
--ck-w1-color-btn-border-hover: transparent;
|
||||
/* FENETRE DE PERSONNALISATION */
|
||||
--ck-bg-color-modal-wrapper: #ffffff;
|
||||
/* Title settings */
|
||||
--ck-w2-bgcolor-title: var(--primary-color);
|
||||
--ck-w2-font-family-title: var(--title-font);
|
||||
--ck-w2-font-size-title: var(--title-size);
|
||||
--ck-w2-color-title: #ffffff;
|
||||
/* Text settings */
|
||||
--ck-w2-font-family-txt: var(--text-font);
|
||||
--ck-w2-font-size-txt: var(--text-size);
|
||||
--ck-w2-color-txt: #ffffff;
|
||||
--ck-w2-color-href-hover: #000000;
|
||||
/* Accept/Deny btn settings */
|
||||
--ck-color-accept: #808080;
|
||||
--ck-color-accept-hover: var(--accept-color);
|
||||
--ck-color-deny: #808080;
|
||||
--ck-color-deny-hover: var(--deny-color);
|
||||
--ck-color-txt: #ffffff;
|
||||
--ck-color-txt-hover: #ffffff;
|
||||
/* Cookies list settings */
|
||||
--ck-bgcolor-list: #e4e4e4;
|
||||
--ck-font-family-list: var(--text-font);
|
||||
--ck-font-size-list: var(--text-size);
|
||||
--ck-color-list: #000000;
|
||||
}
|
||||
|
||||
/* FIN DU PARAMETRAGE */
|
||||
/* MOBILE FIRST */
|
||||
#ldcweb-cn *, #ldcweb-cn *::before, #ldcweb-cn *::after {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
#template {
|
||||
display: none;
|
||||
}
|
||||
|
||||
#ldcweb-cn.open-banner .ldcweb-cn-banner {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
#ldcweb-cn.open-modal #ldcweb-cn-modal {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
#ldcweb-cn.open-banner, #ldcweb-cn.open-modal {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
#ldcweb-cn {
|
||||
display: none;
|
||||
flex-direction: column;
|
||||
justify-content: flex-end;
|
||||
position: fixed;
|
||||
left: 0;
|
||||
right: 0;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background: rgba(0, 0, 0, 0.7);
|
||||
z-index: 99999999999;
|
||||
opacity: 1;
|
||||
line-height: initial;
|
||||
}
|
||||
|
||||
#ldcweb-cn p,
|
||||
#ldcweb-cn a {
|
||||
font-family: var(--ck-w1-font-family-txt);
|
||||
font-size: var(--ck-w1-font-size-txt);
|
||||
color: var(--ck-w1-color-txt);
|
||||
}
|
||||
|
||||
#ldcweb-cn a {
|
||||
text-decoration: underline;
|
||||
transition: color 0.5s;
|
||||
}
|
||||
|
||||
#ldcweb-cn a:hover {
|
||||
color: var(--ck-w1-color-href-hover);
|
||||
}
|
||||
|
||||
#ldcweb-cn .ldcweb-cn-banner, #ldcweb-cn-modal .modal-wrapper {
|
||||
overflow: auto;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
#ldcweb-cn .ldcweb-cn-banner {
|
||||
display: none;
|
||||
padding: 6vw 10vw;
|
||||
max-height: 50vh;
|
||||
box-shadow: 0px 5px 10px -5px #000 inset;
|
||||
background-color: var(--ck-bg-color);
|
||||
}
|
||||
|
||||
#ldcweb-cn .ldcweb-cn-banner div:not(:last-child) {
|
||||
margin-bottom: 4vw;
|
||||
}
|
||||
|
||||
#ldcweb-cn .banner-img {
|
||||
flex: 1;
|
||||
max-width: 200px;
|
||||
}
|
||||
|
||||
#ldcweb-cn .banner-img img {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#ldcweb-cn .col {
|
||||
flex: 2;
|
||||
}
|
||||
|
||||
#ldcweb-cn .banner-title p {
|
||||
font-family: var(--ck-w1-font-family-title);
|
||||
font-size: var(--ck-w1-font-size-title);
|
||||
font-weight: bold;
|
||||
color: var(--ck-w1-color-title);
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#ldcweb-cn .banner-txt {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#ldcweb-cn .btns {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
#ldcweb-cn .btns .btn {
|
||||
display: block;
|
||||
flex: 1;
|
||||
padding: 1em;
|
||||
text-align: center;
|
||||
min-width: 12em;
|
||||
background-color: var(--ck-w1-color-btn);
|
||||
text-decoration: none;
|
||||
font-family: var(--ck-w1-font-family-btn-txt);
|
||||
font-size: var(--ck-w1-font-size-btn-txt);
|
||||
color: var(--ck-w1-color-btn-txt);
|
||||
transition: all 0.5s;
|
||||
}
|
||||
|
||||
#ldcweb-cn .btns .btn:hover {
|
||||
background-color: var(--ck-w1-color-btn-hover);
|
||||
background-image: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.5));
|
||||
color: var(--ck-w1-color-btn-txt-hover);
|
||||
}
|
||||
|
||||
/* MODAL */
|
||||
#ldcweb-cn-modal {
|
||||
display: none;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
position: fixed;
|
||||
left: 0;
|
||||
right: 0;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
z-index: 200;
|
||||
background: rgba(0, 0, 0, 0.7);
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
#ldcweb-cn-modal .modal-wrapper {
|
||||
position: relative;
|
||||
background-color: var(--ck-bg-color-modal-wrapper);
|
||||
}
|
||||
|
||||
#ldcweb-cn-modal .modal-wrapper > div:not(:first-of-type) {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#ldcweb-cn-modal .modal-btn-close {
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: 0;
|
||||
width: 5vw;
|
||||
height: 6vw;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
#ldcweb-cn-modal .modal-btn-close a {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
font-size: medium;
|
||||
font-weight: bold;
|
||||
color: var(--ck-w2-color-title);
|
||||
background-color: var(--ck-w2-bgcolor-title);
|
||||
text-decoration: none;
|
||||
border-radius: 0 0 0 50%;
|
||||
transition: all 0.5s;
|
||||
}
|
||||
|
||||
#ldcweb-cn-modal .modal-btn-close a:hover {
|
||||
color: #000000;
|
||||
background-color: #808080;
|
||||
background-image: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.5));
|
||||
box-shadow: -1px 1px 10px -4px #000;
|
||||
}
|
||||
|
||||
#ldcweb-cn-modal .modal-title, #ldcweb-cn-modal .modal-all {
|
||||
background-color: var(--ck-w2-bgcolor-title);
|
||||
}
|
||||
|
||||
#ldcweb-cn-modal .modal-title .description,
|
||||
#ldcweb-cn-modal .modal-title > div,
|
||||
#ldcweb-cn-modal .modal-all {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
#ldcweb-cn-modal .modal-title .description,
|
||||
#ldcweb-cn-modal .modal-title > div a,
|
||||
#ldcweb-cn-modal .modal-all p,
|
||||
#ldcweb-cn-modal .modal-all a {
|
||||
font-family: var(--ck-w2-font-family-txt);
|
||||
font-size: var(--ck-w2-font-size-txt);
|
||||
color: var(--ck-w2-color-txt);
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#ldcweb-cn-modal .modal-title > div a:hover,
|
||||
#ldcweb-cn-modal .modal-all a:hover {
|
||||
color: var(--ck-w2-color-href-hover);
|
||||
}
|
||||
|
||||
/* TITLE */
|
||||
#ldcweb-cn-modal .modal-wrapper .modal-title {
|
||||
padding: 4vw 4vw 0;
|
||||
}
|
||||
|
||||
#ldcweb-cn-modal .modal-title .title {
|
||||
font-family: var(--ck-w2-font-family-title);
|
||||
font-size: var(--ck-w2-font-size-title);
|
||||
font-weight: bold;
|
||||
color: var(--ck-w2-color-title);
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#ldcweb-cn-modal .modal-title .title::after,
|
||||
#ldcweb-cn-modal .modal-title > div::after {
|
||||
content: "";
|
||||
display: block;
|
||||
width: 90%;
|
||||
height: 2px;
|
||||
margin: 4vw auto;
|
||||
background-color: rgba(255, 255, 255, 0.5);
|
||||
}
|
||||
|
||||
#ldcweb-cn-modal .modal-title a {
|
||||
width: -webkit-fit-content;
|
||||
width: -moz-fit-content;
|
||||
width: fit-content;
|
||||
}
|
||||
|
||||
/* ALL */
|
||||
#ldcweb-cn-modal .modal-wrapper .modal-all {
|
||||
padding: 0 4vw 4vw;
|
||||
}
|
||||
|
||||
#ldcweb-cn-modal .modal-all .all-buttons {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
#ldcweb-cn-modal .modal-all .all-buttons > div {
|
||||
width: calc(100% + 15vw);
|
||||
margin: 2vw 0 0;
|
||||
}
|
||||
|
||||
#ldcweb-cn-modal .modal-all a {
|
||||
display: block;
|
||||
padding: 3vw 0;
|
||||
color: var(--ck-color-txt);
|
||||
/* font-weight: bold; */
|
||||
text-decoration: none;
|
||||
transition: all 0.5s;
|
||||
}
|
||||
|
||||
#ldcweb-cn-modal .all-buttons > div.accept > a.active {
|
||||
background-color: var(--ck-color-accept-hover);
|
||||
background-image: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.5));
|
||||
}
|
||||
|
||||
#ldcweb-cn-modal .all-buttons > div.deny > a.active {
|
||||
background-color: var(--ck-color-deny-hover);
|
||||
background-image: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.5));
|
||||
}
|
||||
|
||||
#ldcweb-cn-modal .modal-all > div > div:first-of-type a {
|
||||
background-color: var(--ck-color-accept);
|
||||
}
|
||||
|
||||
#ldcweb-cn-modal .modal-all > div > div:last-of-type a {
|
||||
background-color: var(--ck-color-deny);
|
||||
}
|
||||
|
||||
#ldcweb-cn-modal .modal-all > div > div:first-of-type a:hover {
|
||||
color: var(--ck-color-txt-hover);
|
||||
background-color: var(--ck-color-accept-hover);
|
||||
background-image: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.5));
|
||||
}
|
||||
|
||||
#ldcweb-cn-modal .modal-all > div > div:last-of-type a:hover {
|
||||
color: var(--ck-color-txt-hover);
|
||||
background-color: var(--ck-color-deny-hover);
|
||||
background-image: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.5));
|
||||
}
|
||||
|
||||
/* DETAILS */
|
||||
#ldcweb-cn-modal .modal-wrapper .modal-details {
|
||||
padding: 2vw 0;
|
||||
}
|
||||
|
||||
#ldcweb-cn-modal .modal-details ul {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
#ldcweb-cn-modal .modal-details li > div {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: space-between;
|
||||
margin: 2vw 0;
|
||||
padding: 2vw 4vw;
|
||||
background-color: var(--ck-bgcolor-list);
|
||||
}
|
||||
|
||||
#ldcweb-cn-modal .modal-details li span,
|
||||
#ldcweb-cn-modal .modal-details li a,
|
||||
#ldcweb-cn-modal .modal-details li label {
|
||||
font-family: var(--ck-font-family-list);
|
||||
font-size: var(--ck-font-size-list);
|
||||
color: var(--ck-color-list);
|
||||
}
|
||||
|
||||
#ldcweb-cn-modal .modal-details li a:hover {
|
||||
color: var(--secondary-color);
|
||||
}
|
||||
|
||||
#ldcweb-cn-modal .modal-details .ldcweb-cn-infos {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
#ldcweb-cn-modal .modal-details .ldcweb-cn-infos span:first-of-type {
|
||||
font-size: calc(var(--ck-font-size-list) * 1.25);
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
#ldcweb-cn-modal .modal-details .ldcweb-cn-infos a {
|
||||
width: -webkit-fit-content;
|
||||
width: -moz-fit-content;
|
||||
width: fit-content;
|
||||
}
|
||||
|
||||
#ldcweb-cn-modal .modal-details .ldcweb-cn-buttons {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
#ldcweb-cn-modal .modal-details .ldcweb-cn-buttons div:first-of-type,
|
||||
#ldcweb-cn-modal .modal-details .ldcweb-cn-buttons div:last-of-type {
|
||||
transition: all 0.5s;
|
||||
}
|
||||
|
||||
#ldcweb-cn-modal .modal-details .ldcweb-cn-buttons div:first-of-type {
|
||||
margin-right: 2vw;
|
||||
background: var(--ck-color-accept);
|
||||
}
|
||||
|
||||
#ldcweb-cn-modal .modal-details .ldcweb-cn-buttons div:last-of-type {
|
||||
background: var(--ck-color-deny);
|
||||
}
|
||||
|
||||
#ldcweb-cn-modal .modal-details .ldcweb-cn-buttons div {
|
||||
width: 25vw;
|
||||
margin: 2vw 0;
|
||||
display: table;
|
||||
/* font-weight: bold; */
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#ldcweb-cn-modal .modal-details .ldcweb-cn-buttons div:first-of-type:hover,
|
||||
#ldcweb-cn-modal .modal-details .ldcweb-cn-buttons div:last-of-type:hover {
|
||||
cursor: pointer;
|
||||
background: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.5));
|
||||
}
|
||||
|
||||
#ldcweb-cn-modal .modal-details .ldcweb-cn-buttons div:hover > label {
|
||||
color: var(--ck-color-txt-hover);
|
||||
}
|
||||
|
||||
#ldcweb-cn-modal .modal-details .ldcweb-cn-buttons div:first-of-type input:checked ~ label,
|
||||
#ldcweb-cn-modal .modal-details .ldcweb-cn-buttons div:first-of-type input ~ label.active {
|
||||
background-color: var(--ck-color-accept-hover);
|
||||
background-image: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.5));
|
||||
}
|
||||
|
||||
#ldcweb-cn-modal .modal-details .ldcweb-cn-buttons div:last-of-type input:checked ~ label,
|
||||
#ldcweb-cn-modal .modal-details .ldcweb-cn-buttons div:last-of-type input ~ label.active {
|
||||
background-color: var(--ck-color-deny-hover);
|
||||
background-image: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.5));
|
||||
}
|
||||
|
||||
#ldcweb-cn-modal .modal-details .ldcweb-cn-buttons input {
|
||||
display: none;
|
||||
}
|
||||
|
||||
#ldcweb-cn-modal .modal-details .ldcweb-cn-buttons label {
|
||||
display: block;
|
||||
padding: 1.5vw 0;
|
||||
color: var(--ck-color-txt);
|
||||
transition: color 0.5s;
|
||||
}
|
||||
|
||||
#ldcweb-cn-modal .modal-details .ldcweb-cn-buttons label:hover {
|
||||
cursor: pointer;
|
||||
color: var(--ck-color-txt-hover);
|
||||
}
|
||||
|
||||
/* ************************* */
|
||||
/* ** ** */
|
||||
/* ************************* */
|
||||
/* ** ** */
|
||||
/* ** ** */
|
||||
/* ** ** */
|
||||
/* ** ** */
|
||||
/* ** ** */
|
||||
/* ** ** */
|
||||
/* ** ** */
|
||||
/* ******* */
|
||||
@media only screen and (min-width: 768px) {
|
||||
#ldcweb-cn .ldcweb-cn-banner {
|
||||
padding-top: 4vw;
|
||||
padding-bottom: 4vw;
|
||||
}
|
||||
|
||||
#ldcweb-cn .btns {
|
||||
flex-direction: row;
|
||||
}
|
||||
|
||||
#ldcweb-cn .btns > div:first-child {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
#ldcweb-cn .btns > div:last-child {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
#ldcweb-cn .btns > div:first-child .btn {
|
||||
margin: 0 2vw 0 0;
|
||||
}
|
||||
|
||||
/* MODAL */
|
||||
#ldcweb-cn-modal .modal-wrapper {
|
||||
width: 90vw;
|
||||
}
|
||||
|
||||
/* ALL */
|
||||
#ldcweb-cn-modal .modal-all {
|
||||
flex-direction: row;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
#ldcweb-cn-modal .modal-all a {
|
||||
padding: 2vw 0;
|
||||
}
|
||||
|
||||
#ldcweb-cn-modal .modal-all .all-buttons > div {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
#ldcweb-cn-modal .modal-all .all-buttons > div:last-of-type {
|
||||
margin: 1vw 0 0;
|
||||
}
|
||||
|
||||
#ldcweb-cn-modal .modal-all a {
|
||||
width: 30vw;
|
||||
}
|
||||
|
||||
/* DETAILS */
|
||||
#ldcweb-cn-modal .modal-details li > div {
|
||||
flex-direction: row;
|
||||
}
|
||||
|
||||
#ldcweb-cn-modal .modal-details .ldcweb-cn-buttons {
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
#ldcweb-cn-modal .modal-details .ldcweb-cn-buttons div {
|
||||
width: 20vw;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
#ldcweb-cn-modal .modal-details .ldcweb-cn-buttons div:first-of-type {
|
||||
margin: 0 0 1vw;
|
||||
}
|
||||
}
|
||||
/* **** */
|
||||
/* * * */
|
||||
/* * * */
|
||||
/* * * */
|
||||
/* * * */
|
||||
/* * * */
|
||||
/* * * */
|
||||
/* * * */
|
||||
/* * * */
|
||||
/* * * */
|
||||
/* * * */
|
||||
/* * * */
|
||||
/* * * */
|
||||
/* **** */
|
||||
@media only screen and (min-width: 1024px) {
|
||||
#ldcweb-cn .ldcweb-cn-banner {
|
||||
flex-direction: row;
|
||||
align-items: flex-start;
|
||||
justify-content: space-between;
|
||||
padding: 2vw 3vw;
|
||||
}
|
||||
|
||||
#ldcweb-cn .ldcweb-cn-banner div:not(:last-child) {
|
||||
margin: 0 0 0.5em 0;
|
||||
}
|
||||
|
||||
#ldcweb-cn .ldcweb-cn-banner > div:not(:last-child) {
|
||||
margin: 0 4vw 0 0;
|
||||
}
|
||||
|
||||
#ldcweb-cn .ldcweb-cn-banner .banner-img {
|
||||
height: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
#ldcweb-cn .banner-img img {
|
||||
height: -webkit-fit-content;
|
||||
height: -moz-fit-content;
|
||||
height: fit-content;
|
||||
}
|
||||
|
||||
#ldcweb-cn .banner-txt {
|
||||
text-align: start;
|
||||
}
|
||||
|
||||
#ldcweb-cn .btns {
|
||||
height: 100%;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
#ldcweb-cn .btns > div:first-child .btn {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* MODAL */
|
||||
#ldcweb-cn-modal .modal-wrapper {
|
||||
width: 80vw;
|
||||
}
|
||||
|
||||
#ldcweb-cn-modal .modal-btn-close {
|
||||
width: 3vw;
|
||||
height: 3vw;
|
||||
}
|
||||
|
||||
/* TITLE */
|
||||
#ldcweb-cn-modal .modal-wrapper .modal-title {
|
||||
padding: 2vw 2vw 0;
|
||||
}
|
||||
|
||||
#ldcweb-cn-modal .modal-title .title::after,
|
||||
#ldcweb-cn-modal .modal-title > div::after {
|
||||
margin: 2vw auto;
|
||||
}
|
||||
|
||||
/* ALL */
|
||||
#ldcweb-cn-modal .modal-wrapper .modal-all {
|
||||
padding: 0 2vw 2vw;
|
||||
}
|
||||
|
||||
#ldcweb-cn-modal .modal-all a {
|
||||
padding: 1.5vw 0;
|
||||
}
|
||||
|
||||
#ldcweb-cn-modal .modal-all .all-buttons {
|
||||
flex-direction: row;
|
||||
}
|
||||
|
||||
#ldcweb-cn-modal .modal-all .all-buttons > div:first-of-type {
|
||||
margin: 0 1vw 0 0;
|
||||
}
|
||||
|
||||
#ldcweb-cn-modal .modal-all .all-buttons > div:last-of-type {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
#ldcweb-cn-modal .modal-all a {
|
||||
width: 22vw;
|
||||
}
|
||||
|
||||
/* DETAILS */
|
||||
#ldcweb-cn-modal .modal-wrapper .modal-details {
|
||||
padding: 1vw 0;
|
||||
}
|
||||
|
||||
#ldcweb-cn-modal .modal-details li > div {
|
||||
margin: 1vw 0;
|
||||
padding: 2vw;
|
||||
}
|
||||
|
||||
#ldcweb-cn-modal .modal-details .ldcweb-cn-buttons {
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
#ldcweb-cn-modal .modal-details .ldcweb-cn-buttons div {
|
||||
width: 10vw;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
#ldcweb-cn-modal .modal-details .ldcweb-cn-buttons div:first-of-type {
|
||||
margin: 0 1vw 0;
|
||||
}
|
||||
}
|
||||
/* ******** */
|
||||
/* * ***** * */
|
||||
/* * * * * */
|
||||
/* *** * * */
|
||||
/* * * */
|
||||
/* * * */
|
||||
/* * * */
|
||||
/* * * */
|
||||
/* * * */
|
||||
/* * * */
|
||||
/* * * */
|
||||
/* * * */
|
||||
/* * * */
|
||||
/* * * */
|
||||
/* * * */
|
||||
/* * ************** */
|
||||
/* * * */
|
||||
/* ***************** */
|
||||
@media only screen and (min-width: 1440px) {
|
||||
#ldcweb-cn .col {
|
||||
flex: 4;
|
||||
}
|
||||
|
||||
/* MODAL */
|
||||
#ldcweb-cn-modal .modal-wrapper {
|
||||
width: 60vw;
|
||||
}
|
||||
|
||||
#ldcweb-cn-modal .modal-btn-close {
|
||||
width: 2vw;
|
||||
height: 2vw;
|
||||
}
|
||||
|
||||
/* ALL */
|
||||
#ldcweb-cn-modal .modal-all .all-buttons > div:first-of-type {
|
||||
margin: 0 1vw 0 0;
|
||||
}
|
||||
|
||||
#ldcweb-cn-modal .modal-all a {
|
||||
width: 15vw;
|
||||
padding: 1vw 0;
|
||||
}
|
||||
|
||||
/* DETAILS */
|
||||
#ldcweb-cn-modal .modal-details .ldcweb-cn-buttons div {
|
||||
width: 8vw;
|
||||
}
|
||||
|
||||
#ldcweb-cn-modal .modal-details .ldcweb-cn-buttons label {
|
||||
padding: 1vw 0;
|
||||
}
|
||||
}
|
||||
/* ************ */
|
||||
/* * **** */
|
||||
/* ********* * */
|
||||
/* ***** * */
|
||||
/* ** * */
|
||||
/* ** * */
|
||||
/* ********** * */
|
||||
/* * * */
|
||||
/* ********* * */
|
||||
/* ***** * */
|
||||
/* ** * */
|
||||
/* ** * */
|
||||
/* ********** * */
|
||||
/* * *** */
|
||||
/* ************ */
|
||||
@media only screen and (min-width: 1920px) {
|
||||
#ldcweb-cn p {
|
||||
font-size: calc(var(--ck-w1-font-size-txt) * 1.25);
|
||||
}
|
||||
|
||||
#ldcweb-cn .banner-title p {
|
||||
font-size: calc(var(--ck-w1-font-size-title) * 1.25);
|
||||
}
|
||||
|
||||
#ldcweb-cn .btns .btn {
|
||||
font-size: calc(var(--ck-w1-font-size-btn-txt) * 1.25);
|
||||
line-height: calc(var(--ck-w1-font-size-btn-txt) * 0.75);
|
||||
}
|
||||
|
||||
/* MODAL */
|
||||
#ldcweb-cn-modal .modal-wrapper {
|
||||
width: 50vw;
|
||||
}
|
||||
|
||||
#ldcweb-cn-modal .modal-btn-close {
|
||||
width: 2rem;
|
||||
height: 2rem;
|
||||
}
|
||||
|
||||
#ldcweb-cn-modal .modal-title .description,
|
||||
#ldcweb-cn-modal .modal-title > div a,
|
||||
#ldcweb-cn-modal .modal-all p,
|
||||
#ldcweb-cn-modal .modal-all a {
|
||||
font-size: calc(var(--ck-w2-font-size-txt) * 1.25);
|
||||
}
|
||||
|
||||
/* TITLE */
|
||||
#ldcweb-cn-modal .modal-wrapper .modal-title {
|
||||
padding: 1vw 1vw 0;
|
||||
}
|
||||
|
||||
#ldcweb-cn-modal .modal-title .title {
|
||||
font-size: calc(var(--ck-w2-font-size-title) * 1.25);
|
||||
}
|
||||
|
||||
#ldcweb-cn-modal .modal-title .title::after,
|
||||
#ldcweb-cn-modal .modal-title > div::after {
|
||||
margin: 1vw auto;
|
||||
}
|
||||
|
||||
/* ALL */
|
||||
#ldcweb-cn-modal .modal-wrapper .modal-all {
|
||||
padding: 0 1vw 1vw;
|
||||
}
|
||||
|
||||
#ldcweb-cn-modal .modal-all a {
|
||||
width: 13vw;
|
||||
padding: 0.5vw 0;
|
||||
}
|
||||
|
||||
/* DETAILS */
|
||||
#ldcweb-cn-modal .modal-wrapper .modal-details {
|
||||
padding: 0.5vw 0;
|
||||
}
|
||||
|
||||
#ldcweb-cn-modal .modal-details li > div {
|
||||
margin: 0.5vw 0;
|
||||
padding: 1vw;
|
||||
}
|
||||
|
||||
#ldcweb-cn-modal .modal-details li span,
|
||||
#ldcweb-cn-modal .modal-details li a,
|
||||
#ldcweb-cn-modal .modal-details li label {
|
||||
font-size: calc(var(--ck-font-size-list) * 1.25);
|
||||
}
|
||||
|
||||
#ldcweb-cn-modal .modal-details .ldcweb-cn-infos span:first-of-type {
|
||||
font-size: calc(var(--ck-font-size-list) * 1.5);
|
||||
}
|
||||
|
||||
#ldcweb-cn-modal .modal-details .ldcweb-cn-buttons {
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
#ldcweb-cn-modal .modal-details .ldcweb-cn-buttons div {
|
||||
width: 5vw;
|
||||
}
|
||||
|
||||
#ldcweb-cn-modal .modal-details .ldcweb-cn-buttons div:first-of-type {
|
||||
margin: 0 1vw 0;
|
||||
}
|
||||
|
||||
#ldcweb-cn-modal .modal-details .ldcweb-cn-buttons label {
|
||||
padding: 0.5vw 0;
|
||||
}
|
||||
}
|
||||
@font-face {
|
||||
font-family: "Roboto";
|
||||
src: url("../fonts/Roboto-Italic.woff2") format("woff2"), url("../fonts/Roboto-Italic.woff") format("woff");
|
||||
|
|
|
|||
471
public/canard/js/app.js
vendored
471
public/canard/js/app.js
vendored
|
|
@ -56590,12 +56590,17 @@ __webpack_require__.r(__webpack_exports__);
|
|||
/* harmony import */ var swiper_swiper_bundle__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(swiper_swiper_bundle__WEBPACK_IMPORTED_MODULE_1__);
|
||||
/* harmony import */ var toastify_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! toastify-js */ "./node_modules/toastify-js/src/toastify.js");
|
||||
/* harmony import */ var toastify_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(toastify_js__WEBPACK_IMPORTED_MODULE_2__);
|
||||
/* harmony import */ var vuex__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! vuex */ "./node_modules/vuex/dist/vuex.esm.js");
|
||||
/* harmony import */ var _ldcweb_cn_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./ldcweb-cn.js */ "./resources/views/front/canard/js/ldcweb-cn.js");
|
||||
/* harmony import */ var vuex__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! vuex */ "./node_modules/vuex/dist/vuex.esm.js");
|
||||
|
||||
|
||||
|
||||
|
||||
__webpack_require__(/*! ./bootstrap */ "./resources/views/front/canard/js/bootstrap.js");
|
||||
__webpack_require__(/*! ./bootstrap */ "./resources/views/front/canard/js/bootstrap.js"); // cookie notice
|
||||
|
||||
|
||||
|
||||
window.LdcwebCn = _ldcweb_cn_js__WEBPACK_IMPORTED_MODULE_3__["LdcwebCn"];
|
||||
|
||||
__webpack_require__(/*! ./cart.js */ "./resources/views/front/canard/js/cart.js");
|
||||
|
||||
|
|
@ -56621,7 +56626,7 @@ Vue.component('basket-counter', {
|
|||
},
|
||||
template: '<span class="header-actions__item-icon icon icon_cart"><span class="icon__count">{{ count }}</span></span>'
|
||||
});
|
||||
var store = new vuex__WEBPACK_IMPORTED_MODULE_3__["default"].Store({
|
||||
var store = new vuex__WEBPACK_IMPORTED_MODULE_4__["default"].Store({
|
||||
state: {
|
||||
panier: {},
|
||||
cartTotals: {}
|
||||
|
|
@ -57025,6 +57030,466 @@ __webpack_require__.r(__webpack_exports__);
|
|||
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./resources/views/front/canard/js/ldcweb-cn.js":
|
||||
/*!******************************************************!*\
|
||||
!*** ./resources/views/front/canard/js/ldcweb-cn.js ***!
|
||||
\******************************************************/
|
||||
/*! exports provided: LdcwebCn */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LdcwebCn", function() { return LdcwebCn; });
|
||||
function _createForOfIteratorHelper(o, allowArrayLike) { var it; if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e2) { throw _e2; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e3) { didErr = true; err = _e3; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
||||
|
||||
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
||||
|
||||
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
||||
|
||||
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
||||
|
||||
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
||||
|
||||
function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
||||
|
||||
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
||||
|
||||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
||||
|
||||
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
||||
|
||||
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
||||
|
||||
/**
|
||||
* LDC Service Web
|
||||
* Version 1.0
|
||||
*/
|
||||
var LdcwebCn = /*#__PURE__*/function () {
|
||||
function LdcwebCn(config) {
|
||||
var _this = this;
|
||||
|
||||
_classCallCheck(this, LdcwebCn);
|
||||
|
||||
this.config = config;
|
||||
this.cookieContainer = document.getElementById('ldcweb-cn');
|
||||
this.bannerContainer = document.getElementById('ldcweb-banner');
|
||||
this.modalContainer = document.getElementById('ldcweb-cn-modal');
|
||||
this.modalCloseBtn = document.getElementById('close-link');
|
||||
this.acceptAllBtnBanner = document.getElementById('ldcweb-cn-accept-banner');
|
||||
this.acceptAllBtn = document.getElementById('ldcweb-cn-accept');
|
||||
this.denyAllBtn = document.getElementById('ldcweb-cn-deny');
|
||||
this.personalizeBtn = document.getElementsByClassName('ldcweb-cn-personalize');
|
||||
this.changeBtn = document.getElementsByClassName('ldcweb-cn-change');
|
||||
this.cookiesList = document.getElementById('ldcweb-cn-list');
|
||||
this.cookieLink = document.querySelector('.footer-links a[href="#cookie"]');
|
||||
this.template = document.getElementById('template').cloneNode(true);
|
||||
document.getElementById('template').remove();
|
||||
var cookies = this.getLDCWebCookie('ldcwebcn-init');
|
||||
|
||||
if (cookies === undefined) {
|
||||
var newCookie = [];
|
||||
|
||||
for (var _i = 0, _Object$entries = Object.entries(this.config); _i < _Object$entries.length; _i++) {
|
||||
var _Object$entries$_i = _slicedToArray(_Object$entries[_i], 2),
|
||||
key = _Object$entries$_i[0],
|
||||
value = _Object$entries$_i[1];
|
||||
|
||||
newCookie.push(key + "=wait");
|
||||
}
|
||||
|
||||
this.saveLDCWebCookie(newCookie);
|
||||
this.cookieContainer.classList.add('open-banner');
|
||||
} else {
|
||||
var _test = cookies.split(',');
|
||||
|
||||
_test.forEach(function (elm) {
|
||||
var test = elm.split('=');
|
||||
|
||||
if (test[1] === 'wait') {
|
||||
_this.cookieContainer.classList.add('open-banner');
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
this.modalCloseBtn.addEventListener('click', function (e) {
|
||||
e.preventDefault();
|
||||
var cookies = this.getLDCWebCookie('ldcwebcn-init');
|
||||
var test = cookies.split(',');
|
||||
var bIsCompleted = true;
|
||||
|
||||
var _iterator = _createForOfIteratorHelper(test),
|
||||
_step;
|
||||
|
||||
try {
|
||||
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
||||
var item = _step.value;
|
||||
|
||||
if (item.indexOf('=wait') !== -1) {
|
||||
bIsCompleted = false;
|
||||
break;
|
||||
}
|
||||
}
|
||||
} catch (err) {
|
||||
_iterator.e(err);
|
||||
} finally {
|
||||
_iterator.f();
|
||||
}
|
||||
|
||||
if (bIsCompleted) {
|
||||
this.cookieContainer.classList.remove('open-modal');
|
||||
this.cookieContainer.classList.remove('open-banner');
|
||||
} else {
|
||||
alert("Vous devez renseigner votre choix pour tous les cookies, svp.");
|
||||
}
|
||||
}.bind(this));
|
||||
|
||||
var accept = function (e) {
|
||||
e.preventDefault();
|
||||
|
||||
for (var _i2 = 0, _Object$entries2 = Object.entries(this.config); _i2 < _Object$entries2.length; _i2++) {
|
||||
var _Object$entries2$_i = _slicedToArray(_Object$entries2[_i2], 2),
|
||||
_key = _Object$entries2$_i[0],
|
||||
_value = _Object$entries2$_i[1];
|
||||
|
||||
this.addCookie(_key, _value);
|
||||
}
|
||||
|
||||
var _iterator2 = _createForOfIteratorHelper(this.cookieContainer.querySelectorAll('.accept > label')),
|
||||
_step2;
|
||||
|
||||
try {
|
||||
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
||||
var acceptLabel = _step2.value;
|
||||
acceptLabel.classList.add('active');
|
||||
}
|
||||
} catch (err) {
|
||||
_iterator2.e(err);
|
||||
} finally {
|
||||
_iterator2.f();
|
||||
}
|
||||
|
||||
var _iterator3 = _createForOfIteratorHelper(this.cookieContainer.querySelectorAll('.deny > label')),
|
||||
_step3;
|
||||
|
||||
try {
|
||||
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
||||
var denyLabel = _step3.value;
|
||||
denyLabel.classList.remove('active');
|
||||
}
|
||||
} catch (err) {
|
||||
_iterator3.e(err);
|
||||
} finally {
|
||||
_iterator3.f();
|
||||
}
|
||||
|
||||
this.updateAllCookiesButtonsActiveStatus();
|
||||
this.cookieContainer.classList.remove('open-modal');
|
||||
this.cookieContainer.classList.remove('open-banner');
|
||||
}.bind(this);
|
||||
|
||||
this.acceptAllBtnBanner.addEventListener('click', accept);
|
||||
this.acceptAllBtn.addEventListener('click', accept);
|
||||
this.denyAllBtn.addEventListener('click', function (e) {
|
||||
e.preventDefault();
|
||||
|
||||
for (var _i3 = 0, _Object$entries3 = Object.entries(this.config); _i3 < _Object$entries3.length; _i3++) {
|
||||
var _Object$entries3$_i = _slicedToArray(_Object$entries3[_i3], 2),
|
||||
_key2 = _Object$entries3$_i[0],
|
||||
_value2 = _Object$entries3$_i[1];
|
||||
|
||||
this.removeCookie(_key2, _value2);
|
||||
}
|
||||
|
||||
var _iterator4 = _createForOfIteratorHelper(this.cookieContainer.querySelectorAll('.accept > label')),
|
||||
_step4;
|
||||
|
||||
try {
|
||||
for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
|
||||
var acceptLabel = _step4.value;
|
||||
acceptLabel.classList.remove('active');
|
||||
}
|
||||
} catch (err) {
|
||||
_iterator4.e(err);
|
||||
} finally {
|
||||
_iterator4.f();
|
||||
}
|
||||
|
||||
var _iterator5 = _createForOfIteratorHelper(this.cookieContainer.querySelectorAll('.deny > label')),
|
||||
_step5;
|
||||
|
||||
try {
|
||||
for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
|
||||
var denyLabel = _step5.value;
|
||||
denyLabel.classList.add('active');
|
||||
}
|
||||
} catch (err) {
|
||||
_iterator5.e(err);
|
||||
} finally {
|
||||
_iterator5.f();
|
||||
}
|
||||
|
||||
this.updateAllCookiesButtonsActiveStatus();
|
||||
this.cookieContainer.classList.remove('open-modal');
|
||||
this.cookieContainer.classList.remove('open-banner');
|
||||
}.bind(this));
|
||||
this.cookieLink.addEventListener('click', function (e) {
|
||||
e.preventDefault();
|
||||
this.setCookieList();
|
||||
this.updateAllCookiesButtonsActiveStatus();
|
||||
}.bind(this));
|
||||
|
||||
var _iterator6 = _createForOfIteratorHelper(this.personalizeBtn),
|
||||
_step6;
|
||||
|
||||
try {
|
||||
for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) {
|
||||
var item = _step6.value;
|
||||
this.addEvent(item, 'click', function () {
|
||||
this.setCookieList();
|
||||
}.bind(this));
|
||||
}
|
||||
} catch (err) {
|
||||
_iterator6.e(err);
|
||||
} finally {
|
||||
_iterator6.f();
|
||||
}
|
||||
|
||||
this.setListenerOnChange();
|
||||
var cookie = this.getLDCWebCookie('ldcwebcn-init');
|
||||
var test = cookie.split(',');
|
||||
test.forEach(function (elm) {
|
||||
var test = elm.split('=');
|
||||
|
||||
if (test[1] === 'true') {
|
||||
_this.config[test[0]].script();
|
||||
}
|
||||
});
|
||||
this.updateAllCookiesButtonsActiveStatus();
|
||||
}
|
||||
|
||||
_createClass(LdcwebCn, [{
|
||||
key: "setCookieList",
|
||||
value: function setCookieList() {
|
||||
var _this2 = this;
|
||||
|
||||
this.cookiesList.innerHTML = "";
|
||||
var cookiesSite = this.getLDCWebCookie('ldcwebcn-init');
|
||||
|
||||
var _loop = function _loop() {
|
||||
var _Object$entries4$_i = _slicedToArray(_Object$entries4[_i4], 2),
|
||||
key = _Object$entries4$_i[0],
|
||||
value = _Object$entries4$_i[1];
|
||||
|
||||
var cookie = document.createElement('li');
|
||||
cookie.append(_this2.template.children.item(0).cloneNode(true));
|
||||
var name = cookie.querySelector('span.ldcweb-cn-name');
|
||||
var description = cookie.querySelector('span.ldcweb-cn-description');
|
||||
var link = cookie.querySelector('a.ldcweb-cn-link');
|
||||
var acceptInput = cookie.querySelector('.accept > input');
|
||||
var denyInput = cookie.querySelector('.deny > input');
|
||||
var acceptLabel = cookie.querySelector('.accept > label');
|
||||
var denyLabel = cookie.querySelector('.deny > label');
|
||||
name.textContent = value.name;
|
||||
description.textContent = value.description;
|
||||
link.textContent = "En savoir plus";
|
||||
link.setAttribute("href", value.link);
|
||||
acceptInput.id = key + '1';
|
||||
acceptInput.name = key;
|
||||
acceptInput.dataset.name = key;
|
||||
acceptLabel.htmlFor = key + '1';
|
||||
denyInput.id = key + '2';
|
||||
denyInput.name = key;
|
||||
denyInput.dataset.name = key;
|
||||
denyLabel.htmlFor = key + '2';
|
||||
acceptInput.addEventListener('click', function (e) {
|
||||
acceptLabel.classList.add('active');
|
||||
denyLabel.classList.remove('active');
|
||||
this.updateAllCookiesButtonsActiveStatus();
|
||||
this.addCookie(key, value);
|
||||
}.bind(_this2));
|
||||
denyInput.addEventListener('click', function (e) {
|
||||
acceptLabel.classList.remove('active');
|
||||
denyLabel.classList.add('active');
|
||||
this.updateAllCookiesButtonsActiveStatus();
|
||||
this.removeCookie(key, value);
|
||||
}.bind(_this2));
|
||||
|
||||
_this2.cookiesList.append(cookie);
|
||||
|
||||
var cookiesArray = cookiesSite.split(',');
|
||||
cookiesArray.forEach(function (elm) {
|
||||
var name = elm.slice(0, elm.indexOf('='));
|
||||
var status = elm.slice(elm.indexOf('=') + 1);
|
||||
|
||||
if (name === key) {
|
||||
acceptLabel.classList.remove('active');
|
||||
denyLabel.classList.remove('active');
|
||||
|
||||
switch (status) {
|
||||
case 'true':
|
||||
acceptLabel.classList.add('active');
|
||||
break;
|
||||
|
||||
case 'false':
|
||||
denyLabel.classList.add('active');
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (status === 'wait') {
|
||||
_this2.cookieContainer.classList.add('open-banner');
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
for (var _i4 = 0, _Object$entries4 = Object.entries(this.config); _i4 < _Object$entries4.length; _i4++) {
|
||||
_loop();
|
||||
}
|
||||
|
||||
this.cookieContainer.classList.add('open-modal');
|
||||
this.setListenerOnChange();
|
||||
}
|
||||
}, {
|
||||
key: "updateAllCookiesButtonsActiveStatus",
|
||||
value: function updateAllCookiesButtonsActiveStatus() {
|
||||
var acceptsButtons = this.cookieContainer.querySelectorAll('div.accept > label');
|
||||
var deniesButtons = this.cookieContainer.querySelectorAll('div.deny > label');
|
||||
var activeAcceptsButtons = this.cookieContainer.querySelectorAll('div.accept > label.active');
|
||||
var activeDeniesButtons = this.cookieContainer.querySelectorAll('div.deny > label.active');
|
||||
this.acceptAllBtn.classList.remove('active');
|
||||
this.denyAllBtn.classList.remove('active');
|
||||
|
||||
if (acceptsButtons.length && acceptsButtons.length === activeAcceptsButtons.length) {
|
||||
this.acceptAllBtn.classList.add('active');
|
||||
}
|
||||
|
||||
if (deniesButtons.length && deniesButtons.length === activeDeniesButtons.length) {
|
||||
this.denyAllBtn.classList.add('active');
|
||||
}
|
||||
}
|
||||
}, {
|
||||
key: "addCookie",
|
||||
value: function addCookie(key, value) {
|
||||
if (value.script) {
|
||||
value.script();
|
||||
}
|
||||
|
||||
this.changeStatus(key, "true");
|
||||
}
|
||||
}, {
|
||||
key: "removeCookie",
|
||||
value: function removeCookie(key, value) {
|
||||
var _iterator7 = _createForOfIteratorHelper(value.cookies),
|
||||
_step7;
|
||||
|
||||
try {
|
||||
for (_iterator7.s(); !(_step7 = _iterator7.n()).done;) {
|
||||
var cookieName = _step7.value;
|
||||
this.deleteBrowserCookie(cookieName, "/", "." + location.host);
|
||||
}
|
||||
} catch (err) {
|
||||
_iterator7.e(err);
|
||||
} finally {
|
||||
_iterator7.f();
|
||||
}
|
||||
|
||||
if (document.getElementById(key)) {
|
||||
document.getElementById(key).remove();
|
||||
}
|
||||
|
||||
this.changeStatus(key, "false");
|
||||
}
|
||||
}, {
|
||||
key: "setListenerOnChange",
|
||||
value: function setListenerOnChange() {
|
||||
var _this3 = this;
|
||||
|
||||
this.changeBtn = document.getElementsByClassName('ldcweb-cn-change');
|
||||
|
||||
var _iterator8 = _createForOfIteratorHelper(this.changeBtn),
|
||||
_step8;
|
||||
|
||||
try {
|
||||
var _loop2 = function _loop2() {
|
||||
var item = _step8.value;
|
||||
|
||||
_this3.addEvent(item, 'click', function () {
|
||||
this.changeStatus(item.getAttribute('data-name'), item.getAttribute('data-status'));
|
||||
}.bind(_this3));
|
||||
};
|
||||
|
||||
for (_iterator8.s(); !(_step8 = _iterator8.n()).done;) {
|
||||
_loop2();
|
||||
}
|
||||
} catch (err) {
|
||||
_iterator8.e(err);
|
||||
} finally {
|
||||
_iterator8.f();
|
||||
}
|
||||
}
|
||||
}, {
|
||||
key: "changeStatus",
|
||||
value: function changeStatus(name, status) {
|
||||
var _this4 = this;
|
||||
|
||||
var newCookie = [];
|
||||
var cookie = this.getLDCWebCookie('ldcwebcn-init');
|
||||
var test = cookie.split(',');
|
||||
test.forEach(function (elm) {
|
||||
var test = elm.split('=');
|
||||
|
||||
if (test[0] === name) {
|
||||
newCookie.push(name + "=" + status);
|
||||
|
||||
if (status === 'false') {
|
||||
_this4.config[test[0]].cookies.forEach(function (elm) {
|
||||
var cookies = _this4.getLDCWebCookie(elm);
|
||||
|
||||
if (cookies !== undefined) {
|
||||
document.cookie = elm + "=; expires=Thu, 01 Jan 1970 00:00:00 UTC; domain=" + document.domain + "; path=/";
|
||||
document.cookie = elm + "=; expires=Thu, 01 Jan 1970 00:00:00 UTC; domain=." + document.domain + "; path=/";
|
||||
}
|
||||
});
|
||||
}
|
||||
} else {
|
||||
newCookie.push(elm);
|
||||
}
|
||||
});
|
||||
this.saveLDCWebCookie(newCookie);
|
||||
}
|
||||
}, {
|
||||
key: "deleteBrowserCookie",
|
||||
value: function deleteBrowserCookie(name, path, domain) {
|
||||
if (this.getLDCWebCookie(name)) {
|
||||
document.cookie = name + "=" + (path ? ";path=" + path : "") + (domain ? ";domain=" + domain : "") + ";expires=Thu, 01 Jan 1970 00:00:01 GMT";
|
||||
}
|
||||
}
|
||||
}, {
|
||||
key: "getLDCWebCookie",
|
||||
value: function getLDCWebCookie(name) {
|
||||
var matches = document.cookie.match(new RegExp("(?:^|; )" + name.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g, '\\$1') + "=([^;]*)"));
|
||||
return matches ? decodeURIComponent(matches[1]) : undefined;
|
||||
}
|
||||
}, {
|
||||
key: "addEvent",
|
||||
value: function addEvent(element, evnt, funct) {
|
||||
if (element.attachEvent) return element.attachEvent('on' + evnt, funct);else return element.addEventListener(evnt, funct, false);
|
||||
}
|
||||
}, {
|
||||
key: "saveLDCWebCookie",
|
||||
value: function saveLDCWebCookie(content) {
|
||||
document.cookie = "ldcwebcn-init=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;";
|
||||
var date = new Date();
|
||||
var newDate = new Date(date.setMonth(date.getMonth() + 13));
|
||||
document.cookie = "ldcwebcn-init=" + content + "; expires=" + newDate.toUTCString() + ";";
|
||||
}
|
||||
}]);
|
||||
|
||||
return LdcwebCn;
|
||||
}();
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 1:
|
||||
|
|
|
|||
3
resources/views/front/canard/js/app.js
vendored
3
resources/views/front/canard/js/app.js
vendored
|
|
@ -2,6 +2,9 @@ import { isWindow } from 'jquery';
|
|||
import Swiper from 'swiper/swiper-bundle';
|
||||
import Toastify from "toastify-js";
|
||||
require('./bootstrap');
|
||||
// cookie notice
|
||||
import { LdcwebCn } from "./ldcweb-cn.js";
|
||||
window.LdcwebCn = LdcwebCn;
|
||||
require('./cart.js');
|
||||
|
||||
window.Toastify = Toastify;
|
||||
|
|
|
|||
304
resources/views/front/canard/js/ldcweb-cn.js
vendored
Normal file
304
resources/views/front/canard/js/ldcweb-cn.js
vendored
Normal file
|
|
@ -0,0 +1,304 @@
|
|||
/**
|
||||
* LDC Service Web
|
||||
* Version 1.0
|
||||
*/
|
||||
|
||||
export class LdcwebCn {
|
||||
|
||||
constructor(config) {
|
||||
this.config = config;
|
||||
this.cookieContainer = document.getElementById('ldcweb-cn');
|
||||
this.bannerContainer = document.getElementById('ldcweb-banner');
|
||||
this.modalContainer = document.getElementById('ldcweb-cn-modal');
|
||||
this.modalCloseBtn = document.getElementById('close-link');
|
||||
this.acceptAllBtnBanner = document.getElementById('ldcweb-cn-accept-banner');
|
||||
this.acceptAllBtn = document.getElementById('ldcweb-cn-accept');
|
||||
this.denyAllBtn = document.getElementById('ldcweb-cn-deny');
|
||||
this.personalizeBtn = document.getElementsByClassName('ldcweb-cn-personalize');
|
||||
this.changeBtn = document.getElementsByClassName('ldcweb-cn-change');
|
||||
this.cookiesList = document.getElementById('ldcweb-cn-list');
|
||||
this.cookieLink = document.querySelector('.footer-links a[href="#cookie"]')
|
||||
this.template = document.getElementById('template').cloneNode(true);
|
||||
document.getElementById('template').remove();
|
||||
|
||||
let cookies = this.getLDCWebCookie('ldcwebcn-init');
|
||||
if (cookies === undefined) {
|
||||
let newCookie = [];
|
||||
|
||||
for (const [key, value] of Object.entries(this.config)) {
|
||||
newCookie.push(key + "=wait");
|
||||
}
|
||||
|
||||
this.saveLDCWebCookie(newCookie);
|
||||
this.cookieContainer.classList.add('open-banner');
|
||||
} else {
|
||||
let test = cookies.split(',');
|
||||
test.forEach(elm => {
|
||||
let test = elm.split('=');
|
||||
if (test[1] === 'wait') {
|
||||
this.cookieContainer.classList.add('open-banner');
|
||||
}
|
||||
});
|
||||
}
|
||||
this.modalCloseBtn.addEventListener(
|
||||
'click',
|
||||
function (e) {
|
||||
e.preventDefault();
|
||||
let cookies = this.getLDCWebCookie('ldcwebcn-init');
|
||||
let test = cookies.split(',');
|
||||
let bIsCompleted = true;
|
||||
for (let item of test) {
|
||||
if (item.indexOf('=wait') !== -1) {
|
||||
bIsCompleted = false;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (bIsCompleted) {
|
||||
this.cookieContainer.classList.remove('open-modal');
|
||||
this.cookieContainer.classList.remove('open-banner');
|
||||
} else {
|
||||
alert("Vous devez renseigner votre choix pour tous les cookies, svp.");
|
||||
}
|
||||
}.bind(this)
|
||||
);
|
||||
let accept = function (e) {
|
||||
e.preventDefault();
|
||||
for (const [key, value] of Object.entries(this.config)) {
|
||||
this.addCookie(key, value);
|
||||
}
|
||||
for (let acceptLabel of this.cookieContainer.querySelectorAll('.accept > label')) {
|
||||
acceptLabel.classList.add('active');
|
||||
}
|
||||
for (let denyLabel of this.cookieContainer.querySelectorAll('.deny > label')) {
|
||||
denyLabel.classList.remove('active');
|
||||
}
|
||||
this.updateAllCookiesButtonsActiveStatus()
|
||||
this.cookieContainer.classList.remove('open-modal');
|
||||
this.cookieContainer.classList.remove('open-banner');
|
||||
}.bind(this);
|
||||
this.acceptAllBtnBanner.addEventListener('click', accept);
|
||||
this.acceptAllBtn.addEventListener('click', accept);
|
||||
|
||||
this.denyAllBtn.addEventListener(
|
||||
'click',
|
||||
function (e) {
|
||||
e.preventDefault();
|
||||
for (const [key, value] of Object.entries(this.config)) {
|
||||
this.removeCookie(key, value);
|
||||
}
|
||||
for (let acceptLabel of this.cookieContainer.querySelectorAll('.accept > label')) {
|
||||
acceptLabel.classList.remove('active');
|
||||
}
|
||||
for (let denyLabel of this.cookieContainer.querySelectorAll('.deny > label')) {
|
||||
denyLabel.classList.add('active');
|
||||
}
|
||||
this.updateAllCookiesButtonsActiveStatus()
|
||||
this.cookieContainer.classList.remove('open-modal');
|
||||
this.cookieContainer.classList.remove('open-banner');
|
||||
}.bind(this)
|
||||
);
|
||||
|
||||
this.cookieLink.addEventListener(
|
||||
'click',
|
||||
function (e) {
|
||||
e.preventDefault();
|
||||
this.setCookieList();
|
||||
this.updateAllCookiesButtonsActiveStatus()
|
||||
}.bind(this)
|
||||
);
|
||||
|
||||
for (let item of this.personalizeBtn) {
|
||||
this.addEvent(
|
||||
item,
|
||||
'click',
|
||||
function () {
|
||||
this.setCookieList();
|
||||
}.bind(this)
|
||||
);
|
||||
}
|
||||
|
||||
this.setListenerOnChange();
|
||||
|
||||
let cookie = this.getLDCWebCookie('ldcwebcn-init');
|
||||
let test = cookie.split(',');
|
||||
test.forEach(elm => {
|
||||
let test = elm.split('=');
|
||||
if (test[1] === 'true') {
|
||||
this.config[test[0]].script();
|
||||
}
|
||||
});
|
||||
|
||||
this.updateAllCookiesButtonsActiveStatus()
|
||||
}
|
||||
|
||||
setCookieList() {
|
||||
this.cookiesList.innerHTML = "";
|
||||
let cookiesSite = this.getLDCWebCookie('ldcwebcn-init');
|
||||
|
||||
for (const [key, value] of Object.entries(this.config)) {
|
||||
let cookie = document.createElement('li');
|
||||
cookie.append(this.template.children.item(0).cloneNode(true));
|
||||
let name = cookie.querySelector('span.ldcweb-cn-name');
|
||||
let description = cookie.querySelector('span.ldcweb-cn-description');
|
||||
let link = cookie.querySelector('a.ldcweb-cn-link');
|
||||
let acceptInput = cookie.querySelector('.accept > input');
|
||||
let denyInput = cookie.querySelector('.deny > input');
|
||||
let acceptLabel = cookie.querySelector('.accept > label');
|
||||
let denyLabel = cookie.querySelector('.deny > label');
|
||||
|
||||
name.textContent = value.name;
|
||||
description.textContent = value.description;
|
||||
link.textContent = "En savoir plus";
|
||||
link.setAttribute("href", value.link);
|
||||
acceptInput.id = key + '1';
|
||||
acceptInput.name = key;
|
||||
acceptInput.dataset.name = key;
|
||||
acceptLabel.htmlFor = key + '1';
|
||||
denyInput.id = key + '2';
|
||||
denyInput.name = key;
|
||||
denyInput.dataset.name = key;
|
||||
denyLabel.htmlFor = key + '2';
|
||||
|
||||
acceptInput.addEventListener('click', function (e) {
|
||||
acceptLabel.classList.add('active');
|
||||
denyLabel.classList.remove('active');
|
||||
this.updateAllCookiesButtonsActiveStatus();
|
||||
this.addCookie(key, value)
|
||||
}.bind(this));
|
||||
denyInput.addEventListener('click', function (e) {
|
||||
acceptLabel.classList.remove('active');
|
||||
denyLabel.classList.add('active');
|
||||
this.updateAllCookiesButtonsActiveStatus();
|
||||
this.removeCookie(key, value)
|
||||
}.bind(this));
|
||||
|
||||
this.cookiesList.append(cookie);
|
||||
|
||||
let cookiesArray = cookiesSite.split(',');
|
||||
cookiesArray.forEach(elm => {
|
||||
let name = elm.slice(0, elm.indexOf('='));
|
||||
let status = elm.slice(elm.indexOf('=') + 1);
|
||||
if (name === key) {
|
||||
acceptLabel.classList.remove('active');
|
||||
denyLabel.classList.remove('active');
|
||||
switch (status) {
|
||||
case 'true':
|
||||
acceptLabel.classList.add('active');
|
||||
break;
|
||||
case 'false':
|
||||
denyLabel.classList.add('active');
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (status === 'wait') {
|
||||
this.cookieContainer.classList.add('open-banner');
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
this.cookieContainer.classList.add('open-modal');
|
||||
this.setListenerOnChange();
|
||||
}
|
||||
|
||||
updateAllCookiesButtonsActiveStatus() {
|
||||
let acceptsButtons = this.cookieContainer.querySelectorAll('div.accept > label');
|
||||
let deniesButtons = this.cookieContainer.querySelectorAll('div.deny > label');
|
||||
let activeAcceptsButtons = this.cookieContainer.querySelectorAll('div.accept > label.active');
|
||||
let activeDeniesButtons = this.cookieContainer.querySelectorAll('div.deny > label.active');
|
||||
|
||||
this.acceptAllBtn.classList.remove('active');
|
||||
this.denyAllBtn.classList.remove('active');
|
||||
if (acceptsButtons.length && acceptsButtons.length === activeAcceptsButtons.length) {
|
||||
this.acceptAllBtn.classList.add('active');
|
||||
}
|
||||
if (deniesButtons.length && deniesButtons.length === activeDeniesButtons.length) {
|
||||
this.denyAllBtn.classList.add('active');
|
||||
}
|
||||
}
|
||||
|
||||
addCookie(key, value) {
|
||||
if (value.script) {
|
||||
value.script();
|
||||
}
|
||||
this.changeStatus(key, "true");
|
||||
}
|
||||
|
||||
removeCookie(key, value) {
|
||||
for (let cookieName of value.cookies) {
|
||||
this.deleteBrowserCookie(cookieName, "/", "." + location.host)
|
||||
}
|
||||
if (document.getElementById(key)) {
|
||||
document.getElementById(key).remove();
|
||||
}
|
||||
this.changeStatus(key, "false");
|
||||
}
|
||||
setListenerOnChange() {
|
||||
this.changeBtn = document.getElementsByClassName('ldcweb-cn-change');
|
||||
for (let item of this.changeBtn) {
|
||||
this.addEvent(
|
||||
item,
|
||||
'click',
|
||||
function () {
|
||||
this.changeStatus(item.getAttribute('data-name'), item.getAttribute('data-status'));
|
||||
}.bind(this)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
changeStatus(name, status) {
|
||||
let newCookie = [];
|
||||
|
||||
let cookie = this.getLDCWebCookie('ldcwebcn-init');
|
||||
let test = cookie.split(',');
|
||||
test.forEach(elm => {
|
||||
let test = elm.split('=');
|
||||
if (test[0] === name) {
|
||||
newCookie.push(name + "=" + status);
|
||||
if (status === 'false') {
|
||||
this.config[test[0]].cookies.forEach(elm => {
|
||||
let cookies = this.getLDCWebCookie(elm);
|
||||
if (cookies !== undefined) {
|
||||
document.cookie = elm + "=; expires=Thu, 01 Jan 1970 00:00:00 UTC; domain=" + document.domain + "; path=/";
|
||||
document.cookie = elm + "=; expires=Thu, 01 Jan 1970 00:00:00 UTC; domain=." + document.domain + "; path=/";
|
||||
}
|
||||
});
|
||||
}
|
||||
} else {
|
||||
newCookie.push(elm);
|
||||
}
|
||||
});
|
||||
|
||||
this.saveLDCWebCookie(newCookie);
|
||||
}
|
||||
|
||||
deleteBrowserCookie(name, path, domain) {
|
||||
if (this.getLDCWebCookie(name)) {
|
||||
document.cookie = name + "=" +
|
||||
((path) ? ";path=" + path : "") +
|
||||
((domain) ? ";domain=" + domain : "") +
|
||||
";expires=Thu, 01 Jan 1970 00:00:01 GMT";
|
||||
}
|
||||
}
|
||||
|
||||
getLDCWebCookie(name) {
|
||||
let matches = document.cookie.match(new RegExp(
|
||||
"(?:^|; )" + name.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g, '\\$1') + "=([^;]*)"
|
||||
));
|
||||
return matches ? decodeURIComponent(matches[1]) : undefined;
|
||||
}
|
||||
|
||||
addEvent(element, evnt, funct) {
|
||||
if (element.attachEvent)
|
||||
return element.attachEvent('on' + evnt, funct);
|
||||
else
|
||||
return element.addEventListener(evnt, funct, false);
|
||||
}
|
||||
|
||||
saveLDCWebCookie(content) {
|
||||
document.cookie = "ldcwebcn-init=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;";
|
||||
let date = new Date();
|
||||
let newDate = new Date(date.setMonth(date.getMonth() + 13));
|
||||
document.cookie = "ldcwebcn-init=" + content + "; expires=" + newDate.toUTCString() + ";";
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -41,6 +41,7 @@
|
|||
</div><!-- page-wrap END -->
|
||||
|
||||
<script src="{{ asset(config('app.theme').'/js/app.js') }}"></script>
|
||||
@include('partials.cookie')
|
||||
@stack('scripts')
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
90
resources/views/front/canard/partials/cookie.blade.php
Normal file
90
resources/views/front/canard/partials/cookie.blade.php
Normal file
|
|
@ -0,0 +1,90 @@
|
|||
<div id="ldcweb-cn">
|
||||
<div id="ldcweb-banner" class="ldcweb-cn-banner">
|
||||
<div class="banner-img">
|
||||
<img src="{{ asset(config('app.theme')."/img/logo.png")}}" alt="{{ __('Logo - '). Config::get('theme.site_name') }}">
|
||||
</div>
|
||||
<div class="col">
|
||||
<div class="banner-title">
|
||||
<p aria-level="h1">Le respect de votre vie privée est notre priorité</p>
|
||||
</div>
|
||||
<div class="banner-txt">
|
||||
<p>Nous utilisons différentes technologies, telles que celle des cookies, et traitons vos données à caractère personnel, telles que les adresses IP et les identifiants de cookie, afin de personnaliser les contenus en fonction de vos centres d’intérêt, d’évaluer la performance de ce site et de recueillir des informations sur les publics qui l’ont visionné. Ces cookies sont nécessaires pour assurer le fonctionnement optimal du site et sont donc activés en permanence. Les cookies de Google Analytics permettent de stocker l'adresse des pages consultées, les dates et heures des visites, tout ceci à des fins de mesure d’audience. Un cookie tiers est installé dans le cadre de l'utilisation de ReCaptcha de Google lors de l'envoi des formulaires de contact. Ce cookie sert à vérifier que le formulaire est bien complété par un internaute et non un robot. Cliquez sur "OK, TOUT ACCEPTER" si vous consentez à l’utilisation de cette technologie et au traitement de vos données à caractère personnel en vue de ces objectifs. Vous pouvez changer d’avis et modifier votre consentement à tout moment en revenant sur ce site.
|
||||
<br>
|
||||
Vous pouvez cliquer sur <a href="{{ route('privacy') }}">ce lien</a> pour accéder à notre politique de confidentialité.
|
||||
<br>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="btns">
|
||||
<div>
|
||||
<a href="#" id="ldcweb-cn-accept-banner" class="btn ldcweb-cn-accept">OK, TOUT ACCEPTER</a>
|
||||
</div>
|
||||
<div>
|
||||
<a href="#" class="btn ldcweb-cn-personalize">Personnaliser</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="ldcweb-cn-modal">
|
||||
<div class="modal-wrapper">
|
||||
<div class="modal-btn-close"><a href="#" id="close-link">X</a></div>
|
||||
<div class="modal-title">
|
||||
<p class="title" aria-level="h2">Panneau de gestion des cookies</p>
|
||||
<p class="description">En autorisant ces services tiers, vous acceptez le dépôt et la lecture de cookies et l'utilisation de technologies de suivi nécessaires à leur bon fonctionnement.</p>
|
||||
<div><a href="{{ route('privacy') }}">Politique de confidentialité</a></div>
|
||||
</div>
|
||||
<div class="modal-all">
|
||||
<p>Préférence pour tous les services</p>
|
||||
<div class="all-buttons">
|
||||
<div class="accept"><a href="#" id="ldcweb-cn-accept">Autoriser tous les cookies</a></div>
|
||||
<div class="deny"><a href="#" id="ldcweb-cn-deny">Interdire tous les cookies</a></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal-details">
|
||||
<ul id="ldcweb-cn-list">
|
||||
</ul>
|
||||
<div id="template">
|
||||
<div>
|
||||
<div class="ldcweb-cn-infos">
|
||||
<span class="ldcweb-cn-name">Google Analytics (universal)</span>
|
||||
<span class="ldcweb-cn-description">Ce service peut déposer 8 cookies.</span>
|
||||
<a class="ldcweb-cn-link" href="#">En savoir plus</a>
|
||||
</div>
|
||||
<div class="ldcweb-cn-buttons">
|
||||
<div class="accept" id="accept-btn">
|
||||
<input type="radio" id="analytics1" name="analytics" data-name="analytics" data-status="true">
|
||||
<label for="analytics1">Autoriser</label>
|
||||
</div>
|
||||
<div class="deny" id="deny-btn">
|
||||
<input type="radio" id="analytics2" name="analytics" data-name="analytics" data-status="false">
|
||||
<label for="analytics2">Interdire</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@push('scripts')
|
||||
<script>
|
||||
window.LDCWebCN = new LdcwebCn({
|
||||
'analytics': {
|
||||
'name': "Google Analytics",
|
||||
'description': 'Service d\'analyse d\'audience',
|
||||
'link': 'https://support.google.com/analytics/answer/6004245',
|
||||
'cookies': ['_ga', '_gat_gtag_UA_44843090_1', '_gid'],
|
||||
'script': function () {
|
||||
(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];
|
||||
g.src='https://www.googletagmanager.com/gtag/js?id=UA-44843090-1';
|
||||
s.parentNode.insertBefore(g,s)}(document,'script'));
|
||||
|
||||
window.dataLayer = window.dataLayer || [];
|
||||
function gtag(){dataLayer.push(arguments);}
|
||||
gtag('js', new Date());
|
||||
gtag('config', 'UA-44843090-1');
|
||||
}
|
||||
}
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
|
|
@ -6,6 +6,7 @@
|
|||
<li><a href="{{ route('privacy') }}">Politique de confidentialité</a></li>
|
||||
<li><a href="{{ route('faq') }}">FAQ</a></li>
|
||||
<li><a href="{{ route('terms') }}">Conditions générales de vente</a></li>
|
||||
<li><a href="#cookie" title="gestion des cookies">Gestion des cookies</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</footer>
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@ $brown: #9b867c;
|
|||
$beige-l: #f9f7f3;
|
||||
$beige-d: #f4f0e9;
|
||||
$grey: #89959a;
|
||||
$text-color: #2D3B45;
|
||||
|
||||
$gradient-blue-1: #1a3441;
|
||||
$gradient-blue-2: #005C68;
|
||||
|
|
|
|||
1
resources/views/front/canard/sass/app.scss
vendored
1
resources/views/front/canard/sass/app.scss
vendored
|
|
@ -4,6 +4,7 @@
|
|||
@import '../../../../../node_modules/swiper/swiper-bundle.min.css';
|
||||
@import "~toastify-js/src/toastify.css";
|
||||
@import 'variables';
|
||||
@import 'cookies-ldc.scss';
|
||||
@import 'fonts';
|
||||
@import 'notifications';
|
||||
@import 'main';
|
||||
|
|
|
|||
580
resources/views/front/canard/sass/cookies-ldc.scss
vendored
Normal file
580
resources/views/front/canard/sass/cookies-ldc.scss
vendored
Normal file
|
|
@ -0,0 +1,580 @@
|
|||
/* DEBUT DU PARAMETRAGE */
|
||||
/* - Choix des FONTS */
|
||||
/* - Changement des couleurs et des polices */
|
||||
|
||||
:root{
|
||||
/* PARTIE A RENSEIGNER */
|
||||
--primary-color: #{$blue};
|
||||
--secondary-color: #{$green};
|
||||
--background-color: #{$beige-l};
|
||||
--title-font: "Berkshire Swash", Arial, Helvetica, sans-serif;
|
||||
--title-size: 30px;
|
||||
--text-font: "Roboto", Arial, Helvetica, sans-serif;
|
||||
--text-size: 1rem;
|
||||
--accept-color: #{$success};
|
||||
--deny-color: #{$error};
|
||||
|
||||
/* PARTIE A RENSEIGNER FACULTATIF */
|
||||
/* FENETRE D'ACCUEIL */
|
||||
--ck-bg-color: var(--background-color);
|
||||
/* Title settings */
|
||||
--ck-w1-bgcolor-title: var(--background-color);
|
||||
--ck-w1-font-family-title: var(--title-font);
|
||||
--ck-w1-font-size-title: var(--title-size);
|
||||
--ck-w1-color-title: var(--primary);
|
||||
|
||||
/* Text settings */
|
||||
--ck-w1-font-family-txt: var(--text-font);
|
||||
--ck-w1-font-size-txt: var(--text-size);
|
||||
--ck-w1-color-txt: var(--primary-color);
|
||||
--ck-w1-color-href-hover: var(--secondary-color);
|
||||
|
||||
/* Button settings */
|
||||
--ck-w1-color-btn: var(--primary-color);
|
||||
--ck-w1-color-btn-hover: var(--secondary-color);
|
||||
--ck-w1-font-family-btn-txt: var(--text-font);
|
||||
--ck-w1-font-size-btn-txt: var(--text-size);
|
||||
--ck-w1-color-btn-txt: #ffffff;
|
||||
--ck-w1-color-btn-txt-hover: #ffffff;
|
||||
--ck-w1-color-btn-border: transparent;
|
||||
--ck-w1-color-btn-border-hover: transparent;
|
||||
|
||||
/* FENETRE DE PERSONNALISATION */
|
||||
--ck-bg-color-modal-wrapper: #ffffff;
|
||||
/* Title settings */
|
||||
--ck-w2-bgcolor-title: var(--primary-color);
|
||||
--ck-w2-font-family-title: var(--title-font);
|
||||
--ck-w2-font-size-title: var(--title-size);
|
||||
--ck-w2-color-title: #ffffff;
|
||||
|
||||
/* Text settings */
|
||||
--ck-w2-font-family-txt: var(--text-font);
|
||||
--ck-w2-font-size-txt: var(--text-size);
|
||||
--ck-w2-color-txt: #ffffff;
|
||||
--ck-w2-color-href-hover: #000000;
|
||||
|
||||
/* Accept/Deny btn settings */
|
||||
--ck-color-accept: #808080;
|
||||
--ck-color-accept-hover: var(--accept-color);
|
||||
--ck-color-deny: #808080;
|
||||
--ck-color-deny-hover: var(--deny-color);
|
||||
--ck-color-txt: #ffffff;
|
||||
--ck-color-txt-hover: #ffffff;
|
||||
|
||||
/* Cookies list settings */
|
||||
--ck-bgcolor-list: #e4e4e4;
|
||||
--ck-font-family-list: var(--text-font);
|
||||
--ck-font-size-list: var(--text-size);
|
||||
--ck-color-list: #000000;
|
||||
}
|
||||
/* FIN DU PARAMETRAGE */
|
||||
|
||||
/* MOBILE FIRST */
|
||||
#ldcweb-cn *,#ldcweb-cn *::before, #ldcweb-cn *::after {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
#template{display: none;}
|
||||
#ldcweb-cn.open-banner .ldcweb-cn-banner{display: flex;}
|
||||
#ldcweb-cn.open-modal #ldcweb-cn-modal{display: flex;}
|
||||
#ldcweb-cn.open-banner, #ldcweb-cn.open-modal{display: flex;}
|
||||
#ldcweb-cn {
|
||||
display: none;
|
||||
flex-direction: column;
|
||||
justify-content: flex-end;
|
||||
position: fixed;
|
||||
left: 0; right: 0;
|
||||
top: 0; bottom: 0;
|
||||
width: 100%; height: 100%;
|
||||
background: rgba(0, 0, 0, 0.7);
|
||||
z-index: 99999999999;
|
||||
opacity: 1;
|
||||
line-height: initial;
|
||||
}
|
||||
|
||||
#ldcweb-cn p,
|
||||
#ldcweb-cn a{
|
||||
font-family: var(--ck-w1-font-family-txt);
|
||||
font-size: var(--ck-w1-font-size-txt);
|
||||
color: var(--ck-w1-color-txt);
|
||||
}
|
||||
#ldcweb-cn a{
|
||||
text-decoration: underline;
|
||||
transition: color .5s;
|
||||
}
|
||||
#ldcweb-cn a:hover{color: var(--ck-w1-color-href-hover);}
|
||||
#ldcweb-cn .ldcweb-cn-banner, #ldcweb-cn-modal .modal-wrapper{
|
||||
overflow: auto;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
}
|
||||
#ldcweb-cn .ldcweb-cn-banner{
|
||||
display: none;
|
||||
padding: 6vw 10vw;
|
||||
max-height: 50vh;
|
||||
|
||||
box-shadow: 0px 5px 10px -5px #000 inset;
|
||||
background-color: var(--ck-bg-color);
|
||||
}
|
||||
#ldcweb-cn .ldcweb-cn-banner div:not(:last-child){margin-bottom: 4vw;}
|
||||
#ldcweb-cn .banner-img{
|
||||
flex: 1;
|
||||
max-width: 200px;
|
||||
}
|
||||
#ldcweb-cn .banner-img img{width: 100%;}
|
||||
#ldcweb-cn .col{flex: 2;}
|
||||
#ldcweb-cn .banner-title p{
|
||||
font-family: var(--ck-w1-font-family-title);
|
||||
font-size: var(--ck-w1-font-size-title);
|
||||
font-weight: bold;
|
||||
color: var(--ck-w1-color-title);
|
||||
text-align: center;
|
||||
}
|
||||
#ldcweb-cn .banner-txt{text-align: center;}
|
||||
#ldcweb-cn .btns {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
#ldcweb-cn .btns .btn {
|
||||
display: block;
|
||||
flex: 1;
|
||||
padding: 1em;
|
||||
text-align: center;
|
||||
min-width: 12em;
|
||||
|
||||
background-color: var(--ck-w1-color-btn);
|
||||
text-decoration: none;
|
||||
font-family: var(--ck-w1-font-family-btn-txt);
|
||||
font-size: var(--ck-w1-font-size-btn-txt);
|
||||
color: var(--ck-w1-color-btn-txt);
|
||||
transition: all .5s;
|
||||
}
|
||||
#ldcweb-cn .btns .btn:hover {
|
||||
background-color: var(--ck-w1-color-btn-hover);
|
||||
background-image: linear-gradient(rgba(0,0,0,.1),rgba(0,0,0,.5));
|
||||
color: var(--ck-w1-color-btn-txt-hover);
|
||||
}
|
||||
|
||||
/* MODAL */
|
||||
#ldcweb-cn-modal {
|
||||
display: none;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
position: fixed;
|
||||
left: 0; right: 0;
|
||||
top: 0; bottom: 0;
|
||||
width: 100%; height: 100%;
|
||||
z-index: 200;
|
||||
|
||||
background: rgba(0, 0, 0, 0.7);
|
||||
opacity: 1;
|
||||
}
|
||||
#ldcweb-cn-modal .modal-wrapper{
|
||||
position: relative;
|
||||
background-color: var(--ck-bg-color-modal-wrapper);
|
||||
}
|
||||
#ldcweb-cn-modal .modal-wrapper > div:not(:first-of-type){width: 100%;}
|
||||
#ldcweb-cn-modal .modal-btn-close{
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: 0;
|
||||
width: 5vw; height: 6vw;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
#ldcweb-cn-modal .modal-btn-close a{
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
font-size: medium;
|
||||
font-weight: bold;
|
||||
color: var(--ck-w2-color-title);
|
||||
background-color: var(--ck-w2-bgcolor-title);
|
||||
text-decoration: none;
|
||||
border-radius: 0 0 0 50%;
|
||||
transition: all .5s;
|
||||
}
|
||||
#ldcweb-cn-modal .modal-btn-close a:hover{
|
||||
color: #000000;
|
||||
background-color: #808080;
|
||||
background-image: linear-gradient(rgba(0,0,0,.1),rgba(0,0,0,.5));
|
||||
box-shadow: -1px 1px 10px -4px #000;
|
||||
}
|
||||
#ldcweb-cn-modal .modal-title, #ldcweb-cn-modal .modal-all
|
||||
{background-color: var(--ck-w2-bgcolor-title);}
|
||||
#ldcweb-cn-modal .modal-title .description,
|
||||
#ldcweb-cn-modal .modal-title > div,
|
||||
#ldcweb-cn-modal .modal-all{
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
}
|
||||
#ldcweb-cn-modal .modal-title .description,
|
||||
#ldcweb-cn-modal .modal-title > div a,
|
||||
#ldcweb-cn-modal .modal-all p,
|
||||
#ldcweb-cn-modal .modal-all a{
|
||||
font-family: var(--ck-w2-font-family-txt);
|
||||
font-size: var(--ck-w2-font-size-txt);
|
||||
color: var(--ck-w2-color-txt);
|
||||
text-align: center;
|
||||
}
|
||||
#ldcweb-cn-modal .modal-title > div a:hover,
|
||||
#ldcweb-cn-modal .modal-all a:hover
|
||||
{color: var(--ck-w2-color-href-hover);}
|
||||
/* TITLE */
|
||||
#ldcweb-cn-modal .modal-wrapper .modal-title{padding: 4vw 4vw 0;}
|
||||
#ldcweb-cn-modal .modal-title .title{
|
||||
font-family: var(--ck-w2-font-family-title);
|
||||
font-size: var(--ck-w2-font-size-title);
|
||||
font-weight: bold;
|
||||
color: var(--ck-w2-color-title);
|
||||
text-align: center;
|
||||
}
|
||||
#ldcweb-cn-modal .modal-title .title::after,
|
||||
#ldcweb-cn-modal .modal-title > div::after{
|
||||
content: "";
|
||||
display: block;
|
||||
width: 90%; height: 2px;
|
||||
margin: 4vw auto;
|
||||
|
||||
background-color: rgba(255, 255, 255, .5);
|
||||
}
|
||||
#ldcweb-cn-modal .modal-title a{width: fit-content;}
|
||||
/* ALL */
|
||||
#ldcweb-cn-modal .modal-wrapper .modal-all{padding: 0 4vw 4vw;}
|
||||
#ldcweb-cn-modal .modal-all .all-buttons{
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
}
|
||||
#ldcweb-cn-modal .modal-all .all-buttons > div{
|
||||
width: calc(100% + 15vw);
|
||||
margin: 2vw 0 0;
|
||||
}
|
||||
#ldcweb-cn-modal .modal-all a{
|
||||
display: block;
|
||||
padding: 3vw 0;
|
||||
|
||||
color: var(--ck-color-txt);
|
||||
/* font-weight: bold; */
|
||||
text-decoration: none;
|
||||
transition: all .5s;
|
||||
}
|
||||
#ldcweb-cn-modal .all-buttons > div.accept > a.active {
|
||||
background-color: var(--ck-color-accept-hover);
|
||||
background-image: linear-gradient(rgba(0,0,0,.1),rgba(0,0,0,.5));
|
||||
}
|
||||
#ldcweb-cn-modal .all-buttons > div.deny > a.active {
|
||||
background-color: var(--ck-color-deny-hover);
|
||||
background-image: linear-gradient(rgba(0,0,0,.1),rgba(0,0,0,.5));
|
||||
}
|
||||
#ldcweb-cn-modal .modal-all > div > div:first-of-type a{background-color: var(--ck-color-accept);}
|
||||
#ldcweb-cn-modal .modal-all > div > div:last-of-type a{background-color: var(--ck-color-deny);}
|
||||
#ldcweb-cn-modal .modal-all > div > div:first-of-type a:hover{
|
||||
color: var(--ck-color-txt-hover);
|
||||
background-color: var(--ck-color-accept-hover);
|
||||
background-image: linear-gradient(rgba(0,0,0,.1),rgba(0,0,0,.5));
|
||||
}
|
||||
#ldcweb-cn-modal .modal-all > div > div:last-of-type a:hover{
|
||||
color: var(--ck-color-txt-hover);
|
||||
background-color: var(--ck-color-deny-hover);
|
||||
background-image: linear-gradient(rgba(0,0,0,.1),rgba(0,0,0,.5));
|
||||
}
|
||||
/* DETAILS */
|
||||
#ldcweb-cn-modal .modal-wrapper .modal-details{padding: 2vw 0;}
|
||||
#ldcweb-cn-modal .modal-details ul{
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
#ldcweb-cn-modal .modal-details li > div{
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: space-between;
|
||||
margin: 2vw 0;
|
||||
padding: 2vw 4vw;
|
||||
|
||||
background-color: var(--ck-bgcolor-list);
|
||||
}
|
||||
#ldcweb-cn-modal .modal-details li span,
|
||||
#ldcweb-cn-modal .modal-details li a,
|
||||
#ldcweb-cn-modal .modal-details li label{
|
||||
font-family: var(--ck-font-family-list);
|
||||
font-size: var(--ck-font-size-list);
|
||||
color: var(--ck-color-list);
|
||||
}
|
||||
#ldcweb-cn-modal .modal-details li a:hover{color:var(--secondary-color);}
|
||||
#ldcweb-cn-modal .modal-details .ldcweb-cn-infos{
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
#ldcweb-cn-modal .modal-details .ldcweb-cn-infos span:first-of-type{
|
||||
font-size: calc(var(--ck-font-size-list) * 1.25);
|
||||
font-weight: bold;
|
||||
}
|
||||
#ldcweb-cn-modal .modal-details .ldcweb-cn-infos a{width: fit-content;}
|
||||
#ldcweb-cn-modal .modal-details .ldcweb-cn-buttons{display: flex;}
|
||||
#ldcweb-cn-modal .modal-details .ldcweb-cn-buttons div:first-of-type,
|
||||
#ldcweb-cn-modal .modal-details .ldcweb-cn-buttons div:last-of-type
|
||||
{transition: all .5s;}
|
||||
#ldcweb-cn-modal .modal-details .ldcweb-cn-buttons div:first-of-type{
|
||||
margin-right: 2vw;
|
||||
background: var(--ck-color-accept);
|
||||
}
|
||||
#ldcweb-cn-modal .modal-details .ldcweb-cn-buttons div:last-of-type{background: var(--ck-color-deny);}
|
||||
#ldcweb-cn-modal .modal-details .ldcweb-cn-buttons div{
|
||||
width: 25vw;
|
||||
margin: 2vw 0;
|
||||
display: table;
|
||||
|
||||
/* font-weight: bold; */
|
||||
text-align: center;
|
||||
}
|
||||
#ldcweb-cn-modal .modal-details .ldcweb-cn-buttons div:first-of-type:hover,
|
||||
#ldcweb-cn-modal .modal-details .ldcweb-cn-buttons div:last-of-type:hover{
|
||||
cursor: pointer;
|
||||
background: linear-gradient(rgba(0,0,0,.1),rgba(0,0,0,.5));
|
||||
}
|
||||
#ldcweb-cn-modal .modal-details .ldcweb-cn-buttons div:hover > label{color: var(--ck-color-txt-hover);}
|
||||
#ldcweb-cn-modal .modal-details .ldcweb-cn-buttons div:first-of-type input:checked ~ label,
|
||||
#ldcweb-cn-modal .modal-details .ldcweb-cn-buttons div:first-of-type input ~label.active{
|
||||
background-color: var(--ck-color-accept-hover);
|
||||
background-image: linear-gradient(rgba(0,0,0,.1),rgba(0,0,0,.5));
|
||||
}
|
||||
#ldcweb-cn-modal .modal-details .ldcweb-cn-buttons div:last-of-type input:checked ~ label,
|
||||
#ldcweb-cn-modal .modal-details .ldcweb-cn-buttons div:last-of-type input ~ label.active{
|
||||
background-color: var(--ck-color-deny-hover);
|
||||
background-image: linear-gradient(rgba(0,0,0,.1),rgba(0,0,0,.5));
|
||||
}
|
||||
#ldcweb-cn-modal .modal-details .ldcweb-cn-buttons input{display: none;}
|
||||
#ldcweb-cn-modal .modal-details .ldcweb-cn-buttons label{
|
||||
display: block;
|
||||
padding: 1.5vw 0;
|
||||
|
||||
color: var(--ck-color-txt);
|
||||
transition: color .5s;
|
||||
}
|
||||
#ldcweb-cn-modal .modal-details .ldcweb-cn-buttons label:hover{
|
||||
cursor: pointer;
|
||||
color: var(--ck-color-txt-hover);
|
||||
}
|
||||
|
||||
/* ************************* */
|
||||
/* ** ** */
|
||||
/* ************************* */
|
||||
/* ** ** */
|
||||
/* ** ** */
|
||||
/* ** ** */
|
||||
/* ** ** */
|
||||
/* ** ** */
|
||||
/* ** ** */
|
||||
/* ** ** */
|
||||
/* ******* */
|
||||
@media only screen and (min-width:768px) {
|
||||
#ldcweb-cn .ldcweb-cn-banner{
|
||||
padding-top: 4vw;
|
||||
padding-bottom: 4vw;
|
||||
}
|
||||
#ldcweb-cn .btns {flex-direction: row;}
|
||||
#ldcweb-cn .btns > div:first-child{margin-top: 0;}
|
||||
#ldcweb-cn .btns > div:last-child{margin-top: 0;}
|
||||
#ldcweb-cn .btns > div:first-child .btn {margin: 0 2vw 0 0;}
|
||||
|
||||
/* MODAL */
|
||||
#ldcweb-cn-modal .modal-wrapper{width: 90vw;}
|
||||
/* ALL */
|
||||
#ldcweb-cn-modal .modal-all{
|
||||
flex-direction: row;
|
||||
justify-content: space-between;
|
||||
}
|
||||
#ldcweb-cn-modal .modal-all a{padding: 2vw 0;}
|
||||
#ldcweb-cn-modal .modal-all .all-buttons > div{margin: 0;}
|
||||
#ldcweb-cn-modal .modal-all .all-buttons > div:last-of-type{margin: 1vw 0 0;}
|
||||
#ldcweb-cn-modal .modal-all a{width: 30vw;}
|
||||
/* DETAILS */
|
||||
#ldcweb-cn-modal .modal-details li > div{flex-direction: row;}
|
||||
#ldcweb-cn-modal .modal-details .ldcweb-cn-buttons{flex-direction: column;}
|
||||
#ldcweb-cn-modal .modal-details .ldcweb-cn-buttons div{
|
||||
width: 20vw;
|
||||
margin: 0;
|
||||
}
|
||||
#ldcweb-cn-modal .modal-details .ldcweb-cn-buttons div:first-of-type{margin: 0 0 1vw;}
|
||||
}
|
||||
|
||||
/* **** */
|
||||
/* * * */
|
||||
/* * * */
|
||||
/* * * */
|
||||
/* * * */
|
||||
/* * * */
|
||||
/* * * */
|
||||
/* * * */
|
||||
/* * * */
|
||||
/* * * */
|
||||
/* * * */
|
||||
/* * * */
|
||||
/* * * */
|
||||
/* **** */
|
||||
@media only screen and (min-width:1024px) {
|
||||
#ldcweb-cn .ldcweb-cn-banner{
|
||||
flex-direction: row;
|
||||
align-items: flex-start;
|
||||
justify-content: space-between;
|
||||
padding: 2vw 3vw;
|
||||
}
|
||||
#ldcweb-cn .ldcweb-cn-banner div:not(:last-child){margin: 0 0 .5em 0;}
|
||||
#ldcweb-cn .ldcweb-cn-banner > div:not(:last-child){margin: 0 4vw 0 0;}
|
||||
#ldcweb-cn .ldcweb-cn-banner .banner-img{
|
||||
height: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
#ldcweb-cn .banner-img img{height: fit-content;}
|
||||
|
||||
#ldcweb-cn .banner-txt{text-align: start;}
|
||||
#ldcweb-cn .btns {
|
||||
height: 100%;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
}
|
||||
#ldcweb-cn .btns > div:first-child .btn{margin: 0;}
|
||||
/* MODAL */
|
||||
#ldcweb-cn-modal .modal-wrapper{width: 80vw;}
|
||||
#ldcweb-cn-modal .modal-btn-close{
|
||||
width: 3vw;
|
||||
height: 3vw;
|
||||
}
|
||||
/* TITLE */
|
||||
#ldcweb-cn-modal .modal-wrapper .modal-title{padding: 2vw 2vw 0;}
|
||||
#ldcweb-cn-modal .modal-title .title::after,
|
||||
#ldcweb-cn-modal .modal-title > div::after{margin: 2vw auto;}
|
||||
/* ALL */
|
||||
#ldcweb-cn-modal .modal-wrapper .modal-all{padding: 0 2vw 2vw;}
|
||||
#ldcweb-cn-modal .modal-all a{padding: 1.5vw 0;}
|
||||
#ldcweb-cn-modal .modal-all .all-buttons{flex-direction: row;}
|
||||
#ldcweb-cn-modal .modal-all .all-buttons > div:first-of-type{margin: 0 1vw 0 0;}
|
||||
#ldcweb-cn-modal .modal-all .all-buttons > div:last-of-type{margin: 0;}
|
||||
#ldcweb-cn-modal .modal-all a{width: 22vw;}
|
||||
/* DETAILS */
|
||||
#ldcweb-cn-modal .modal-wrapper .modal-details{padding: 1vw 0;}
|
||||
#ldcweb-cn-modal .modal-details li > div{
|
||||
margin: 1vw 0;
|
||||
padding: 2vw;
|
||||
}
|
||||
#ldcweb-cn-modal .modal-details .ldcweb-cn-buttons{
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
}
|
||||
#ldcweb-cn-modal .modal-details .ldcweb-cn-buttons div{
|
||||
width: 10vw;
|
||||
margin: 0;
|
||||
}
|
||||
#ldcweb-cn-modal .modal-details .ldcweb-cn-buttons div:first-of-type{margin: 0 1vw 0;}
|
||||
|
||||
}
|
||||
|
||||
/* ******** */
|
||||
/* * ***** * */
|
||||
/* * * * * */
|
||||
/* *** * * */
|
||||
/* * * */
|
||||
/* * * */
|
||||
/* * * */
|
||||
/* * * */
|
||||
/* * * */
|
||||
/* * * */
|
||||
/* * * */
|
||||
/* * * */
|
||||
/* * * */
|
||||
/* * * */
|
||||
/* * * */
|
||||
/* * ************** */
|
||||
/* * * */
|
||||
/* ***************** */
|
||||
@media only screen and (min-width: 1440px) {
|
||||
#ldcweb-cn .col{flex: 4;}
|
||||
/* MODAL */
|
||||
#ldcweb-cn-modal .modal-wrapper{width: 60vw;}
|
||||
#ldcweb-cn-modal .modal-btn-close{
|
||||
width: 2vw;
|
||||
height: 2vw;
|
||||
}
|
||||
/* ALL */
|
||||
#ldcweb-cn-modal .modal-all .all-buttons > div:first-of-type{margin: 0 1vw 0 0;}
|
||||
#ldcweb-cn-modal .modal-all a{
|
||||
width: 15vw;
|
||||
padding: 1vw 0;
|
||||
}
|
||||
/* DETAILS */
|
||||
#ldcweb-cn-modal .modal-details .ldcweb-cn-buttons div{width: 8vw;}
|
||||
#ldcweb-cn-modal .modal-details .ldcweb-cn-buttons label{padding: 1vw 0;}
|
||||
}
|
||||
|
||||
/* ************ */
|
||||
/* * **** */
|
||||
/* ********* * */
|
||||
/* ***** * */
|
||||
/* ** * */
|
||||
/* ** * */
|
||||
/* ********** * */
|
||||
/* * * */
|
||||
/* ********* * */
|
||||
/* ***** * */
|
||||
/* ** * */
|
||||
/* ** * */
|
||||
/* ********** * */
|
||||
/* * *** */
|
||||
/* ************ */
|
||||
@media only screen and (min-width: 1920px) {
|
||||
#ldcweb-cn p{font-size: calc(var(--ck-w1-font-size-txt) * 1.25);}
|
||||
#ldcweb-cn .banner-title p{font-size: calc(var(--ck-w1-font-size-title) * 1.25);}
|
||||
#ldcweb-cn .btns .btn {font-size: calc(var(--ck-w1-font-size-btn-txt) * 1.25);line-height: calc(var(--ck-w1-font-size-btn-txt) * 0.75);}
|
||||
|
||||
/* MODAL */
|
||||
#ldcweb-cn-modal .modal-wrapper{width: 50vw;}
|
||||
#ldcweb-cn-modal .modal-btn-close{
|
||||
width: 2rem;
|
||||
height: 2rem;
|
||||
}
|
||||
#ldcweb-cn-modal .modal-title .description,
|
||||
#ldcweb-cn-modal .modal-title > div a,
|
||||
#ldcweb-cn-modal .modal-all p,
|
||||
#ldcweb-cn-modal .modal-all a
|
||||
{font-size: calc(var(--ck-w2-font-size-txt) * 1.25);}
|
||||
/* TITLE */
|
||||
#ldcweb-cn-modal .modal-wrapper .modal-title{padding: 1vw 1vw 0;}
|
||||
#ldcweb-cn-modal .modal-title .title{font-size: calc(var(--ck-w2-font-size-title) * 1.25);}
|
||||
#ldcweb-cn-modal .modal-title .title::after,
|
||||
#ldcweb-cn-modal .modal-title > div::after{margin: 1vw auto;}
|
||||
/* ALL */
|
||||
#ldcweb-cn-modal .modal-wrapper .modal-all{padding: 0 1vw 1vw;}
|
||||
#ldcweb-cn-modal .modal-all a{
|
||||
width: 13vw;
|
||||
padding: .5vw 0;
|
||||
}
|
||||
/* DETAILS */
|
||||
#ldcweb-cn-modal .modal-wrapper .modal-details{padding: .5vw 0;}
|
||||
#ldcweb-cn-modal .modal-details li > div{
|
||||
margin: .5vw 0;
|
||||
padding: 1vw;
|
||||
}
|
||||
#ldcweb-cn-modal .modal-details li span,
|
||||
#ldcweb-cn-modal .modal-details li a,
|
||||
#ldcweb-cn-modal .modal-details li label
|
||||
{font-size: calc(var(--ck-font-size-list) * 1.25);}
|
||||
#ldcweb-cn-modal .modal-details .ldcweb-cn-infos span:first-of-type{font-size: calc(var(--ck-font-size-list) * 1.5);}
|
||||
#ldcweb-cn-modal .modal-details .ldcweb-cn-buttons{
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
}
|
||||
#ldcweb-cn-modal .modal-details .ldcweb-cn-buttons div{width: 5vw;}
|
||||
#ldcweb-cn-modal .modal-details .ldcweb-cn-buttons div:first-of-type{margin: 0 1vw 0;}
|
||||
#ldcweb-cn-modal .modal-details .ldcweb-cn-buttons label{padding: .5vw 0;}
|
||||
}
|
||||
2
resources/views/front/canard/sass/main.scss
vendored
2
resources/views/front/canard/sass/main.scss
vendored
|
|
@ -8,7 +8,7 @@
|
|||
}
|
||||
|
||||
body {
|
||||
color: #2D3B45;
|
||||
color: $text-color;
|
||||
font-family: 'Roboto', sans-serif;
|
||||
font-weight: normal;
|
||||
font-size: 16px;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue