|
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;
|
|
51 | 54 | &:extend(.abs-reset-list all);
|
52 | 55 | display: none;
|
53 | 56 | }
|
54 |
| -} |
55 |
| - |
56 |
| -// |
57 |
| -// Desktop |
58 |
| -// _____________________________________________ |
59 |
| - |
60 |
| -.media-width(@extremum, @break) when (@extremum = 'min') and (@break = @screen__m) { |
61 | 57 |
|
62 | 58 | .opc-progress-bar {
|
63 | 59 | .lib-css(margin, 0 0 @checkout-progress-bar__margin);
|
|
105 | 101 | word-wrap: break-word;
|
106 | 102 |
|
107 | 103 | .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 |
114 | 110 | );
|
115 | 111 |
|
116 | 112 | &:before, // Item element
|
|
137 | 133 | content: counter(i);
|
138 | 134 | counter-increment: i;
|
139 | 135 | .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 |
146 | 142 | );
|
147 | 143 | }
|
148 | 144 | }
|
|
196 | 192 | }
|
197 | 193 | }
|
198 | 194 | }
|
| 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