timeline.less 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  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: 0px;
  15. bottom: 0;
  16. width: 5px;
  17. background: #ddd;
  18. left: 30px;
  19. border: 1px solid #eee;
  20. margin: 0;
  21. .border-radius(2px);
  22. }
  23. > li {
  24. position: relative;
  25. margin-right: 10px;
  26. margin-bottom: 15px;
  27. .clearfix();
  28. // The content
  29. > .timeline-item {
  30. margin-top: 10px;
  31. border: 0px solid #dfdfdf;
  32. background: #fff;
  33. color: #555;
  34. margin-left: 60px;
  35. margin-right: 15px;
  36. padding: 5px;
  37. position: relative;
  38. box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1);
  39. // The time and header
  40. > .time {
  41. color: #999;
  42. float: right;
  43. margin: 2px 0 0 0;
  44. }
  45. > .timeline-header {
  46. margin: 0;
  47. color: #555;
  48. border-bottom: 1px solid #f4f4f4;
  49. padding: 5px;
  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. // Time label
  62. &.time-label {
  63. > span {
  64. font-weight: 600;
  65. padding: 5px;
  66. display: inline-block;
  67. background-color: #fff;
  68. box-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
  69. .border-radius(4px);
  70. }
  71. }
  72. // The icons
  73. > .fa,
  74. > .glyphicon,
  75. > .ion {
  76. box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
  77. width: 30px;
  78. height: 30px;
  79. font-size: 15px;
  80. line-height: 30px;
  81. position: absolute;
  82. color: #666;
  83. background: #eee;
  84. border-radius: 50%;
  85. text-align: center;
  86. left: 18px;
  87. top: 0;
  88. }
  89. }
  90. }