Skip to content

Commit c37c7e9

Browse files
ENGCOM-6233: MAGETWO-98251 Position remove icon in sidebar #25380
2 parents 261c61d + 521e7dc commit c37c7e9

File tree

4 files changed

+27
-5
lines changed

4 files changed

+27
-5
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,9 +457,11 @@
457457
.action {
458458
&.delete {
459459
&:extend(.abs-remove-button-for-blocks all);
460+
line-height: unset;
460461
position: absolute;
461462
right: 0;
462-
top: 0;
463+
top: -1px;
464+
width: auto;
463465
}
464466
}
465467

app/design/frontend/Magento/blank/web/css/source/_layout.less

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,11 +125,14 @@
125125
}
126126

127127
.page-layout-2columns-left {
128+
.main {
129+
padding-left: @layout-column__additional-sidebar-offset
130+
}
131+
128132
.sidebar-additional {
129133
clear: left;
130134
float: left;
131135
padding-left: 0;
132-
padding-right: @layout-column__additional-sidebar-offset;
133136
}
134137
}
135138

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

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@
397397

398398
.box-tocart {
399399
&:extend(.abs-box-tocart all);
400-
400+
401401
.field.qty {
402402
}
403403

@@ -987,6 +987,24 @@
987987
}
988988
}
989989
}
990+
991+
.media-width(@extremum, @break) when (@extremum = 'min') and (@break = @screen__s) {
992+
.sidebar {
993+
.product-items {
994+
.action {
995+
&.delete {
996+
&:extend(.abs-remove-button-for-blocks all);
997+
line-height: unset;
998+
position: absolute;
999+
right: 0;
1000+
top: -1px;
1001+
width: auto;
1002+
}
1003+
}
1004+
}
1005+
}
1006+
}
1007+
9901008
.media-width(@extremum, @break) when (@extremum = 'max') and (@break = @screen__m) {
9911009
.compare.wrapper,
9921010
[class*='block-compare'] {

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -360,13 +360,12 @@
360360
position: absolute;
361361
top: -2px;
362362
width: 100%;
363-
z-index: 1;
363+
z-index: -1;
364364
}
365365
}
366366
}
367367

368368
.product-item-actions {
369-
position: relative;
370369
z-index: 1;
371370
}
372371
}

0 commit comments

Comments
 (0)