page.timeline.less 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277
  1. .enable_timeline() when(@enable-timeline = true) {
  2. .timeline-container {
  3. position:relative;
  4. padding-top:4px;
  5. margin-bottom:32px;
  6. &:last-child {
  7. margin-bottom:0;
  8. }
  9. &:before {
  10. /* the vertical line running through icons */
  11. content:"";
  12. display:block;
  13. position:absolute;
  14. left:28px;
  15. top:0;
  16. bottom:0;
  17. border:1px solid #E2E3E7;
  18. background-color:#E7EAEF;
  19. width:4px;
  20. border-width:0 1px;
  21. }
  22. &:first-child:before {
  23. border-top-width:1px;
  24. }
  25. &:last-child:before {
  26. border-bottom-width: 1px;
  27. }
  28. }
  29. .timeline-item {
  30. position:relative;
  31. margin-bottom:8px;
  32. .widget-box {
  33. background-color:#F2F6F9;
  34. color:#595C66;
  35. }
  36. .transparent.widget-box {
  37. border-left:3px solid #DAE1E5;
  38. }
  39. .transparent {
  40. .widget-header {
  41. background-color: #ECF1F4;
  42. border-bottom-width: 0;
  43. > .widget-title {
  44. margin-left: 8px;
  45. }
  46. }
  47. }
  48. &:nth-child(even) .widget-box {
  49. background-color:#F3F3F3;
  50. color:#616161;
  51. &.transparent {
  52. border-left-color:#DBDBDB !important;
  53. .widget-header {
  54. background-color:#EEE !important;
  55. }
  56. }
  57. }
  58. }
  59. .timeline-item {
  60. .widget-box {
  61. margin: 0;
  62. position: relative;
  63. max-width: none;
  64. //border-bottom-width: 0;
  65. margin-left: 60px;
  66. }
  67. .widget-main {
  68. margin: 0;
  69. position: relative;
  70. max-width: none;
  71. border-bottom-width: 0;
  72. }
  73. .widget-body {
  74. background-color: transparent;
  75. }
  76. .widget-toolbox {
  77. padding: 4px 8px 0 !important;
  78. background-color: transparent !important;
  79. border-width: 0 !important;
  80. margin: 0 0px !important;
  81. }
  82. }
  83. .timeline-info {
  84. float:left;
  85. width:60px;
  86. text-align:center;
  87. position:relative;
  88. img {
  89. border-radius:100%;
  90. max-width:42px;
  91. }
  92. .label , .badge {
  93. font-size: @font-size-timeline-badge;
  94. }
  95. }
  96. .timeline-container:not(.timeline-style2) .timeline-indicator {
  97. opacity: 1;
  98. border-radius: 100%;
  99. display: inline-block;
  100. font-size: @font-size-timeline-icon;
  101. height: 36px;
  102. line-height: 30px;
  103. width: 36px;
  104. text-align: center;
  105. text-shadow: none !important;
  106. padding:0;
  107. cursor:default;
  108. border:3px solid #FFF !important;
  109. }
  110. .timeline-label {
  111. display:block;
  112. clear:both;
  113. margin:0 0 18px;
  114. margin-left:34px;
  115. }
  116. .timeline-item img {
  117. border: 1px solid #AAA;
  118. padding: 2px;
  119. background-color: #FFF;
  120. }
  121. .enable_timeline_style_2() when (@enable-timeline-style-2 = true) {
  122. .timeline-style2 {
  123. &:before {
  124. display:none;
  125. }
  126. .timeline-item {
  127. padding-bottom:22px;
  128. margin-bottom:0;
  129. &:last-child {
  130. padding-bottom:0;
  131. }
  132. &:before {
  133. content:"";
  134. display:block;
  135. position:absolute;
  136. left:90px; top:5px; bottom:-5px;
  137. border-width:0;
  138. background-color:#DDD;
  139. width:2px;
  140. max-width:2px;
  141. }
  142. &:last-child:before {
  143. display:none;
  144. }
  145. &:first-child:before {
  146. display:block;
  147. }
  148. }
  149. }
  150. .timeline-style2 {
  151. .timeline-item .transparent .widget-header {
  152. background-color:transparent !important;
  153. }
  154. .timeline-item .transparent.widget-box {
  155. background-color:transparent !important;
  156. border-left:none !important;
  157. }
  158. .timeline-info {
  159. width:100px;
  160. }
  161. .timeline-indicator {
  162. font-size: 0;
  163. height: 12px;
  164. line-height: 12px;
  165. width: 12px;
  166. border-width: 1px !important;
  167. background-color: #FFFFFF !important;
  168. position:absolute;
  169. left:85px; top:3px;
  170. opacity:1;
  171. border-radius: 100%;
  172. display: inline-block;
  173. padding:0;
  174. }
  175. .timeline-date {
  176. display:inline-block;
  177. width:72px;
  178. text-align:right;
  179. margin-right:25px;
  180. color:#777;
  181. }
  182. .timeline-item .widget-box {
  183. margin-left:112px;
  184. }
  185. .timeline-label {
  186. width: 75px;
  187. text-align: center;
  188. margin-left: 0;
  189. margin-bottom: 10px;
  190. text-align: right;
  191. color: #666;
  192. font-size: @font-size-timeline-style2-label;
  193. }
  194. }
  195. }
  196. .enable_timeline_style_2();
  197. .timeline-time {
  198. text-align:center;
  199. position:static;
  200. }
  201. }
  202. .enable_timeline();