Skip to content

Commit 04c2b67

Browse files
committed
MAGETWO-45095: Product base images aren't centered in Wish List on Storefront
1 parent f168b0c commit 04c2b67

File tree

2 files changed

+18
-18
lines changed
  • app/design/frontend/Magento

2 files changed

+18
-18
lines changed

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

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@
3838
vertical-align: top;
3939

4040
.products-grid & {
41-
width: 100%/2;
4241
display: inline-block;
42+
width: 100%/2;
4343
}
4444

4545
&:extend(.abs-add-box-sizing all);
@@ -56,8 +56,8 @@
5656
}
5757

5858
&-info {
59-
width: 152px;
6059
max-width: 100%;
60+
width: 152px;
6161

6262
.page-products & {
6363
width: 240px;
@@ -102,7 +102,7 @@
102102

103103
.price {
104104
.lib-font-size(14);
105-
font-weight: bold;
105+
font-weight: @font-weight__bold;
106106
}
107107

108108
.price-label {
@@ -117,7 +117,7 @@
117117
.minimal-price {
118118
.price {
119119
.lib-font-size(14);
120-
font-weight: bold;
120+
font-weight: @font-weight__bold;
121121
}
122122

123123
.price-wrapper {
@@ -165,6 +165,11 @@
165165
white-space: nowrap;
166166
}
167167

168+
.price-from,
169+
.price-to {
170+
margin: 0;
171+
}
172+
168173
.tocompare {
169174
.lib-icon-font-symbol(
170175
@icon-compare-empty
@@ -180,11 +185,11 @@
180185
.column.main {
181186
.product {
182187
&-items {
183-
margin-left: -20px;
188+
margin-left: -@indent__base;
184189
}
185190

186191
&-item {
187-
padding-left: 20px;
192+
padding-left: @indent__base;
188193
}
189194
}
190195

@@ -197,7 +202,7 @@
197202

198203
.price-including-tax + .price-excluding-tax,
199204
.weee {
200-
margin-top: 5px;
205+
margin-top: @indent__xs;
201206
}
202207

203208
.price-including-tax + .price-excluding-tax,
@@ -280,9 +285,6 @@
280285
margin-bottom: @indent__l;
281286
}
282287

283-
&-info {
284-
}
285-
286288
&-actions {
287289
display: block;
288290

@@ -298,9 +300,6 @@
298300
> * {
299301
white-space: normal;
300302
}
301-
302-
> .action {
303-
}
304303
}
305304

306305
.actions-primary {

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

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
.products {
2929
margin: @indent__l 0;
3030
}
31+
3132
.product {
3233
&-items {
3334
&:extend(.abs-reset-list all);
@@ -37,8 +38,8 @@
3738
vertical-align: top;
3839

3940
.products-grid & {
40-
width: 100%/2;
4141
display: inline-block;
42+
width: 100%/2;
4243
}
4344

4445
&:extend(.abs-add-box-sizing all);
@@ -100,7 +101,7 @@
100101
margin: @indent__s 0 @indent__m;
101102

102103
.price {
103-
font-weight: bold;
104+
font-weight: @font-weight__bold;
104105
}
105106

106107
.price-label {
@@ -152,11 +153,11 @@
152153
.column.main {
153154
.product {
154155
&-items {
155-
margin-left: -20px;
156+
margin-left: -@indent__base;
156157
}
157158

158159
&-item {
159-
padding-left: 20px;
160+
padding-left: @indent__base;
160161
}
161162
}
162163
}
@@ -168,7 +169,7 @@
168169

169170
.price-including-tax + .price-excluding-tax,
170171
.weee {
171-
margin-top: 5px;
172+
margin-top: @indent__xs;
172173
}
173174

174175
.price-including-tax + .price-excluding-tax,

0 commit comments

Comments
 (0)