init
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
<?xml version="1.0"?>
|
||||
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
|
||||
<head>
|
||||
<title>My Favorite</title>
|
||||
<css src="Magento_Wishlist::css/esun-wishlist.css"/>
|
||||
</head>
|
||||
<body>
|
||||
<referenceBlock name="page.main.title">
|
||||
<action method="setPageTitle">
|
||||
<argument name="pageTitle" xsi:type="string" translate="true">My Favorite</argument>
|
||||
</action>
|
||||
</referenceBlock>
|
||||
<referenceContainer name="customer.wishlist.buttons" remove="true"/>
|
||||
<referenceBlock name="customer.wishlist.item.image">
|
||||
<action method="setTemplate">
|
||||
<argument name="template" xsi:type="string">Magento_Wishlist::item/column/image.phtml</argument>
|
||||
</action>
|
||||
</referenceBlock>
|
||||
<referenceBlock name="customer.wishlist.item.review" remove="true"/>
|
||||
<referenceBlock name="customer.wishlist.item.options" remove="true"/>
|
||||
<referenceBlock name="customer.wishlist.item.inner" remove="true"/>
|
||||
<referenceBlock name="customer.wishlist.items">
|
||||
<block class="Magento\Wishlist\Block\Customer\Wishlist\Item\Column\Remove"
|
||||
name="customer.wishlist.item.remove.simple"
|
||||
template="Magento_Wishlist::item/column/remove-simple.phtml"
|
||||
after="customer.wishlist.item.price"
|
||||
cacheable="false"/>
|
||||
</referenceBlock>
|
||||
</body>
|
||||
</page>
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
/**
|
||||
* @var \Magento\Wishlist\Block\Customer\Wishlist\Item\Column\Remove $block
|
||||
* @var \Magento\Framework\Escaper $escaper
|
||||
*/
|
||||
?>
|
||||
<a href="#"
|
||||
data-role="remove"
|
||||
data-post-remove='<?= /* @noEscape */ $block->getItemRemoveParams($block->getItem()) ?>'
|
||||
title="<?= $escaper->escapeHtmlAttr(__('Remove')) ?>"
|
||||
class="btn-remove action delete">
|
||||
<span><?= $escaper->escapeHtml(__('Remove')) ?></span>
|
||||
</a>
|
||||
@@ -0,0 +1,126 @@
|
||||
.wishlist-index-index .form-wishlist-items {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.wishlist-index-index .wishlist-toolbar {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.wishlist-index-index .products-grid.wishlist .product-items {
|
||||
display: grid;
|
||||
gap: 28px;
|
||||
grid-template-columns: repeat(4, minmax(0, 1fr));
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.wishlist-index-index .products-grid.wishlist .product-item {
|
||||
background: #fff;
|
||||
border: 0;
|
||||
box-sizing: border-box;
|
||||
display: block;
|
||||
margin: 0;
|
||||
padding: 22px;
|
||||
transition: box-shadow 220ms ease, transform 220ms ease;
|
||||
width: auto;
|
||||
}
|
||||
|
||||
.wishlist-index-index .products-grid.wishlist .product-item:hover {
|
||||
box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
|
||||
transform: translateY(-6px);
|
||||
}
|
||||
|
||||
.wishlist-index-index .products-grid.wishlist .product-item-info {
|
||||
align-items: center;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.wishlist-index-index .products-grid.wishlist .product-item-photo {
|
||||
display: block;
|
||||
margin: 0 0 18px;
|
||||
position: static;
|
||||
text-align: center;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.wishlist-index-index .products-grid.wishlist .product-image-container {
|
||||
display: inline-block;
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
.wishlist-index-index .products-grid.wishlist .product-image-photo {
|
||||
display: block;
|
||||
height: 210px;
|
||||
margin: 0 auto;
|
||||
object-fit: contain;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.wishlist-index-index .products-grid.wishlist .product-item-name {
|
||||
font-size: 18px;
|
||||
font-weight: 500;
|
||||
line-height: 1.4;
|
||||
margin: 0 0 10px;
|
||||
text-align: center;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.wishlist-index-index .products-grid.wishlist .product-item-link {
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.wishlist-index-index .products-grid.wishlist .price-box {
|
||||
margin: 0 0 18px;
|
||||
text-align: center;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.wishlist-index-index .products-grid.wishlist .price {
|
||||
color: #333;
|
||||
font-size: 18px;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.wishlist-index-index .products-grid.wishlist .action.delete {
|
||||
color: #777;
|
||||
display: inline-block;
|
||||
font-size: 15px;
|
||||
margin-top: auto;
|
||||
position: static;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.wishlist-index-index .products-grid.wishlist .action.delete::before {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.wishlist-index-index .products-grid.wishlist .action.delete span {
|
||||
clip: auto;
|
||||
height: auto;
|
||||
margin: 0;
|
||||
overflow: visible;
|
||||
padding: 0;
|
||||
position: static;
|
||||
width: auto;
|
||||
}
|
||||
|
||||
@media (max-width: 1200px) {
|
||||
.wishlist-index-index .products-grid.wishlist .product-items {
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 900px) {
|
||||
.wishlist-index-index .products-grid.wishlist .product-items {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 560px) {
|
||||
.wishlist-index-index .products-grid.wishlist .product-items {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user