timeline-item.scss 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. @import "mixins/mixins";
  2. @import "common/var";
  3. @include b(timeline-item) {
  4. position: relative;
  5. padding-bottom: 20px;
  6. @include e(wrapper) {
  7. position: relative;
  8. padding-left: 28px;
  9. top: -3px;
  10. }
  11. @include e(tail) {
  12. position: absolute;
  13. left: 4px;
  14. height: 100%;
  15. border-left: 2px solid $--timeline-node-color;
  16. }
  17. @include e(icon) {
  18. color: $--color-white;
  19. font-size: $--font-size-small;
  20. }
  21. @include e(node) {
  22. position: absolute;
  23. background-color: $--timeline-node-color;
  24. border-radius: 50%;
  25. display: flex;
  26. justify-content: center;
  27. align-items: center;
  28. @include m(normal) {
  29. left: -1px;
  30. width: $--timeline-node-size-normal;
  31. height: $--timeline-node-size-normal;
  32. }
  33. @include m(large) {
  34. left: -2px;
  35. width: $--timeline-node-size-large;
  36. height: $--timeline-node-size-large;
  37. }
  38. @include m(primary) {
  39. background-color: $--color-primary;
  40. }
  41. @include m(success) {
  42. background-color: $--color-success;
  43. }
  44. @include m(warning) {
  45. background-color: $--color-warning;
  46. }
  47. @include m(danger) {
  48. background-color: $--color-danger;
  49. }
  50. @include m(info) {
  51. background-color: $--color-info;
  52. }
  53. }
  54. @include e(dot) {
  55. position: absolute;
  56. display: flex;
  57. justify-content: center;
  58. align-items: center;
  59. }
  60. @include e(content) {
  61. color: $--color-text-primary;
  62. }
  63. @include e(timestamp) {
  64. color: $--color-text-secondary;
  65. line-height: 1;
  66. font-size: $--font-size-small;
  67. @include when(top) {
  68. margin-bottom: 8px;
  69. padding-top: 4px;
  70. }
  71. @include when(bottom) {
  72. margin-top: 8px;
  73. }
  74. }
  75. }