TimeLine.scss 1.99 KB
/* 时间轴容器 */
.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: 20rpx;
  left: 18rpx;
  height: calc(100% - 20rpx);
  border-left: 2rpx 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;
  }
}