_timeline.scss 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. //
  2. // Component: Timeline
  3. //
  4. .timeline {
  5. list-style: none;
  6. margin: 0 0 30px;
  7. padding: 0;
  8. position: relative;
  9. // The line
  10. &::before {
  11. @include border-radius($border-radius);
  12. background: $gray-300;
  13. bottom: 0;
  14. content: '';
  15. left: 31px;
  16. margin: 0;
  17. position: absolute;
  18. top: 0;
  19. width: 4px;
  20. }
  21. > li {
  22. @include clearfix;
  23. margin-bottom: 15px;
  24. margin-right: 10px;
  25. position: relative;
  26. // The content
  27. > .timeline-item {
  28. @include box-shadow($card-shadow);
  29. @include border-radius($border-radius);
  30. background: $white;
  31. color: $gray-700;
  32. margin-left: 60px;
  33. margin-right: 15px;
  34. margin-top: 0;
  35. padding: 0;
  36. position: relative;
  37. // The time and header
  38. > .time {
  39. color: #999;
  40. float: right;
  41. font-size: 12px;
  42. padding: 10px;
  43. }
  44. > .timeline-header {
  45. border-bottom: 1px solid $card-border-color;
  46. color: $gray-700;
  47. font-size: 16px;
  48. line-height: 1.1;
  49. margin: 0;
  50. padding: 10px;
  51. > a {
  52. font-weight: 600;
  53. }
  54. }
  55. // Item body and footer
  56. > .timeline-body,
  57. > .timeline-footer {
  58. padding: 10px;
  59. }
  60. }
  61. // The icons
  62. > .fa,
  63. > .fas,
  64. > .far,
  65. > .fab,
  66. > .glyphicon,
  67. > .ion {
  68. background: $gray-500;
  69. border-radius: 50%;
  70. font-size: 15px;
  71. height: 30px;
  72. left: 18px;
  73. line-height: 30px;
  74. position: absolute;
  75. text-align: center;
  76. top: 0;
  77. width: 30px;
  78. }
  79. }
  80. // Time label
  81. > .time-label {
  82. > span {
  83. @include border-radius(4px);
  84. background-color: $white;
  85. display: inline-block;
  86. font-weight: 600;
  87. padding: 5px;
  88. }
  89. }
  90. }
  91. .timeline-inverse {
  92. > li {
  93. > .timeline-item {
  94. @include box-shadow(none);
  95. background: $gray-100;
  96. border: 1px solid $gray-300;
  97. > .timeline-header {
  98. border-bottom-color: $gray-300;
  99. }
  100. }
  101. }
  102. }