index.less 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. .cip-timeline-item{
  2. &:last-child{
  3. .cip-timeline-item__tail{
  4. height: 0px;
  5. }
  6. }
  7. position: relative;
  8. padding-bottom: 20px;
  9. & .el-icon{
  10. position: absolute;
  11. }
  12. &__tail{
  13. position: absolute;
  14. left: 5px;
  15. height: calc(100% - 12px);
  16. top:12px;
  17. border-left: 2px solid #e6e6e6;
  18. }
  19. &__node{
  20. position: absolute;
  21. background-color: #e6e6e6;
  22. border-color: #e6e6e6;
  23. border-radius: 50%;
  24. box-sizing: border-box;
  25. display: flex;
  26. justify-content: center;
  27. align-items: center;
  28. }
  29. &__node--normal{
  30. width: 12px;
  31. height: 12px;
  32. }
  33. &__wrapper{
  34. position: relative;
  35. padding-left: 28px;
  36. top: -4px;
  37. }
  38. &__title{
  39. font-weight: 500;
  40. color:#333333;
  41. }
  42. &__desc{
  43. margin-top:8px;
  44. font-size:12px;
  45. font-weight:400;
  46. color:#666666;
  47. }
  48. &__timestamp{
  49. margin-top:8px;
  50. font-size:12px;
  51. font-weight: 400;
  52. color:var(--el-text-color-disabled)
  53. }
  54. }
  55. .right{
  56. & .el-icon{
  57. left: calc(100% - 11px);
  58. }
  59. .cip-timeline-item{
  60. &__tail{
  61. left: calc(100% - 6px);
  62. }
  63. &__wrapper{
  64. padding-right: 28px;
  65. text-align: right;
  66. }
  67. &__node{
  68. left: calc(100% - 11px);
  69. }
  70. }
  71. }
  72. .node{
  73. border-radius: 50%;
  74. background-color:var(--bgColor);
  75. }
  76. .node-dot{
  77. border-radius: 50%;
  78. background-color:white;
  79. border:1px solid var(--bgColor);
  80. &::after{
  81. content:'';
  82. display: block;
  83. width: 8px;
  84. height: 8px;
  85. border-radius: 50%;
  86. background-color: var(--bgColor);
  87. position: relative;
  88. }
  89. }