timeline.less 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  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. .border-radius(2px);
  21. }
  22. > li {
  23. position: relative;
  24. margin-right: 10px;
  25. margin-bottom: 15px;
  26. .clearfix();
  27. // The content
  28. > .timeline-item {
  29. .box-shadow(@box-boxshadow);
  30. .border-radius(@box-border-radius);
  31. margin-top: 0;
  32. background: #fff;
  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 @box-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. color: #666;
  71. background: @gray;
  72. border-radius: 50%;
  73. text-align: center;
  74. left: 18px;
  75. top: 0;
  76. }
  77. }
  78. // Time label
  79. > .time-label {
  80. > span {
  81. font-weight: 600;
  82. padding: 5px;
  83. display: inline-block;
  84. background-color: #fff;
  85. .border-radius(4px);
  86. }
  87. }
  88. }
  89. .timeline-inverse {
  90. > li {
  91. > .timeline-item {
  92. background: #f0f0f0;
  93. border: 1px solid #ddd;
  94. .box-shadow(none);
  95. > .timeline-header {
  96. border-bottom-color: #ddd;
  97. }
  98. }
  99. }
  100. }