TimeLine.scss
1.99 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
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
/* 时间轴容器 */
.timeline-container {
padding: 20rpx 0;
}
/* 时间轴节点 */
.timeline-node {
position: relative;
padding-bottom: 40rpx;
display: flex;
&:last-child {
padding-bottom: 0;
}
}
/* 时间轴节点点容器 */
.timeline-node__dot-wrapper {
width: 36rpx;
display: flex;
justify-content: center;
align-items: flex-start;
flex-shrink: 0;
padding-top: 6rpx;
}
/* 时间轴节点点 */
.timeline-node__dot {
width: 20rpx;
height: 20rpx;
background-color: #e8e8ea;
border-radius: 50%;
z-index: 1;
/* 激活状态的节点点 */
&.timeline-node__dot--active {
background-color: var(--btnColor);
}
/* 小型节点点 */
&.timeline-node__dot--small {
width: 12rpx;
height: 12rpx;
}
/* 地址节点点 */
&.timeline-node__dot--spacial {
width: 12rpx;
height: 12rpx;
}
}
/* 时间轴连接线 */
.timeline-node__line {
position: absolute;
top: 18rpx;
left: 18rpx;
height: calc(100% - 16rpx);
border-left: 1px solid #e8e8ea;
z-index: 0;
}
/* 时间轴内容 */
.timeline-node__content {
flex: 1;
padding-left: 20rpx;
color: #b1b1b3;
}
.timeline-node__content--special {
.timeline-node__title,
.timeline-node__tip {
font-weight: 400;
font-size: 24rpx;
}
.timeline-node__title {
color: #282829;
}
.timeline-node__tip {
color: #666666;
}
}
/* 时间轴头部 */
.timeline-node__header {
display: flex;
margin-bottom: 16rpx;
margin-bottom: 16rpx;
align-items: center;
gap: 20rpx;
}
/* 时间轴标题 */
.timeline-node__title {
font-weight: 500;
font-size: 28rpx;
margin-bottom: 8rpx;
line-height: 1.4;
}
/* 时间轴时间 */
.timeline-node__time {
font-weight: 400;
font-size: 24rpx;
line-height: 1.4;
}
/* 时间轴提示信息 */
.timeline-node__tip {
font-weight: 400;
font-size: 24rpx;
line-height: 1.5;
}
.active {
.timeline-node__title {
color: #282829;
}
.timeline-node__time {
color: #909399;
}
.timeline-node__tip {
color: #656566;
}
}