Skip to content

Commit aa3d47f

Browse files
author
Bogdan Plieshka
committed
MAGETWO-31195: Image compression and sizing
- Generic image containers size changes
1 parent eb3768b commit aa3d47f

File tree

6 files changed

+13
-13
lines changed

6 files changed

+13
-13
lines changed

app/design/frontend/Magento/blank/Magento_Catalog/web/css/source/listings.less

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
}
6161

6262
&-info {
63-
width: 150px;
63+
width: 152px;
6464
max-width: 100%;
6565
.page-products & {
6666
width: 240px;
@@ -316,8 +316,8 @@
316316
.page-layout-3columns .products-grid .product-item { width: 100%/4 }
317317
.page-products .products-grid .product-items { margin: 0; }
318318
.page-products .products-grid .product-item {
319-
width: 23%;
320-
margin-left: calc(~"(100% - 4 * 23%) / 3");
319+
width: 23.233%;
320+
margin-left: calc(~"(100% - 4 * 23.233%) / 3");
321321
padding: 0;
322322
&:nth-child(4n+1) {
323323
margin-left: 0;

app/design/frontend/Magento/blank/Magento_Catalog/web/css/source/widgets.less

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@
8282
.page-layout-3columns .block.widget .products-grid .product-item { width: 100%/4 }
8383
.block.widget .products-grid .product-items { margin: 0; }
8484
.block.widget .products-grid .product-item {
85-
width: 24%;
86-
margin-left: calc(~"(100% - 4 * 24%) / 3");
85+
width: 24.439%;
86+
margin-left: calc(~"(100% - 4 * 24.439%) / 3");
8787
padding: 0;
8888
&:nth-child(4n+1) {
8989
margin-left: 0;

app/design/frontend/Magento/blank/Magento_Wishlist/web/css/source/module.less

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -289,8 +289,8 @@
289289
.media-width(@extremum, @break) when (@extremum = 'min') and (@break = @screen-l) {
290290
.wishlist-index-index .products-grid .product-items { margin: 0; }
291291
.wishlist-index-index .products-grid .product-item {
292-
width: 24%;
293-
margin-left: calc(~"(100% - 4 * 24%) / 3");
292+
width: 24.439%;
293+
margin-left: calc(~"(100% - 4 * 24.439%) / 3");
294294
padding: 0;
295295
&:nth-child(4n+1) {
296296
margin-left: 0;

app/design/frontend/Magento/luma/Magento_Catalog/web/css/source/listings.less

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
}
5959

6060
&-info {
61-
width: 150px;
61+
width: 152px;
6262
max-width: 100%;
6363
.page-products & {
6464
width: 240px;
@@ -317,8 +317,8 @@
317317
.page-layout-3columns .products-grid .product-item { width: 100%/4 }
318318
.page-products .products-grid .product-items { margin: 0; }
319319
.page-products .products-grid .product-item {
320-
width: 24%;
321-
margin-left: calc(~"(100% - 4 * 24%) / 3");
320+
width: 24.439%;
321+
margin-left: calc(~"(100% - 4 * 24.439%) / 3");
322322
padding: 0;
323323
&:nth-child(4n+1) {
324324
margin-left: 0;

app/design/frontend/Magento/luma/Magento_Wishlist/web/css/source/module.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@
328328
margin: 0;
329329
}
330330
.product-item {
331-
width: 24%;
331+
width: 24.439%;
332332
margin-left: calc(~"(100% - 4 * 24%) / 3");
333333
margin-bottom: @indent-base;
334334
padding: 0;

app/design/frontend/Magento/luma/etc/view.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,9 +157,9 @@
157157
<var name="customer_account_my_tags_tag_view:height">100</var>
158158

159159
<var name="cart_cross_sell_products:type">thumbnail</var>
160-
<var name="cart_cross_sell_products:width">235</var>
160+
<var name="cart_cross_sell_products:width">200</var>
161161
<var name="cart_cross_sell_products:ratio">1</var>
162-
<var name="cart_cross_sell_products:height">290</var>
162+
<var name="cart_cross_sell_products:height">248</var>
163163

164164
<var name="gift_messages_checkout_thumbnail:type">thumbnail</var>
165165
<var name="gift_messages_checkout_thumbnail:width">100</var>

0 commit comments

Comments
 (0)