step.less
1.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
/*步骤条样式*/
.xn-step-bar {
display: block;
width: 100%;
color: @xn-font-primary;
font-size: @xn-font-size;
height: 30px;
}
.xn-step-bar .step-item {
display: inline-block;
background: @xn-step-undo;
width: 32%;
height: 30px;
line-height: 30px;
text-align: center;
position: relative;
margin-left: 5px;
}
.xn-step-bar .step-start{
margin-left: 0;
}
.xn-step-bar .step-start:before, .xn-step-bar .step-process:before {
position: absolute;
display: inline-block;
width: 21.21px;
height: 21.21px;
content: "";
transform:rotate(45deg);
top: 4px;
right: -11px;
z-index: 900;
background: @xn-step-undo;
}
.xn-step-bar .step-process .triangle, .xn-step-bar .step-end .triangle {
position: absolute;
display: inline-block;
width: 0;
height: 0;
border-left: 15px solid #fff;
border-bottom: 15px solid transparent;
border-top: 15px solid transparent;
border-right: 0px solid transparent;
left: 0;
top: 0;
overflow: hidden;
}
.xn-step-bar .step-now {
color: #fff;
background: @xn-step-doing;
}
.xn-step-bar .step-now:before {
background: @xn-step-doing;
}
.xn-step-bar .step-pass {
color: #fff;
background: @xn-step-done;
}
.xn-step-bar .step-pass:before {
background: @xn-step-done;
}