|
10 | 10 | @checkout-progress-bar__font-size: 18px; |
11 | 11 | @checkout-progress-bar__font-weight: @font-weight__light; |
12 | 12 | @checkout-progress-bar__margin: @indent__base; |
| 13 | +@checkout-progress-bar__margin__mobile: 30px; |
13 | 14 |
|
14 | 15 | @checkout-progress-bar-item__background-color: @color-gray-middle1; |
15 | 16 | @checkout-progress-bar-item__border-radius: 6px; |
16 | 17 | @checkout-progress-bar-item__color: @color-gray40; |
17 | 18 | @checkout-progress-bar-item__margin: @indent__s; |
18 | 19 | @checkout-progress-bar-item__transition: background .3s; |
19 | 20 | @checkout-progress-bar-item__width: 185px; |
| 21 | +@checkout-progress-bar-item__width__mobile: 165px; |
| 22 | +@checkout-progress-bar-item__width__mobile_small: 125px; |
20 | 23 |
|
21 | 24 | @checkout-progress-bar-item__active__background-color: @active__color; |
22 | 25 | @checkout-progress-bar-item__active__color: @primary__color; |
|
57 | 60 | // Desktop |
58 | 61 | // _____________________________________________ |
59 | 62 |
|
60 | | -.media-width(@extremum, @break) when (@extremum = 'min') and (@break = @screen__m) { |
61 | | - |
62 | 63 | .opc-progress-bar { |
63 | 64 | .lib-css(margin, 0 0 @checkout-progress-bar__margin); |
64 | 65 | counter-reset: i; |
|
195 | 196 | } |
196 | 197 | } |
197 | 198 | } |
| 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 | + } |
198 | 222 | } |
0 commit comments