_timeline.scss 1.9 KB

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