_timeline.scss 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. /*
  2. * Component: Timeline
  3. * -------------------
  4. */
  5. .timeline {
  6. list-style: none;
  7. margin: 0 0 30px 0;
  8. padding: 0;
  9. position: relative;
  10. // The line
  11. &::before {
  12. @include border-radius($border-radius);
  13. background: $gray-300;
  14. bottom: 0;
  15. content: '';
  16. left: 31px;
  17. margin: 0;
  18. position: absolute;
  19. top: 0;
  20. width: 4px;
  21. }
  22. > li {
  23. @include clearfix;
  24. margin-bottom: 15px;
  25. margin-right: 10px;
  26. position: relative;
  27. // The content
  28. > .timeline-item {
  29. @include box-shadow($card-shadow);
  30. @include border-radius($border-radius);
  31. background: $white;
  32. color: #444;
  33. margin-left: 60px;
  34. margin-right: 15px;
  35. margin-top: 0;
  36. padding: 0;
  37. position: relative;
  38. // The time and header
  39. > .time {
  40. color: #999;
  41. float: right;
  42. font-size: 12px;
  43. padding: 10px;
  44. }
  45. > .timeline-header {
  46. border-bottom: 1px solid $card-border-color;
  47. color: #555;
  48. font-size: 16px;
  49. line-height: 1.1;
  50. margin: 0;
  51. padding: 10px;
  52. > a {
  53. font-weight: 600;
  54. }
  55. }
  56. // Item body and footer
  57. > .timeline-body, > .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. }