You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

129 lines
2.4 KiB

1 year ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. //
  2. // Timeline
  3. // --------------------------------------------------
  4. .timeline {
  5. position: relative;
  6. padding: 1rem 0;
  7. @include list-unstyled();
  8. &::before {
  9. position: absolute;
  10. top: 0;
  11. left: 1.375rem;
  12. height: 100%;
  13. width: .25rem;
  14. background-color: $body-bg-dark;
  15. content: "";
  16. border-radius: $border-radius;
  17. }
  18. }
  19. .timeline-event {
  20. position: relative;
  21. &:not(:last-child) {
  22. margin-bottom: $space-base;
  23. }
  24. }
  25. .timeline-event-icon {
  26. position: absolute;
  27. width: 3rem;
  28. height: 3rem;
  29. display: flex;
  30. align-items: center;
  31. justify-content: center;
  32. color: $white;
  33. border-radius: 1.5rem;
  34. border: .25rem solid $white;
  35. z-index: 5;
  36. box-shadow: 0 .375rem 1.5rem darken($body-bg, 8%);
  37. &::before {
  38. position:absolute;
  39. top: 50%;
  40. right: -.625rem;
  41. width: 0;
  42. height: 0;
  43. border-top: .625rem solid transparent;
  44. border-bottom: .625rem solid transparent;
  45. border-left: .625rem solid $white;
  46. content: "";
  47. transform: translateY(-50%);
  48. }
  49. }
  50. .timeline-event-block {
  51. margin-left: 4rem;
  52. margin-bottom: 0 !important;
  53. }
  54. // Centered Timeline in larger screens
  55. @include media-breakpoint-up(xl) {
  56. .timeline-centered {
  57. &::before {
  58. left: 50%;
  59. margin-left: -.125rem;
  60. }
  61. .timeline-event-icon {
  62. left: 50%;
  63. margin-left: -1.5rem;
  64. &::before {
  65. right: auto;
  66. left: -.625rem;
  67. border-right: .625rem solid $white;
  68. border-left: none;
  69. }
  70. }
  71. .timeline-event-time {
  72. position: absolute;
  73. display: inline-block;
  74. top: 1.5rem;
  75. left: 50%;
  76. padding: .5rem .5rem .5rem 2rem;
  77. width: auto;
  78. border-radius: $border-radius;
  79. background-color: $white;
  80. transform: translateY(-50%);
  81. }
  82. .timeline-event-block {
  83. width: 46%;
  84. margin-left: 0;
  85. }
  86. .timeline-event:not(:last-child) {
  87. margin-bottom: $space-base * 2;
  88. }
  89. &.timeline-alt .timeline-event:nth-child(even),
  90. .timeline-event.timeline-event-alt {
  91. .timeline-event-icon {
  92. left: 50%;
  93. margin-left: -1.5rem;
  94. &::before {
  95. right: -.625rem;
  96. left: auto;
  97. border-right: none;
  98. border-left: .625rem solid $white;
  99. }
  100. }
  101. .timeline-event-block {
  102. margin-left: auto;
  103. }
  104. .timeline-event-time {
  105. padding: .5rem 2rem .5rem .5rem;
  106. right: 50%;
  107. left: auto;
  108. text-align: right;
  109. }
  110. }
  111. }
  112. }