You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
78 lines
1.4 KiB
78 lines
1.4 KiB
/* timeline */
|
|
.uni-timeline {
|
|
margin: 35upx 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
position: relative;
|
|
}
|
|
|
|
.uni-timeline-item {
|
|
display: flex;
|
|
flex-direction: row;
|
|
position: relative;
|
|
padding-bottom: 20upx;
|
|
box-sizing: border-box;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.uni-timeline-item .uni-timeline-item-keynode {
|
|
width: 160upx;
|
|
flex-shrink: 0;
|
|
box-sizing: border-box;
|
|
padding-right: 20upx;
|
|
text-align: right;
|
|
line-height: 65upx;
|
|
}
|
|
|
|
.uni-timeline-item .uni-timeline-item-divider {
|
|
flex-shrink: 0;
|
|
position: relative;
|
|
width: 30upx;
|
|
height: 30upx;
|
|
top: 15upx;
|
|
border-radius: 50%;
|
|
background-color: #bbb;
|
|
}
|
|
|
|
.uni-timeline-item-divider::before,
|
|
.uni-timeline-item-divider::after {
|
|
position: absolute;
|
|
left: 15upx;
|
|
width: 1upx;
|
|
height: 100vh;
|
|
content: '';
|
|
background: inherit;
|
|
}
|
|
|
|
.uni-timeline-item-divider::before {
|
|
bottom: 100%;
|
|
}
|
|
|
|
.uni-timeline-item-divider::after {
|
|
top: 100%;
|
|
}
|
|
|
|
.uni-timeline-last-item .uni-timeline-item-divider:after {
|
|
display: none;
|
|
}
|
|
|
|
.uni-timeline-first-item .uni-timeline-item-divider:before {
|
|
display: none;
|
|
}
|
|
|
|
.uni-timeline-item .uni-timeline-item-content {
|
|
padding-left: 20upx;
|
|
}
|
|
|
|
.uni-timeline-last-item .bottom-border::after {
|
|
display: none;
|
|
}
|
|
|
|
.uni-timeline-item-content .datetime {
|
|
color: #cccccc;
|
|
}
|
|
|
|
/* 自定义节点颜色 */
|
|
.uni-timeline-last-item .uni-timeline-item-divider {
|
|
background-color: #1890ff;
|
|
}
|
|
|