啊鑫
7 天以前 fca192d3c38c5dcfbb6ace8bc71d6078f6a079b2
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
@import '../style/var';
 
.van-step {
  position: relative;
  flex: 1;
  color: @step-text-color;
  font-size: @step-font-size;
 
  &__circle {
    display: block;
    width: @step-circle-size;
    height: @step-circle-size;
    background-color: @step-circle-color;
    border-radius: 50%;
  }
 
  &__line {
    position: absolute;
    background-color: @step-line-color;
    transition: background-color @animation-duration-base;
  }
 
  &--horizontal {
    float: left;
 
    &:first-child {
      .van-step__title {
        margin-left: 0;
        transform: none;
      }
    }
 
    &:last-child {
      position: absolute;
      right: 1px;
      width: auto;
 
      .van-step__title {
        margin-left: 0;
        transform: none;
      }
 
      .van-step__circle-container {
        right: -9px;
        left: auto;
      }
    }
 
    .van-step__circle-container {
      position: absolute;
      top: 30px;
      left: -@padding-xs;
      z-index: 1;
      padding: 0 @padding-xs;
      background-color: @white;
      transform: translateY(-50%);
    }
 
    .van-step__title {
      display: inline-block;
      margin-left: 3px;
      font-size: @step-horizontal-title-font-size;
      transform: translateX(-50%);
 
      @media (max-width: 321px) {
        font-size: @step-horizontal-title-font-size - 1px;
      }
    }
 
    .van-step__line {
      top: 30px;
      left: 0;
      width: 100%;
      height: 1px;
    }
 
    .van-step__icon {
      display: block;
      font-size: @step-icon-size;
    }
 
    .van-step--process {
      color: @step-process-text-color;
    }
  }
 
  &--vertical {
    display: block;
    float: none;
    padding: 10px 10px 10px 0;
    line-height: @line-height-sm;
 
    &:not(:last-child)::after {
      border-bottom-width: 1px;
    }
 
    .van-step__circle-container {
      position: absolute;
      top: 19px;
      left: -15px;
      z-index: 1;
      font-size: @step-icon-size;
      line-height: 1;
      transform: translate(-50%, -50%);
    }
 
    .van-step__line {
      top: 16px;
      left: -15px;
      width: 1px;
      height: 100%;
    }
  }
 
  &:last-child {
    .van-step__line {
      width: 0;
    }
  }
 
  &--finish {
    color: @step-finish-text-color;
 
    .van-step__circle,
    .van-step__line {
      background-color: @step-finish-line-color;
    }
  }
 
  &__icon,
  &__title {
    transition: color @animation-duration-base;
 
    &--active,
    &--finish {
      color: @step-active-color;
    }
  }
}