Ajuste cinto Centro SubFactory version movil
This commit is contained in:
@@ -87,7 +87,6 @@
|
||||
var closePopup = document.querySelector('#close-popup-global');
|
||||
if (!popup || !closePopup) return;
|
||||
|
||||
var desktopPopup = window.matchMedia('(min-width: 768px)');
|
||||
var closedByUser = false;
|
||||
|
||||
function setPopup(open) {
|
||||
@@ -97,7 +96,7 @@
|
||||
}
|
||||
|
||||
function syncPopup() {
|
||||
setPopup(desktopPopup.matches && !closedByUser);
|
||||
setPopup(!closedByUser);
|
||||
}
|
||||
|
||||
closePopup.addEventListener('click', function () {
|
||||
@@ -112,12 +111,6 @@
|
||||
}
|
||||
});
|
||||
|
||||
if (typeof desktopPopup.addEventListener === 'function') {
|
||||
desktopPopup.addEventListener('change', syncPopup);
|
||||
} else {
|
||||
desktopPopup.addListener(syncPopup);
|
||||
}
|
||||
|
||||
syncPopup();
|
||||
}
|
||||
|
||||
|
||||
@@ -781,7 +781,7 @@ html.menu-is-open body {
|
||||
}
|
||||
.global-popup__texts-content { width: 100%; gap: 3.125vw; }
|
||||
.global-popup__icon { display: none; }
|
||||
.global-popup__texts { width: 84.166667%; margin: 0 auto; }
|
||||
.global-popup__texts { width: 84.166667%; margin: 0 auto; text-align: center; }
|
||||
.global-popup__texts h2 { font-size: 4.583333vw; line-height: 1.2; }
|
||||
.global-popup__texts p { font-size: 3.75vw; line-height: 1.2; }
|
||||
.global-popup__actions { width: 100%; justify-content: center; gap: 3.125vw; }
|
||||
|
||||
Reference in New Issue
Block a user