Skip to content

Commit 1022693

Browse files
Merge remote-tracking branch '36982/issue-36856' into comprs_nov
2 parents 8bdae5d + b7472b5 commit 1022693

File tree

1 file changed

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

1 file changed

+38
-19
lines changed

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

Lines changed: 38 additions & 19 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;
@@ -51,13 +54,6 @@
5154
&:extend(.abs-reset-list all);
5255
display: none;
5356
}
54-
}
55-
56-
//
57-
// Desktop
58-
// _____________________________________________
59-
60-
.media-width(@extremum, @break) when (@extremum = 'min') and (@break = @screen__m) {
6157

6258
.opc-progress-bar {
6359
.lib-css(margin, 0 0 @checkout-progress-bar__margin);
@@ -105,12 +101,12 @@
105101
word-wrap: break-word;
106102

107103
.lib-typography(
108-
@_color: @checkout-progress-bar-item__color,
109-
@_font-family: false,
110-
@_font-size: @checkout-progress-bar__font-size,
111-
@_font-style: false,
112-
@_font-weight: @checkout-progress-bar__font-weight,
113-
@_line-height: false
104+
@_color: @checkout-progress-bar-item__color,
105+
@_font-family: false,
106+
@_font-size: @checkout-progress-bar__font-size,
107+
@_font-style: false,
108+
@_font-weight: @checkout-progress-bar__font-weight,
109+
@_line-height: false
114110
);
115111

116112
&:before, // Item element
@@ -137,12 +133,12 @@
137133
content: counter(i);
138134
counter-increment: i;
139135
.lib-typography(
140-
@_color: @checkout-progress-bar-item-element-inner__color,
141-
@_font-family: false,
142-
@_font-size: @checkout-progress-bar__font-size,
143-
@_font-style: false,
144-
@_font-weight: @font-weight__semibold,
145-
@_line-height: false
136+
@_color: @checkout-progress-bar-item-element-inner__color,
137+
@_font-family: false,
138+
@_font-size: @checkout-progress-bar__font-size,
139+
@_font-style: false,
140+
@_font-weight: @font-weight__semibold,
141+
@_line-height: false
146142
);
147143
}
148144
}
@@ -196,3 +192,26 @@
196192
}
197193
}
198194
}
195+
196+
//
197+
// Mobile normal screen
198+
//
199+
.media-width(@extremum, @break) when (@extremum = 'max') and (@break = @screen__s) {
200+
.opc-progress-bar {
201+
.lib-css(margin, 0 0 @checkout-progress-bar__margin__mobile);
202+
counter-reset: i; display: block; font-size: 0;
203+
}
204+
205+
.opc-progress-bar-item {
206+
.lib-css(width, @checkout-progress-bar-item__width__mobile);
207+
}
208+
}
209+
210+
//
211+
// Mobile with extra small screen size
212+
//
213+
.media-width(@extremum, @break) when (@extremum = 'max') and (@break = @screen__xs) {
214+
.opc-progress-bar-item {
215+
.lib-css(width, @checkout-progress-bar-item__width__mobile_small);
216+
}
217+
}

0 commit comments

Comments
 (0)