timeline.less 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. /*
  2. Component: timeline
  3. --------------------
  4. */
  5. .timeline{
  6. margin: 0 0 30px 0;
  7. padding: 0;
  8. list-style: none;
  9. // The line
  10. &:before {
  11. content: '';
  12. position: absolute;
  13. top: 0px;
  14. bottom: 0;
  15. width: 5px;
  16. background: #ddd;
  17. left: 45px;
  18. border: 1px solid #eee;
  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. margin-top: 10px;
  30. border: 0px solid #dfdfdf;
  31. background: #fff;
  32. color: #555;
  33. margin-left: 60px;
  34. margin-right: 15px;
  35. padding: 5px;
  36. position: relative;
  37. box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1);
  38. // The time and header
  39. > .time {
  40. color: #999;
  41. float: right;
  42. margin: 2px 0 0 0;
  43. }
  44. > .timeline-header {
  45. margin: 0;
  46. color: #555;
  47. border-bottom: 1px solid #f4f4f4;
  48. padding: 5px;
  49. font-size: 16px;
  50. line-height: 1.1;
  51. > a {
  52. font-weight: 600;
  53. }
  54. }
  55. // Item body and footer
  56. > .timeline-body, > .timeline-footer {
  57. padding: 10px;
  58. }
  59. }
  60. // Time label
  61. &.time-label {
  62. > span {
  63. font-weight: 600;
  64. padding: 5px;
  65. display: inline-block;
  66. background-color: #fff;
  67. box-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
  68. .border-radius(4px);
  69. }
  70. }
  71. // The icons
  72. > .fa,
  73. > .glyphicon,
  74. > .ion {
  75. box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
  76. width: 30px;
  77. height: 30px;
  78. font-size: 15px;
  79. line-height: 30px;
  80. position: absolute;
  81. color: #666;
  82. background: #eee;
  83. border-radius: 50%;
  84. text-align: center;
  85. left: 18px;
  86. top: 0;
  87. }
  88. }
  89. }