|
22 | 22 | row-gap: $content-row-gap; |
23 | 23 | column-gap: $content-column-gap; |
24 | 24 |
|
25 | | - &::before { |
26 | | - width: $width; |
27 | | - height: $height; |
28 | | - } |
29 | | - |
30 | 25 | .dx-step-optional-mark { |
31 | 26 | font-size: $stepper-step-optional-mark-font-size; |
32 | 27 | } |
|
54 | 49 | $disabled-color, |
55 | 50 | $disabled-bg, |
56 | 51 | ) { |
57 | | - .dx-step-content::before { |
| 52 | + .dx-step-indicator { |
58 | 53 | background-color: $background-color; |
59 | 54 | border-color: $border-color; |
60 | 55 | box-shadow: 0 0 0 8px $background-color; |
61 | 56 | } |
62 | 57 |
|
63 | 58 | .dx-step { |
64 | 59 | &.dx-state-hover { |
65 | | - .dx-step-content::before { |
| 60 | + .dx-step-indicator { |
66 | 61 | border-color: $border-color-hover; |
67 | 62 | background-color: $background-color-hover; |
68 | 63 | } |
69 | 64 |
|
70 | 65 | &.dx-step-completed, |
71 | 66 | &.dx-step-selected { |
72 | | - .dx-step-content::before { |
| 67 | + .dx-step-indicator { |
73 | 68 | border-color: $border-color-focused; |
74 | 69 | background-color: $background-color-selected-hover; |
75 | 70 | } |
76 | 71 |
|
77 | 72 | &.dx-step-invalid { |
78 | 73 | .dx-step-indicator { |
79 | 74 | color: $color-selected; |
80 | | - } |
81 | | - |
82 | | - .dx-step-content::before { |
83 | 75 | border-color: $invalid-color-hover; |
84 | 76 | background-color: $invalid-color-hover; |
85 | 77 | } |
|
98 | 90 | } |
99 | 91 |
|
100 | 92 | &.dx-state-active { |
101 | | - .dx-step-content::before { |
| 93 | + .dx-step-indicator { |
102 | 94 | background-color: $background-color-hover; |
103 | 95 | } |
104 | 96 | } |
|
116 | 108 | &.dx-step-completed { |
117 | 109 | .dx-step-indicator { |
118 | 110 | color: $color-selected; |
| 111 | + border-color: $border-color-selected; |
| 112 | + background-color: $background-color-selected; |
| 113 | + box-shadow: 0 0 0 8px $background-color; |
119 | 114 | } |
120 | 115 |
|
121 | 116 | .dx-step-label { |
122 | 117 | color: $background-color-selected; |
123 | 118 | } |
124 | 119 |
|
125 | | - .dx-step-content::before { |
126 | | - border-color: $border-color-selected; |
127 | | - background-color: $background-color-selected; |
128 | | - box-shadow: 0 0 0 8px $background-color; |
129 | | - } |
130 | | - |
131 | 120 | &.dx-step-invalid { |
132 | 121 | .dx-step-label { |
133 | 122 | color: $invalid-color; |
134 | 123 | } |
135 | 124 |
|
136 | | - .dx-step-content::before { |
| 125 | + .dx-step-indicator { |
137 | 126 | border-color: $invalid-color; |
138 | 127 | background-color: $invalid-color; |
139 | 128 | box-shadow: 0 0 0 8px $background-color; |
140 | 129 | } |
141 | 130 |
|
142 | 131 | &.dx-state-focused { |
143 | | - .dx-step-content::before { |
| 132 | + .dx-step-indicator { |
144 | 133 | border-color: $invalid-color-hover; |
145 | 134 | background-color: $invalid-color-hover; |
146 | 135 | } |
|
150 | 139 | &.dx-state-disabled { |
151 | 140 | .dx-step-indicator { |
152 | 141 | color: $disabled-color; |
| 142 | + border-color: $disabled-bg; |
| 143 | + background-color: $disabled-bg; |
153 | 144 | } |
154 | 145 |
|
155 | 146 | .dx-step-label { |
156 | 147 | color: $disabled-color; |
157 | 148 | } |
158 | 149 |
|
159 | | - .dx-step-content::before { |
160 | | - border-color: $disabled-bg; |
161 | | - background-color: $disabled-bg; |
162 | | - } |
163 | | - |
164 | 150 | &.dx-state-focused { |
165 | | - .dx-step-content::before { |
| 151 | + .dx-step-indicator { |
166 | 152 | border-color: $disabled-bg; |
167 | 153 | background-color: $disabled-bg; |
168 | 154 | } |
|
173 | 159 | &.dx-step-selected { |
174 | 160 | .dx-step-indicator { |
175 | 161 | color: $color-selected; |
| 162 | + border-color: $border-color-selected; |
| 163 | + background-color: $background-color-selected; |
| 164 | + box-shadow: 0 0 0 2px $background-color, 0 0 0 4px $border-color-selected, 0 0 0 8px $background-color; |
176 | 165 | } |
177 | 166 |
|
178 | 167 | .dx-step-label { |
179 | 168 | color: $background-color-selected; |
180 | 169 | } |
181 | 170 |
|
182 | | - .dx-step-content::before { |
183 | | - border-color: $border-color-selected; |
184 | | - background-color: $background-color-selected; |
185 | | - box-shadow: 0 0 0 2px $background-color, 0 0 0 4px $border-color-selected, 0 0 0 8px $background-color; |
186 | | - } |
187 | | - |
188 | 171 | &.dx-step-invalid { |
189 | 172 | .dx-step-label { |
190 | 173 | color: $invalid-color; |
191 | 174 | } |
192 | 175 |
|
193 | | - .dx-step-content::before { |
| 176 | + .dx-step-indicator { |
194 | 177 | border-color: $invalid-color; |
195 | 178 | background-color: $invalid-color; |
196 | 179 | box-shadow: 0 0 0 2px $background-color, 0 0 0 4px $invalid-color, 0 0 0 8px $background-color; |
|
200 | 183 | &.dx-state-disabled { |
201 | 184 | .dx-step-indicator { |
202 | 185 | color: $disabled-color; |
| 186 | + border-color: $disabled-bg; |
| 187 | + background-color: $disabled-bg; |
203 | 188 | } |
204 | 189 |
|
205 | 190 | .dx-step-label { |
206 | 191 | color: $disabled-color; |
207 | 192 | } |
208 | 193 |
|
209 | | - .dx-step-content::before { |
210 | | - border-color: $disabled-bg; |
211 | | - background-color: $disabled-bg; |
212 | | - } |
213 | | - |
214 | 194 | &.dx-state-focused { |
215 | | - .dx-step-content::before { |
| 195 | + .dx-step-indicator { |
216 | 196 | border-color: $disabled-bg; |
217 | 197 | background-color: $disabled-bg; |
218 | 198 | } |
|
221 | 201 | } |
222 | 202 |
|
223 | 203 | &.dx-state-focused { |
224 | | - .dx-step-content::before { |
| 204 | + .dx-step-indicator { |
225 | 205 | box-shadow: 0 0 0 2px $background-color, 0 0 0 4px $border-color-focused, 0 0 0 8px $background-color; |
226 | 206 | } |
227 | 207 |
|
228 | 208 | &.dx-step-selected, |
229 | 209 | &.dx-step-completed { |
230 | | - .dx-step-content::before { |
| 210 | + .dx-step-indicator { |
231 | 211 | background-color: $background-color-selected-hover; |
232 | 212 | } |
233 | 213 | } |
234 | 214 |
|
235 | 215 | &.dx-step-invalid { |
236 | | - .dx-step-content::before { |
| 216 | + .dx-step-indicator { |
237 | 217 | box-shadow: 0 0 0 2px $background-color, 0 0 0 4px $invalid-color-hover, 0 0 0 8px $background-color; |
238 | 218 | } |
239 | 219 | } |
|
242 | 222 | &.dx-state-disabled { |
243 | 223 | .dx-step-indicator { |
244 | 224 | color: $disabled-color; |
| 225 | + border-color: $disabled-bg; |
| 226 | + background-color: $disabled-bg; |
245 | 227 | } |
246 | 228 |
|
247 | 229 | .dx-step-label { |
248 | 230 | color: $disabled-color; |
249 | 231 | } |
250 | | - |
251 | | - .dx-step-content::before { |
252 | | - border-color: $disabled-bg; |
253 | | - background-color: $disabled-bg; |
254 | | - } |
255 | 232 | } |
256 | 233 | } |
257 | 234 |
|
258 | 235 | .dx-stepper { |
259 | 236 | &.dx-state-focused { |
260 | 237 | .dx-step-selected { |
261 | | - .dx-step-content::before { |
| 238 | + .dx-step-indicator { |
262 | 239 | box-shadow: 0 0 0 8px $background-color; |
263 | 240 | } |
264 | 241 |
|
265 | 242 | &.dx-state-focused { |
266 | | - .dx-step-content::before { |
| 243 | + .dx-step-indicator { |
267 | 244 | box-shadow: 0 0 0 2px $background-color, 0 0 0 4px $border-color-focused, 0 0 0 8px $background-color; |
268 | 245 | } |
269 | 246 |
|
270 | 247 | &.dx-step-invalid { |
271 | | - .dx-step-content::before { |
| 248 | + .dx-step-indicator { |
272 | 249 | border-color: $invalid-color-hover; |
273 | 250 | background-color: $invalid-color-hover; |
274 | 251 | box-shadow: 0 0 0 2px $background-color, 0 0 0 4px $invalid-color-hover, 0 0 0 8px $background-color; |
|
0 commit comments