timeline.sass
2.41 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
.timeline-item {
display: flex;
margin-bottom: var(--fontSize32);
background-color: #fff;
padding: var(--fontSize6) var(--fontSize32);
border-radius: var(--fontSize16);
&:last-child {
margin-bottom: 0;
}
.timeline-wrapper {
position: relative;
display: flex;
flex-direction: column;
align-items: center;
margin-right: var(--fontSize24);
.timeline-dot {
width: var(--fontSize30);
height: var(--fontSize30);
border-radius: 50%;
background: #8eb2fb;
opacity: 1;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
z-index: 2;
&.active {
width: var(--fontSize32);
height: var(--fontSize32);
background: #d6e4ff;
.dot-inner {
width: var(--fontSize20);
height: var(--fontSize20);
border-radius: 50%;
background: #2c66f7;
display: flex;
align-items: center;
justify-content: center;
.dot-core {
width: var(--fontSize8);
height: var(--fontSize8);
border-radius: var(--fontSize8);
background: #ffffff;
}
}
}
}
.timeline-line {
width: var(--fontSize2);
flex: 1;
min-height: var(--fontSize100);
background: #d6e4ff;
margin-top: var(--fontSize8);
}
}
.timeline-content {
flex: 1;
padding-bottom: var(--fontSize32);
.timeline-header {
margin-bottom: var(--fontSize16);
border-radius: var(--fontSize12);
font-size: var(--fontSize28);
font-weight: 500;
color: #292d33;
.status {
display: inline-block;
padding: var(--fontSize4) var(--fontSize12);
font-size: var(--fontSize24);
border-radius: var(--fontSize4);
&.status-10 {
color: #f59619;
background: #fef4e8;
}
&.status-20 {
color: #6a56f0;
background: #f0eefd;
}
&.status-30 {
color: #2cca74;
background: #e9f9f1;
}
}
.timeline-time {
font-size: var(--fontSize24);
color: #999999;
}
}
}
}
// 辅助类
.flex {
display: flex;
}
.align-center {
align-items: center;
}
.justify-between {
justify-content: space-between;
}
.justify-center {
justify-content: center;
}
.ml-12 {
margin-left: var(--fontSize12);
}