timeline.wxss 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. page {
  2. background: #f5f5f5;
  3. }
  4. .timeline {
  5. background: #fff;
  6. }
  7. .timeline-item {
  8. padding: 20rpx 20rpx 20rpx 140rpx;
  9. position: relative;
  10. }
  11. .timeline-item::after {
  12. content: "";
  13. display: block;
  14. position: absolute;
  15. width: 1rpx;
  16. background: #ddd;
  17. left: 70rpx;
  18. height: 100%;
  19. top: 0;
  20. z-index: 8;
  21. }
  22. .timeline-item::before {
  23. content: "";
  24. display: block;
  25. position: absolute;
  26. width: 15rpx;
  27. background: #ddd;
  28. left: 57rpx;
  29. height: 15rpx;
  30. border: 8rpx solid #fff;
  31. border-radius: 50%;
  32. top: 45rpx;
  33. z-index: 9;
  34. }
  35. .timeline-item.cur::before, .timeline-item.cur::after,
  36. .timeline-item.cur .timeline-main {
  37. background: #39b54a;
  38. color: #fff;
  39. }
  40. .timeline-time {
  41. width: 140rpx;
  42. text-align: center;
  43. padding: 20rpx;
  44. font-size: 26rpx;
  45. color: #888;
  46. }
  47. .timeline-main {
  48. color: #666;
  49. background: #f1f1f1;
  50. padding: 20rpx;
  51. border-radius: 6rpx;
  52. }
  53. .timeline-item.timeline-sm {
  54. padding: 20rpx 20rpx 20rpx 100rpx;
  55. }
  56. .timeline-item.timeline-sm::after {
  57. left: 50rpx;
  58. }
  59. .timeline-item.timeline-sm::before {
  60. left: 37rpx;
  61. }