Skip to content

Commit 65e190d

Browse files
Changed the media conditions as per review comments
1 parent a2d99ee commit 65e190d

File tree

1 file changed

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

1 file changed

+17
-21
lines changed

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

Lines changed: 17 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,6 @@
5454
&:extend(.abs-reset-list all);
5555
display: none;
5656
}
57-
}
58-
59-
//
60-
// Desktop
61-
// _____________________________________________
6257

6358
.opc-progress-bar {
6459
.lib-css(margin, 0 0 @checkout-progress-bar__margin);
@@ -106,12 +101,12 @@
106101
word-wrap: break-word;
107102

108103
.lib-typography(
109-
@_color: @checkout-progress-bar-item__color,
110-
@_font-family: false,
111-
@_font-size: @checkout-progress-bar__font-size,
112-
@_font-style: false,
113-
@_font-weight: @checkout-progress-bar__font-weight,
114-
@_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
115110
);
116111

117112
&:before, // Item element
@@ -138,12 +133,12 @@
138133
content: counter(i);
139134
counter-increment: i;
140135
.lib-typography(
141-
@_color: @checkout-progress-bar-item-element-inner__color,
142-
@_font-family: false,
143-
@_font-size: @checkout-progress-bar__font-size,
144-
@_font-style: false,
145-
@_font-weight: @font-weight__semibold,
146-
@_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
147142
);
148143
}
149144
}
@@ -196,11 +191,12 @@
196191
}
197192
}
198193
}
194+
}
199195

200196
//
201-
// Mobile max width 600px
197+
// Mobile
202198
//
203-
@media only screen and (max-width: 600px) {
199+
.media-width(@extremum, @break) when (@extremum = 'max') and (@break = @screen__s) {
204200
.opc-progress-bar {
205201
.lib-css(margin, 0 0 @checkout-progress-bar__margin__mobile);
206202
counter-reset: i;
@@ -213,9 +209,9 @@
213209
}
214210

215211
//
216-
// Mobile max width 320px and 280px
212+
// Mobile with extra small screen size
217213
//
218-
@media (min-width: 280px) and (max-width: 320px) {
214+
.media-width(@extremum, @break) when (@extremum = 'max') and (@break = @screen__xs) {
219215
.opc-progress-bar-item {
220216
.lib-css(width, @checkout-progress-bar-item__width__mobile_small);
221217
}

0 commit comments

Comments
 (0)