UNPKG

13.2 kBSCSSView Raw
1@import "../node_modules/tinper-bee-core/scss/minxin-variables";
2@import "../node_modules/tinper-bee-core/scss/minxin-mixins";
3.u-steps {
4 font-family: "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
5 font-size: 14px;
6 font-variant: tabular-nums;
7 line-height: 1.5;
8 color: rgba(0, 0, 0, 0.65);
9 -webkit-box-sizing: border-box;
10 box-sizing: border-box;
11 margin: 0;
12 padding: 0;
13 list-style: none;
14 font-size: 0;
15 width: 100%;
16 display: -webkit-box;
17 display: -webkit-flex;
18 display: -ms-flexbox;
19 display: flex;
20 .u-steps-item {
21 position: relative;
22 display: inline-block;
23 vertical-align: top;
24 -webkit-box-flex: 1;
25 -webkit-flex: 1;
26 -ms-flex: 1;
27 flex: 1;
28 overflow: hidden;
29 }
30 .u-steps-item:last-child {
31 -webkit-box-flex: 0;
32 -webkit-flex: none;
33 -ms-flex: none;
34 flex: none;
35 }
36 .u-steps-item:last-child .u-steps-item-tail,
37 .u-steps-item:last-child .u-steps-item-title:after {
38 display: none;
39 }
40 .uf {
41 font-size: 22px;
42 }
43 .uicon {
44 display: inline-block;
45 font-family: uf;
46 }
47}
48
49.u-steps-item-icon,
50.u-steps-item-content {
51 display: inline-block;
52 vertical-align: top;
53}
54
55.u-steps-item-icon {
56 border: 1px solid rgba(0, 0, 0, 0.25);
57 width: 32px;
58 height: 32px;
59 line-height: 32px;
60 text-align: center;
61 border-radius: 32px;
62 font-size: 16px;
63 margin-right: 8px;
64 -webkit-transition: background-color 0.3s, border-color 0.3s;
65 transition: background-color 0.3s, border-color 0.3s;
66 font-family: "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
67}
68
69.u-steps-item-icon>.u-steps-icon {
70 line-height: 1;
71 top: -1px;
72 color: $brand-primary;
73 position: relative;
74}
75
76.u-steps-item-tail {
77 position: absolute;
78 left: 0;
79 width: 100%;
80 top: 12px;
81 padding: 0 10px;
82}
83
84.u-steps-item-tail:after {
85 content: '';
86 display: inline-block;
87 background: #e8e8e8;
88 height: 1px;
89 border-radius: 1px;
90 width: 100%;
91 -webkit-transition: background .3s;
92 transition: background .3s;
93}
94
95.u-steps-item-title {
96 font-size: 16px;
97 color: rgba(0, 0, 0, 0.65);
98 display: inline-block;
99 padding-right: 16px;
100 position: relative;
101 line-height: 32px;
102}
103
104.u-steps-item-title:after {
105 content: '';
106 height: 1px;
107 width: 9999px;
108 background: #e8e8e8;
109 display: block;
110 position: absolute;
111 top: 16px;
112 left: 100%;
113}
114
115.u-steps-item-description {
116 font-size: 14px;
117 color: rgba(0, 0, 0, 0.45);
118}
119
120.u-steps-item-wait .u-steps-item-icon {
121 border-color: rgba(0, 0, 0, 0.25);
122 background-color: #fff;
123}
124
125.u-steps-item-wait .u-steps-item-icon>.u-steps-icon {
126 color: rgba(0, 0, 0, 0.25);
127}
128
129.u-steps-item-wait .u-steps-item-icon>.u-steps-icon .u-steps-icon-dot {
130 background: rgba(0, 0, 0, 0.25);
131}
132
133.u-steps-item-wait>.u-steps-item-content>.u-steps-item-title {
134 color: rgba(0, 0, 0, 0.45);
135}
136
137.u-steps-item-wait>.u-steps-item-content>.u-steps-item-title:after {
138 background-color: #e8e8e8;
139}
140
141.u-steps-item-wait>.u-steps-item-content>.u-steps-item-description {
142 color: rgba(0, 0, 0, 0.45);
143}
144
145.u-steps-item-wait>.u-steps-item-tail:after {
146 background-color: #e8e8e8;
147}
148
149.u-steps-item-process .u-steps-item-icon {
150 border-color: $brand-primary;
151 background-color: #fff;
152}
153
154.u-steps-item-process .u-steps-item-icon>.u-steps-icon {
155 color: $brand-primary;
156}
157
158.u-steps-item-process .u-steps-item-icon>.u-steps-icon .u-steps-icon-dot {
159 background: $brand-primary;
160}
161
162.u-steps-item-process>.u-steps-item-content>.u-steps-item-title {
163 color: rgba(0, 0, 0, 0.85);
164}
165
166.u-steps-item-process>.u-steps-item-content>.u-steps-item-title:after {
167 background-color: #e8e8e8;
168}
169
170.u-steps-item-process>.u-steps-item-content>.u-steps-item-description {
171 color: rgba(0, 0, 0, 0.65);
172}
173
174.u-steps-item-process>.u-steps-item-tail:after {
175 background-color: #e8e8e8;
176}
177
178.u-steps-item-process .u-steps-item-icon {
179 background: $brand-primary;
180}
181
182.u-steps-item-process .u-steps-item-icon>.u-steps-icon {
183 color: #fff;
184}
185
186.u-steps-item-process .u-steps-item-title {
187 font-weight: 500;
188}
189
190.u-steps-item-finish .u-steps-item-icon {
191 border-color: $brand-primary;
192 background-color: #fff;
193}
194
195.u-steps-item-finish .u-steps-item-icon{
196 .u-steps-icon {
197 color: $brand-primary;
198 }
199 .uicon:before{
200 content: "\e677";
201 }
202}
203
204.u-steps-item-finish .u-steps-item-icon>.u-steps-icon .u-steps-icon-dot {
205 background: $brand-primary;
206}
207
208.u-steps-item-finish>.u-steps-item-content>.u-steps-item-title {
209 color: rgba(0, 0, 0, 0.65);
210}
211
212.u-steps-item-finish>.u-steps-item-content>.u-steps-item-title:after {
213 background-color: $brand-primary;
214}
215
216.u-steps-item-finish>.u-steps-item-content>.u-steps-item-description {
217 color: rgba(0, 0, 0, 0.45);
218}
219
220.u-steps-item-finish>.u-steps-item-tail:after {
221 background-color: $brand-primary;
222}
223
224.u-steps-item-error .u-steps-item-icon {
225 border-color: #f5222d;
226 background-color: #fff;
227}
228
229.u-steps-item-error .u-steps-item-icon{
230 .u-steps-icon {
231 color: #f5222d;
232 }
233 .uicon::before{
234 content: "\e76b";
235 }
236}
237
238.u-steps-item-error .u-steps-item-icon>.u-steps-icon .u-steps-icon-dot {
239 background: #f5222d;
240}
241
242.u-steps-item-error>.u-steps-item-content>.u-steps-item-title {
243 color: #f5222d;
244}
245
246.u-steps-item-error>.u-steps-item-content>.u-steps-item-title:after {
247 background-color: #e8e8e8;
248}
249
250.u-steps-item-error>.u-steps-item-content>.u-steps-item-description {
251 color: #f5222d;
252}
253
254.u-steps-item-error>.u-steps-item-tail:after {
255 background-color: #e8e8e8;
256}
257
258.u-steps-item.u-steps-next-error .u-steps-item-title:after {
259 background: #f5222d;
260}
261
262.u-steps-horizontal:not(.u-steps-label-vertical) .u-steps-item {
263 margin-right: 16px;
264 white-space: nowrap;
265}
266
267.u-steps-horizontal:not(.u-steps-label-vertical) .u-steps-item:last-child {
268 margin-right: 0;
269}
270
271.u-steps-horizontal:not(.u-steps-label-vertical) .u-steps-item:last-child .u-steps-item-title {
272 padding-right: 0;
273}
274
275.u-steps-horizontal:not(.u-steps-label-vertical) .u-steps-item-tail {
276 display: none;
277}
278
279.u-steps-horizontal:not(.u-steps-label-vertical) .u-steps-item-description {
280 max-width: 140px;
281 white-space: normal;
282}
283
284.u-steps-item-custom .u-steps-item-icon {
285 background: none;
286 border: 0;
287 width: auto;
288 height: auto;
289}
290
291.u-steps-item-custom .u-steps-item-icon>.u-steps-icon {
292 font-size: 24px;
293 line-height: 32px;
294 top: 0;
295 left: 0.5px;
296 width: 32px;
297 height: 32px;
298}
299
300.u-steps-item-custom.u-steps-item-process .u-steps-item-icon>.u-steps-icon {
301 color: $brand-primary;
302}
303
304.u-steps-small.u-steps-horizontal:not(.u-steps-label-vertical) .u-steps-item {
305 margin-right: 12px;
306}
307
308.u-steps-small.u-steps-horizontal:not(.u-steps-label-vertical) .u-steps-item:last-child {
309 margin-right: 0;
310}
311
312.u-steps-small .u-steps-item-icon {
313 width: 24px;
314 height: 24px;
315 line-height: 24px;
316 text-align: center;
317 border-radius: 24px;
318 font-size: 12px;
319}
320
321.u-steps-small .u-steps-item-title {
322 font-size: 14px;
323 line-height: 24px;
324 padding-right: 12px;
325}
326
327.u-steps-small .u-steps-item-title:after {
328 top: 12px;
329}
330
331.u-steps-small .u-steps-item-description {
332 font-size: 14px;
333 color: rgba(0, 0, 0, 0.45);
334}
335
336.u-steps-small .u-steps-item-tail {
337 top: 8px;
338 padding: 0 8px;
339}
340
341.u-steps-small .u-steps-item-custom .u-steps-item-icon {
342 width: inherit;
343 height: inherit;
344 line-height: inherit;
345 border-radius: 0;
346 border: 0;
347 background: none;
348}
349
350.u-steps-small .u-steps-item-custom .u-steps-item-icon>.u-steps-icon {
351 font-size: 24px;
352 line-height: 24px;
353 -webkit-transform: none;
354 -ms-transform: none;
355 transform: none;
356}
357
358.u-steps-vertical {
359 display: block;
360}
361
362.u-steps-vertical .u-steps-item {
363 display: block;
364 overflow: visible;
365}
366
367.u-steps-vertical .u-steps-item-icon {
368 float: left;
369 margin-right: 16px;
370}
371
372.u-steps-vertical .u-steps-item-content {
373 min-height: 48px;
374 overflow: hidden;
375 display: block;
376}
377
378.u-steps-vertical .u-steps-item-title {
379 line-height: 32px;
380}
381
382.u-steps-vertical .u-steps-item-description {
383 padding-bottom: 12px;
384}
385
386.u-steps-vertical>.u-steps-item>.u-steps-item-tail {
387 position: absolute;
388 left: 16px;
389 top: 0;
390 height: 100%;
391 width: 1px;
392 padding: 38px 0 6px;
393}
394
395.u-steps-vertical>.u-steps-item>.u-steps-item-tail:after {
396 height: 100%;
397 width: 1px;
398}
399
400.u-steps-vertical>.u-steps-item:not(:last-child)>.u-steps-item-tail {
401 display: block;
402}
403
404.u-steps-vertical>.u-steps-item>.u-steps-item-content>.u-steps-item-title:after {
405 display: none;
406}
407
408.u-steps-vertical.u-steps-small .u-steps-item-tail {
409 position: absolute;
410 left: 12px;
411 top: 0;
412 padding: 30px 0 6px;
413}
414
415.u-steps-vertical.u-steps-small .u-steps-item-title {
416 line-height: 24px;
417}
418
419@media (max-width: 480px) {
420 .u-steps-horizontal.u-steps-label-horizontal {
421 display: block;
422 }
423 .u-steps-horizontal.u-steps-label-horizontal .u-steps-item {
424 display: block;
425 overflow: visible;
426 }
427 .u-steps-horizontal.u-steps-label-horizontal .u-steps-item-icon {
428 float: left;
429 margin-right: 16px;
430 }
431 .u-steps-horizontal.u-steps-label-horizontal .u-steps-item-content {
432 min-height: 48px;
433 overflow: hidden;
434 display: block;
435 }
436 .u-steps-horizontal.u-steps-label-horizontal .u-steps-item-title {
437 line-height: 32px;
438 }
439 .u-steps-horizontal.u-steps-label-horizontal .u-steps-item-description {
440 padding-bottom: 12px;
441 }
442 .u-steps-horizontal.u-steps-label-horizontal>.u-steps-item>.u-steps-item-tail {
443 position: absolute;
444 left: 16px;
445 top: 0;
446 height: 100%;
447 width: 1px;
448 padding: 38px 0 6px;
449 }
450 .u-steps-horizontal.u-steps-label-horizontal>.u-steps-item>.u-steps-item-tail:after {
451 height: 100%;
452 width: 1px;
453 }
454 .u-steps-horizontal.u-steps-label-horizontal>.u-steps-item:not(:last-child)>.u-steps-item-tail {
455 display: block;
456 }
457 .u-steps-horizontal.u-steps-label-horizontal>.u-steps-item>.u-steps-item-content>.u-steps-item-title:after {
458 display: none;
459 }
460 .u-steps-horizontal.u-steps-label-horizontal.u-steps-small .u-steps-item-tail {
461 position: absolute;
462 left: 12px;
463 top: 0;
464 padding: 30px 0 6px;
465 }
466 .u-steps-horizontal.u-steps-label-horizontal.u-steps-small .u-steps-item-title {
467 line-height: 24px;
468 }
469}
470
471.u-steps-label-vertical .u-steps-item {
472 overflow: visible;
473}
474
475.u-steps-label-vertical .u-steps-item-tail {
476 padding: 0 24px;
477 margin-left: 48px;
478}
479
480.u-steps-label-vertical .u-steps-item-content {
481 display: block;
482 text-align: center;
483 margin-top: 8px;
484 width: 104px;
485}
486
487.u-steps-label-vertical .u-steps-item-icon {
488 display: inline-block;
489 margin-left: 36px;
490}
491
492.u-steps-label-vertical .u-steps-item-title {
493 padding-right: 0;
494}
495
496.u-steps-label-vertical .u-steps-item-title:after {
497 display: none;
498}
499
500.u-steps-dot .u-steps-item-title {
501 line-height: 1.5;
502}
503
504.u-steps-dot .u-steps-item-tail {
505 width: 100%;
506 top: 2px;
507 margin: 0 0 0 70px;
508 padding: 0;
509}
510
511.u-steps-dot .u-steps-item-tail:after {
512 height: 3px;
513 width: calc(100% - 20px);
514 margin-left: 12px;
515}
516
517.u-steps-dot .u-steps-item:first-child .u-steps-icon-dot {
518 left: 2px;
519}
520
521.u-steps-dot .u-steps-item-icon {
522 padding-right: 0;
523 width: 8px;
524 height: 8px;
525 line-height: 8px;
526 border: 0;
527 margin-left: 67px;
528 background: transparent;
529}
530
531.u-steps-dot .u-steps-item-icon .u-steps-icon-dot {
532 float: left;
533 width: 100%;
534 height: 100%;
535 border-radius: 100px;
536 position: relative;
537 -webkit-transition: all .3s;
538 transition: all .3s;
539 /* expand hover area */
540}
541
542.u-steps-dot .u-steps-item-icon .u-steps-icon-dot:after {
543 content: "";
544 background: rgba(0, 0, 0, 0.001);
545 width: 60px;
546 height: 32px;
547 position: absolute;
548 top: -12px;
549 left: -26px;
550}
551
552.u-steps-dot .u-steps-item-content {
553 width: 140px;
554}
555
556.u-steps-dot .u-steps-item-process .u-steps-item-icon {
557 width: 10px;
558 height: 10px;
559 line-height: 10px;
560}
561
562.u-steps-dot .u-steps-item-process .u-steps-item-icon .u-steps-icon-dot {
563 top: -1px;
564}
565
566.u-steps-vertical.u-steps-dot .u-steps-item-icon {
567 margin-left: 0;
568 margin-top: 8px;
569}
570
571.u-steps-vertical.u-steps-dot .u-steps-item-tail {
572 margin: 0;
573 left: -9px;
574 top: 2px;
575 padding: 22px 0 4px;
576}
577
578.u-steps-vertical.u-steps-dot .u-steps-item:first-child .u-steps-icon-dot {
579 left: 0;
580}
581
582.u-steps-vertical.u-steps-dot .u-steps-item-process .u-steps-icon-dot {
583 left: -2px;
584}
\No newline at end of file