Skip to content

Commit a2d99ee

Browse files
Fixed mobile version of checkout progress bar
1 parent 4a41ec4 commit a2d99ee

File tree

1 file changed

+26
-2
lines changed
  • app/design/frontend/Magento/luma/Magento_Checkout/web/css/source/module/checkout

1 file changed

+26
-2
lines changed

app/design/frontend/Magento/luma/Magento_Checkout/web/css/source/module/checkout/_progress-bar.less

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,16 @@
1010
@checkout-progress-bar__font-size: 18px;
1111
@checkout-progress-bar__font-weight: @font-weight__light;
1212
@checkout-progress-bar__margin: @indent__base;
13+
@checkout-progress-bar__margin__mobile: 30px;
1314

1415
@checkout-progress-bar-item__background-color: @color-gray-middle1;
1516
@checkout-progress-bar-item__border-radius: 6px;
1617
@checkout-progress-bar-item__color: @color-gray40;
1718
@checkout-progress-bar-item__margin: @indent__s;
1819
@checkout-progress-bar-item__transition: background .3s;
1920
@checkout-progress-bar-item__width: 185px;
21+
@checkout-progress-bar-item__width__mobile: 165px;
22+
@checkout-progress-bar-item__width__mobile_small: 125px;
2023

2124
@checkout-progress-bar-item__active__background-color: @active__color;
2225
@checkout-progress-bar-item__active__color: @primary__color;
@@ -57,8 +60,6 @@
5760
// Desktop
5861
// _____________________________________________
5962

60-
.media-width(@extremum, @break) when (@extremum = 'min') and (@break = @screen__m) {
61-
6263
.opc-progress-bar {
6364
.lib-css(margin, 0 0 @checkout-progress-bar__margin);
6465
counter-reset: i;
@@ -195,4 +196,27 @@
195196
}
196197
}
197198
}
199+
200+
//
201+
// Mobile max width 600px
202+
//
203+
@media only screen and (max-width: 600px) {
204+
.opc-progress-bar {
205+
.lib-css(margin, 0 0 @checkout-progress-bar__margin__mobile);
206+
counter-reset: i;
207+
display: block;
208+
font-size: 0;
209+
}
210+
.opc-progress-bar-item {
211+
.lib-css(width, @checkout-progress-bar-item__width__mobile);
212+
}
213+
}
214+
215+
//
216+
// Mobile max width 320px and 280px
217+
//
218+
@media (min-width: 280px) and (max-width: 320px) {
219+
.opc-progress-bar-item {
220+
.lib-css(width, @checkout-progress-bar-item__width__mobile_small);
221+
}
198222
}

0 commit comments

Comments
 (0)