Merge branch 'main' of http://91.189.216.43:3000/jacek.pyziak/drmaterac.pl
This commit is contained in:
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -155,7 +155,10 @@ body {
|
||||
border-radius: 0;
|
||||
}
|
||||
|
||||
#leo_search_block_top .block_content .leoproductsearch-result input[type='text'] {
|
||||
#leo_search_block_top
|
||||
.block_content
|
||||
.leoproductsearch-result
|
||||
input[type='text'] {
|
||||
padding: 0 5px;
|
||||
text-align: left;
|
||||
height: 30px;
|
||||
@@ -164,19 +167,28 @@ body {
|
||||
color: #010101;
|
||||
}
|
||||
|
||||
#leo_search_block_top .block_content .leoproductsearch-result input[type='text']::-webkit-input-placeholder {
|
||||
#leo_search_block_top
|
||||
.block_content
|
||||
.leoproductsearch-result
|
||||
input[type='text']::-webkit-input-placeholder {
|
||||
color: #010101;
|
||||
font-size: 14px;
|
||||
line-height: 21px;
|
||||
}
|
||||
|
||||
#leo_search_block_top .block_content .leoproductsearch-result input[type='text']:-ms-input-placeholder {
|
||||
#leo_search_block_top
|
||||
.block_content
|
||||
.leoproductsearch-result
|
||||
input[type='text']:-ms-input-placeholder {
|
||||
color: #010101;
|
||||
font-size: 14px;
|
||||
line-height: 21px;
|
||||
}
|
||||
|
||||
#leo_search_block_top .block_content .leoproductsearch-result input[type='text']::placeholder {
|
||||
#leo_search_block_top
|
||||
.block_content
|
||||
.leoproductsearch-result
|
||||
input[type='text']::placeholder {
|
||||
color: #010101;
|
||||
font-size: 14px;
|
||||
line-height: 21px;
|
||||
@@ -368,7 +380,8 @@ body {
|
||||
margin-right: 25px;
|
||||
}
|
||||
|
||||
.my_content_container {}
|
||||
.my_content_container {
|
||||
}
|
||||
|
||||
.my_box_container p {
|
||||
color: #010101;
|
||||
@@ -1088,7 +1101,8 @@ article.product-miniature:hover {
|
||||
padding-right: 158px;
|
||||
}
|
||||
|
||||
#cta_row .content_cta {}
|
||||
#cta_row .content_cta {
|
||||
}
|
||||
|
||||
#cta_row h3 {
|
||||
color: #ffffff;
|
||||
@@ -1100,7 +1114,6 @@ article.product-miniature:hover {
|
||||
}
|
||||
|
||||
@-webkit-keyframes bounceIn {
|
||||
|
||||
from,
|
||||
20%,
|
||||
40%,
|
||||
@@ -1146,7 +1159,6 @@ article.product-miniature:hover {
|
||||
}
|
||||
|
||||
@keyframes bounceIn {
|
||||
|
||||
from,
|
||||
20%,
|
||||
40%,
|
||||
@@ -1218,7 +1230,8 @@ article.product-miniature:hover {
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
#cta_row .links_cta a {}
|
||||
#cta_row .links_cta a {
|
||||
}
|
||||
|
||||
#cta_row .links_cta p {
|
||||
animation: none;
|
||||
@@ -1308,7 +1321,7 @@ article.product-miniature:hover {
|
||||
margin-bottom: 80px !important;
|
||||
}
|
||||
|
||||
.box-ekomi-widget {
|
||||
.box-ekomi {
|
||||
margin-top: 50px;
|
||||
margin-bottom: 70px !important;
|
||||
}
|
||||
@@ -1795,12 +1808,16 @@ html[lang='pl'] .ApColumn .block.day_hit::after {
|
||||
padding-right: 0;
|
||||
}
|
||||
|
||||
.product-detail.product-thumbs-bottom .product-thumb-images .slick-arrow.slick-prev {
|
||||
.product-detail.product-thumbs-bottom
|
||||
.product-thumb-images
|
||||
.slick-arrow.slick-prev {
|
||||
left: 0;
|
||||
border-radius: 5px 0 0 5px;
|
||||
}
|
||||
|
||||
.product-detail.product-thumbs-bottom .product-thumb-images .slick-arrow.slick-next {
|
||||
.product-detail.product-thumbs-bottom
|
||||
.product-thumb-images
|
||||
.slick-arrow.slick-next {
|
||||
right: 0;
|
||||
border-radius: 0 5px 5px 0;
|
||||
}
|
||||
@@ -2536,7 +2553,8 @@ body#checkout #order-summary-content .order-confirmation-table {
|
||||
min-height: 470px;
|
||||
}
|
||||
|
||||
#cms .content-wrapper h2 {}
|
||||
#cms .content-wrapper h2 {
|
||||
}
|
||||
|
||||
#cms #content-wrapper p,
|
||||
#cms #content-wrapper li {
|
||||
@@ -3347,11 +3365,21 @@ body#checkout .modal-content li {
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
#cms #content-wrapper .sinlge_row_salon .contett_wrapper .bottom_wrapper p:last-child {
|
||||
#cms
|
||||
#content-wrapper
|
||||
.sinlge_row_salon
|
||||
.contett_wrapper
|
||||
.bottom_wrapper
|
||||
p:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
#cms #content-wrapper .sinlge_row_salon .contett_wrapper .bottom_wrapper p.label {
|
||||
#cms
|
||||
#content-wrapper
|
||||
.sinlge_row_salon
|
||||
.contett_wrapper
|
||||
.bottom_wrapper
|
||||
p.label {
|
||||
color: #b8b3ae;
|
||||
text-align: left;
|
||||
font-weight: 400;
|
||||
@@ -3901,7 +3929,10 @@ body#checkout .modal-content li {
|
||||
}
|
||||
|
||||
#category .thumbnail-container .product-meta a,
|
||||
#module-pm_advancedsearch4-searchresults .thumbnail-container .product-meta a {
|
||||
#module-pm_advancedsearch4-searchresults
|
||||
.thumbnail-container
|
||||
.product-meta
|
||||
a {
|
||||
font-size: 14px;
|
||||
line-height: 26px;
|
||||
}
|
||||
@@ -3977,7 +4008,10 @@ body#checkout .modal-content li {
|
||||
right: 0;
|
||||
}
|
||||
|
||||
#leo_search_block_top .block_content .leoproductsearch-result input[type='text'] {
|
||||
#leo_search_block_top
|
||||
.block_content
|
||||
.leoproductsearch-result
|
||||
input[type='text'] {
|
||||
text-align: left;
|
||||
height: 50px;
|
||||
}
|
||||
@@ -4531,7 +4565,7 @@ body#cms.cms-id-23 {
|
||||
margin-top: 10px;
|
||||
|
||||
button {
|
||||
background: #FFF !important;
|
||||
background: #fff !important;
|
||||
color: #34d6ad !important;
|
||||
border: 1px solid #34d6ad !important;
|
||||
}
|
||||
@@ -4898,7 +4932,8 @@ body#cms.cms-id-23 {
|
||||
transform: translateY(-50%);
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
background: url('/img/cms/franczyza/el_check.svg') no-repeat center center;
|
||||
background: url('/img/cms/franczyza/el_check.svg') no-repeat
|
||||
center center;
|
||||
background-size: cover;
|
||||
}
|
||||
}
|
||||
@@ -5172,7 +5207,8 @@ body#cms.cms-id-23 {
|
||||
}
|
||||
}
|
||||
|
||||
.box-3 {}
|
||||
.box-3 {
|
||||
}
|
||||
|
||||
.box-4 {
|
||||
margin-top: 75px;
|
||||
@@ -5505,9 +5541,11 @@ body#cms.cms-id-23 {
|
||||
}
|
||||
}
|
||||
|
||||
.owl-prev {}
|
||||
.owl-prev {
|
||||
}
|
||||
|
||||
.owl-next {}
|
||||
.owl-next {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -5645,7 +5683,6 @@ body {
|
||||
.leo-top-menu {
|
||||
ul.navbar-nav.megamenu {
|
||||
> li.nav-item {
|
||||
|
||||
// &.dropdown {
|
||||
&:nth-last-child(2) {
|
||||
.dropdown-menu.level1 {
|
||||
@@ -5667,7 +5704,6 @@ body {
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
|
||||
.register-inputs-form,
|
||||
.js-address-form {
|
||||
.form-group.row {
|
||||
@@ -5800,7 +5836,7 @@ body:not(#index) {
|
||||
> .inner {
|
||||
.ApRow:first-child {
|
||||
> .col-xl-8 {
|
||||
width: 100% !important
|
||||
width: 100% !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -5810,8 +5846,11 @@ body:not(#index) {
|
||||
|
||||
body#index {
|
||||
.box-ekomi-widget {
|
||||
position: relative;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
max-height: 200px;
|
||||
overflow: hidden;
|
||||
|
||||
.title_block {
|
||||
width: 100%;
|
||||
@@ -5826,3 +5865,42 @@ body#index {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.preloader {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
flex-direction: column;
|
||||
background: #fff;
|
||||
z-index: 9999;
|
||||
|
||||
.spinner {
|
||||
// border: 4px solid #f3f3f3;
|
||||
// border-top: 4px solid #34d6ad;
|
||||
// border-radius: 50%;
|
||||
// width: 40px;
|
||||
// height: 40px;
|
||||
// animation: spin 1s linear infinite;
|
||||
margin-bottom: 40px;
|
||||
}
|
||||
.preloader-text {
|
||||
color: #000;
|
||||
font-size: 17px;
|
||||
font-weight: 600;
|
||||
font-family: 'Poppins', sans-serif;
|
||||
}
|
||||
}
|
||||
|
||||
// @keyframes spin {
|
||||
// 0% {
|
||||
// transform: rotate(0deg);
|
||||
// }
|
||||
// 100% {
|
||||
// transform: rotate(360deg);
|
||||
// }
|
||||
// }
|
||||
|
||||
@@ -1100,100 +1100,49 @@ prestashop.on('updateCart', function (event) {
|
||||
// })
|
||||
// })
|
||||
|
||||
// document.addEventListener('DOMContentLoaded', function () {
|
||||
// // Działa na /zamówienie lub /order
|
||||
// var onOrder = document.body && (document.body.id === 'checkout' || /\/zam/i.test(location.pathname) || /\/order/i.test(location.pathname));
|
||||
// if (!onOrder) return;
|
||||
$(document).ready(function () {
|
||||
var $widget = $('.box-ekomi-widget')
|
||||
|
||||
// var STORAGE_KEY = 'redirectToDeliveryOnce';
|
||||
$widget.css('position', 'relative').prepend(`
|
||||
<div class="preloader">
|
||||
<div class="spinner owl-carousel owl-loading"></div>
|
||||
<div class="preloader-text">Ładowanie recenzji, prosimy o chwilę cierpliwości…</div>
|
||||
</div>
|
||||
`)
|
||||
|
||||
// function cleanOrderUrl() {
|
||||
// return location.origin + location.pathname; // bez query i bez hash
|
||||
// }
|
||||
function watchSlickTrack() {
|
||||
var $slickTrack = $widget.find('.slick-track')
|
||||
|
||||
// function openDeliveryStepInPlace() {
|
||||
// var step = document.querySelector('#checkout-delivery-step');
|
||||
// if (!step) return false;
|
||||
if ($slickTrack.length) {
|
||||
var observer = new MutationObserver(function (mutationsList) {
|
||||
mutationsList.forEach(function (mutation) {
|
||||
if (
|
||||
mutation.type === 'attributes' &&
|
||||
mutation.attributeName === 'style'
|
||||
) {
|
||||
var transform = $slickTrack.css('transform')
|
||||
if (transform && transform !== 'none') {
|
||||
setTimeout(function () {
|
||||
$widget.find('.preloader').fadeOut(500)
|
||||
observer.disconnect()
|
||||
}, 500)
|
||||
}
|
||||
}
|
||||
})
|
||||
})
|
||||
|
||||
// // zamknij inne kroki
|
||||
// document.querySelectorAll('.checkout-step').forEach(function(s){
|
||||
// s.classList.remove('-current');
|
||||
// s.setAttribute('aria-expanded','false');
|
||||
// var col = s.querySelector('.collapse');
|
||||
// if (col) col.classList.remove('show');
|
||||
// });
|
||||
observer.observe($slickTrack[0], {
|
||||
attributes: true,
|
||||
attributeFilter: ['style'],
|
||||
})
|
||||
} else {
|
||||
setTimeout(watchSlickTrack, 200)
|
||||
}
|
||||
}
|
||||
|
||||
// // pokaż krok 3
|
||||
// step.classList.add('-current');
|
||||
// step.setAttribute('aria-expanded','true');
|
||||
// var col3 = step.querySelector('.collapse');
|
||||
// if (col3) col3.classList.add('show');
|
||||
watchSlickTrack()
|
||||
|
||||
// var headerBtn = document.querySelector('[data-target="#checkout-delivery-step"], [href="#checkout-delivery-step"]');
|
||||
// if (headerBtn) headerBtn.setAttribute('aria-expanded','true');
|
||||
|
||||
// try { step.scrollIntoView({behavior:'smooth', block:'start'}); } catch(e){}
|
||||
// return true;
|
||||
// }
|
||||
|
||||
// // --- 1) Jeśli poprzednio dodaliśmy/wyczyściliśmy kupon, to po RELOAD otwórz krok 3 i wyczyść flagę
|
||||
// if (sessionStorage.getItem(STORAGE_KEY) === '1') {
|
||||
// sessionStorage.removeItem(STORAGE_KEY);
|
||||
// // ustaw hash tylko informacyjnie; nie będzie on użyty do „pchania” użytkownika
|
||||
// if (location.hash !== '#checkout-delivery-step') {
|
||||
// history.replaceState(null, '', cleanOrderUrl() + '#checkout-delivery-step');
|
||||
// }
|
||||
// // DOM w checkout często doskakuje dynamicznie — podejdźmy z kilkoma próbami
|
||||
// var tries = 0;
|
||||
// var iv = setInterval(function () {
|
||||
// if (openDeliveryStepInPlace() || ++tries > 30) clearInterval(iv);
|
||||
// }, 100);
|
||||
// }
|
||||
|
||||
// // --- 2) Jednorazowe oznaczenie intencji i RELOAD po akcji kuponu
|
||||
// function markAndReload() {
|
||||
// // Jeśli już zaznaczone, nie rób nic (eliminuje podwójny reload)
|
||||
// if (sessionStorage.getItem(STORAGE_KEY) === '1') return;
|
||||
// sessionStorage.setItem(STORAGE_KEY, '1');
|
||||
// // twardy reload na czysty URL (bez ?updatedTransaction i bez hash)
|
||||
// window.location.href = cleanOrderUrl();
|
||||
// }
|
||||
|
||||
// // 2a) Eventy PS (różne motywy wysyłają różne nazwy)
|
||||
// function onPsCartEvent(evt) {
|
||||
// var la = evt && evt.reason && evt.reason.linkAction ? String(evt.reason.linkAction) : '';
|
||||
// if (la === 'add-voucher' || la === 'remove-voucher') {
|
||||
// markAndReload();
|
||||
// }
|
||||
// }
|
||||
// if (window.prestashop && typeof prestashop.on === 'function') {
|
||||
// prestashop.on('updateCart', onPsCartEvent);
|
||||
// prestashop.on('updatedCart', onPsCartEvent);
|
||||
// }
|
||||
|
||||
// // 2b) Fallback: klik w przycisk dodawania/ usuwania kuponu (różne motywy)
|
||||
// document.addEventListener('click', function (e) {
|
||||
// var addBtn = e.target && e.target.closest('[data-link-action="add-voucher"], button[name="actionAddVoucher"], .js-add-voucher, #promo-code button, .cart-rule-add button');
|
||||
// var removeBtn = e.target && e.target.closest('[data-link-action="remove-voucher"], .js-remove-voucher, .cart-rule-remove button');
|
||||
// if (addBtn || removeBtn) {
|
||||
// // odrocz minimalnie, by nie zrywać natychmiast ajaxa/submitu (niektóre motywy i tak zrobią swój reload)
|
||||
// setTimeout(markAndReload, 50);
|
||||
// }
|
||||
// }, true);
|
||||
|
||||
// // 2c) Fallback: submit formularza kuponu (Enter w input)
|
||||
// document.addEventListener('submit', function (e) {
|
||||
// var form = e.target;
|
||||
// if (!form) return;
|
||||
// var isVoucherForm =
|
||||
// (form.action && (form.action.indexOf('/cart') !== -1 || form.action.indexOf('/order') !== -1)) &&
|
||||
// (form.querySelector('input[name="discount_name"], input[name="voucher_name"]') ||
|
||||
// form.querySelector('[data-link-action="add-voucher"]'));
|
||||
// if (isVoucherForm) {
|
||||
// setTimeout(markAndReload, 50);
|
||||
// }
|
||||
// }, true);
|
||||
|
||||
// // --- 3) ZERO wymuszania cofania przy normalnym przejściu do kroku 4.
|
||||
// // Celowo NIE ma tu hashchange ani ciągłego „pilnowania” kroku — po otwarciu kroku 3 flaga jest kasowana.
|
||||
// });
|
||||
setTimeout(function () {
|
||||
$widget.find('.preloader').fadeOut(500)
|
||||
}, 10000)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user