timeline.scss 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. // =========================================================================================
  2. // File Name: timeline.scss
  3. // Description: Timeline style.
  4. // ----------------------------------------------------------------------------------------
  5. // Item Name: Vuexy - Vuejs, React, Angular, HTML & Laravel Admin Dashboard Template
  6. // Author: PIXINVENT
  7. // Author URL: http://www.themeforest.net/user/pixinvent
  8. // ==========================================================================================
  9. // Component: Timeline
  10. // ========================================================================
  11. .timeline {
  12. padding: 0;
  13. margin-bottom: 0;
  14. margin-left: 1rem;
  15. list-style: none;
  16. // Timeline Item
  17. .timeline-item {
  18. position: relative;
  19. padding-left: 2.5rem;
  20. border-left: 1px solid $timeline-border-color;
  21. &:not(:last-child) {
  22. padding-bottom: 1.8rem;
  23. }
  24. // Timeline Point
  25. .timeline-point {
  26. position: absolute;
  27. left: -0.85rem;
  28. top: 0;
  29. z-index: 2;
  30. display: flex;
  31. justify-content: center;
  32. align-items: center;
  33. height: $timeline-point-size;
  34. width: $timeline-point-size;
  35. text-align: center;
  36. border-radius: 50%;
  37. border: 1px solid $timeline-point-indicator-color;
  38. background-color: $white;
  39. // Timeline Point Indicator
  40. &.timeline-point-indicator {
  41. left: -0.412rem;
  42. top: 0.07rem;
  43. height: $timeline-point-indicator-size;
  44. width: $timeline-point-indicator-size;
  45. border: 0;
  46. background-color: $timeline-point-indicator-color;
  47. &:before {
  48. content: '';
  49. background: rgba($color: $timeline-point-indicator-color, $alpha: 0.12);
  50. height: $timeline-point-indicator-wrapper-size;
  51. width: $timeline-point-indicator-wrapper-size;
  52. display: block;
  53. position: absolute;
  54. top: -0.285rem;
  55. left: -0.285rem;
  56. border-radius: 50%;
  57. }
  58. }
  59. // Icons
  60. i,
  61. svg {
  62. color: $timeline-point-indicator-color;
  63. font-size: $timeline-item-icon-font-size;
  64. vertical-align: baseline;
  65. }
  66. }
  67. .timeline-event {
  68. position: relative;
  69. width: 100%;
  70. min-height: $timeline-item-min-height;
  71. // background-color: transparent;
  72. .timeline-event-time {
  73. font-size: $timeline-event-time-size;
  74. color: $timeline-event-time-color;
  75. }
  76. }
  77. &:last-of-type {
  78. border-left-color: transparent !important;
  79. &:after {
  80. content: '';
  81. position: absolute;
  82. left: -1px;
  83. bottom: 0;
  84. width: 1px;
  85. height: 100%;
  86. background: linear-gradient($border-color, transparent);
  87. }
  88. }
  89. }
  90. }