Commit ce68fcc0 by lmf

Merge branch 'master' of http://47.99.244.21:9999/root/joshine

parents 061b2868 0d3cc53c
......@@ -44,6 +44,7 @@ $_helper = $block->getData('outputHelper');
*/
$pos = $block->getPositioned();
?>
<div class="products wrapper <?= /* @noEscape */ $viewMode ?> products-<?= /* @noEscape */ $viewMode ?>">
<ol class="products list items product-items">
<?php /** @var $_product \Magento\Catalog\Model\Product */ ?>
......@@ -63,7 +64,20 @@ $_helper = $block->getData('outputHelper');
<a href="<?= $escaper->escapeUrl($_product->getProductUrl()) ?>"
class="product photo product-item-photo"
tabindex="-1">
<span class="image0 image-switch">
<span class="product-image-container product-image-container-<?= /* @noEscape */ $_product->getId() ?>" style="width: 440px;">
<span class="product-image-wrapper" style="padding-bottom: 125%;">
<?= $productImage->toHtml() ?>
</span>
</span>
</span>
<span class="image1 image-switch">
<span class="product-image-container product-image-container-<?= /* @noEscape */ $_product->getId() ?>" style="width: 440px;">
<span class="product-image-wrapper" style="padding-bottom: 125%;">
<?= $productImage->toHtml() ?>
</span>
</span>
</span>
</a>
<div class="product details product-item-details">
<?= $block->getProductDetailsHtml($_product) ?>
......
......@@ -1005,10 +1005,10 @@ footer{
}
@media(min-width: 640px){
.page-header .minicart-wrapper{
top:55px;
top:52px;
}
.page-header .dropdown.options{
top:55px;
top:52px;
}
}
.navigation-wrapper{
......@@ -1390,6 +1390,79 @@ footer{
}
}
//.product-items .product-item-photo:hover {
// transform: scale(1.02);
// transition: all 0.5s ease;
//}
.image0.image-switch {
postion: relative;
}
.image1.image-switch {
position: absolute;
top: 0;
left: 0;
bottom:0;
right: 0;
z-index: -1;
opacity: 0;
visibility: hidden;
}
.product-items .product-item-photo{
overflow: hidden;
}
@media (min-width: 992px) {
.product-item:hover .product-item-info .image0,
.product-list-item:hover .product-item-info .image0 {
z-index: -1;
opacity: 0;
visibility: hidden;
}
}
.product-item:hover .product-item-info .image1,
.product-list-item:hover .product-item-info .image1 {
opacity: 1;
visibility: visible;
z-index: 1;
-webkit-transform: scale(1.08);
-moz-transform: scale(1.08);
-ms-transform: scale(1.08);
-o-transform: scale(1.08);
transition: all 0.5s ease;
}
.product-item:hover .product-item-info .product-image-photo,
.product-list-item:hover .product-item-info .product-image-photo {
opacity: 1;
}
.product-item .product-item-info,
.product-list-item .product-item-info {
position: relative;
z-index: 1;
overflow: hidden;
}
.product-item .product-item-info .image0,
.product-list-item .product-item-info .image0 {
transition: all 0.5s ease;
-webkit-transition: all 0.5s ease;
-moz-transition: all 0.5s ease;
-o-transition: all 0.5s ease;
}
.product-item .product-item-info .image1,
.product-list-item .product-item-info .image1 {
position: absolute;
top: 0;
left: 0;
opacity: 0;
z-index: -1;
visibility: hidden;
transition: all 0.5s ease;
-webkit-transition: all 0.5s ease;
-moz-transition: all 0.5s ease;
-o-transition: all 0.5s ease;
}
@media(max-width:789px){
.banner-4-cate{
padding-bottom: 20px;
......
......@@ -38,7 +38,7 @@
}
$('li.parent > ul', this.element).hide();
$('li.parent.nav-1', this.element)
$('li.nav-1', this.element)
.children('a')
.filter(function () {
return $(this).children('.ui-icon-1').length === 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment