timeline.css 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323
  1. /***
  2. Timeline UI Base
  3. ***/
  4. .timeline {
  5. margin: 0 0 0 0;
  6. padding: 0;
  7. list-style: none;
  8. position: relative;
  9. }
  10. /* The line */
  11. .timeline:before {
  12. content: '';
  13. position: absolute;
  14. top: 0;
  15. bottom: 0;
  16. width: 10px;
  17. background: #ccc;
  18. left: 20%;
  19. margin-left: -10px;
  20. }
  21. .timeline > li {
  22. position: relative;
  23. }
  24. /* The date/time */
  25. .timeline > li .timeline-time {
  26. display: block;
  27. width: 15%;
  28. padding-right: 100px;
  29. position: absolute;
  30. }
  31. .timeline > li .timeline-time span {
  32. display: block;
  33. text-align: right;
  34. }
  35. .timeline > li .timeline-time span.date {
  36. font-size: 12px;
  37. color: #bdd0db;
  38. display: block;
  39. margin-bottom: 5px;
  40. font-weight: 300;
  41. }
  42. .timeline > li .timeline-time span.time {
  43. font-weight: 300;
  44. font-size: 36px;
  45. }
  46. /* Right content */
  47. .timeline > li .timeline-body {
  48. margin: 0 0 15px 25%;
  49. color: #fff;
  50. padding: 10px;
  51. font-weight: 300;
  52. position: relative;
  53. border-radius: 5px;
  54. }
  55. .timeline > li .timeline-body h2 {
  56. margin-top: 0px;
  57. padding: 0 0 5px 0;
  58. border-bottom: 1px solid rgba(255,255,255,0.3);
  59. font-size: 24px;
  60. }
  61. .timeline > li .timeline-content {
  62. font-size: 14px;
  63. }
  64. .ie8 .timeline > li .timeline-body h2 {
  65. border-bottom: 1px solid #eee;
  66. }
  67. .timeline > li .timeline-body img.timeline-img {
  68. width: 75px;
  69. height: 75px;
  70. margin: 5px 10px 0 0px;
  71. }
  72. .timeline > li .timeline-body img.pull-right {
  73. margin-left: 10px;
  74. }
  75. .timeline > li .timeline-body a.nav-link {
  76. display: inline-block;
  77. margin-top: 10px;
  78. color: #fff;
  79. font-size: 14px;
  80. padding: 0px;
  81. text-align: left;
  82. text-decoration: none;
  83. }
  84. .timeline > li .timeline-body a.nav-link:hover {
  85. opacity: 0.5;
  86. filter: alpha(opacity=50);
  87. }
  88. .timeline > li .timeline-body .btn {
  89. margin-top: 10px;
  90. }
  91. /* The triangle */
  92. .timeline > li .timeline-body:after {
  93. right: 100%;
  94. border: solid transparent;
  95. content: " ";
  96. height: 0;
  97. width: 0;
  98. position: absolute;
  99. pointer-events: none;
  100. border-right-color: #3594cb;
  101. border-width: 10px;
  102. top: 19px;
  103. }
  104. .timeline > li .timeline-content:after,
  105. .timeline > li .timeline-content:before {
  106. display: table;
  107. line-height: 0;
  108. content: "";
  109. }
  110. .timeline > li .timeline-content:after {
  111. clear: both;
  112. }
  113. .timeline >li .timeline-footer:after,
  114. .timeline >li .timeline-footer:before {
  115. content: "";
  116. display: table;
  117. line-height: 0;
  118. }
  119. .timeline >li .timeline-footer:after {
  120. clear: both;
  121. }
  122. /* The icons */
  123. .timeline > li .timeline-icon {
  124. width: 40px;
  125. height: 40px;
  126. speak: none;
  127. font-style: normal;
  128. font-weight: normal;
  129. font-variant: normal;
  130. text-transform: none;
  131. font-size: 1.4em;
  132. line-height: 40px;
  133. -webkit-font-smoothing: antialiased;
  134. position: absolute;
  135. color: #fff;
  136. background: #aaa;
  137. border-radius: 50%;
  138. box-shadow: 0 0 0 8px #ccc;
  139. text-align: center;
  140. left: 20%;
  141. top: 0;
  142. margin: 5px 0 0 -27px;
  143. padding-bottom: 3px;
  144. padding-right: 1px;
  145. padding-left: 2px;
  146. -webkit-border-radius: 30px !important;
  147. -moz-border-radius: 30px !important;
  148. border-radius: 30px !important;
  149. }
  150. /* Red */
  151. .timeline li.timeline-red .timeline-body:after {
  152. border-right-color: #e02222;
  153. }
  154. .timeline li.timeline-red .timeline-body {
  155. background: #e02222;
  156. }
  157. .timeline li.timeline-red .timeline-time span.time {
  158. color: #e02222;
  159. }
  160. /* Yellow */
  161. .timeline li.timeline-yellow .timeline-body:after {
  162. border-right-color: #ffb848;
  163. }
  164. .timeline li.timeline-yellow .timeline-body {
  165. background: #ffb848;
  166. }
  167. .timeline li.timeline-yellow .timeline-time span.time {
  168. color: #ffb848;
  169. }
  170. /* Green */
  171. .timeline li.timeline-green .timeline-body:after {
  172. border-right-color: #35aa47;
  173. }
  174. .timeline li.timeline-green .timeline-body {
  175. background: #35aa47;
  176. }
  177. .timeline li.timeline-green .timeline-time span.time {
  178. color: #35aa47;
  179. }
  180. /* Blue */
  181. .timeline li.timeline-blue .timeline-body:after {
  182. border-right-color: #4b8df8;
  183. }
  184. .timeline li.timeline-blue .timeline-body {
  185. background: #4b8df8;
  186. }
  187. .timeline li.timeline-blue .timeline-time span.time {
  188. color: #4b8df8;
  189. }
  190. /* Purple */
  191. .timeline li.timeline-purple .timeline-body:after {
  192. border-right-color: #852b99;
  193. }
  194. .timeline li.timeline-purple .timeline-body {
  195. background: #852b99;
  196. }
  197. .timeline li.timeline-purple .timeline-time span.time {
  198. color: #852b99;
  199. }
  200. /* Grey */
  201. .timeline li.timeline-grey .timeline-body:after {
  202. border-right-color: #555555;
  203. }
  204. .timeline li.timeline-grey .timeline-body {
  205. background: #555555;
  206. }
  207. .timeline li.timeline-grey .timeline-time span.time {
  208. color: #555555;
  209. }
  210. @media (max-width: 767px) {
  211. timeline > li .timeline-time span.time {
  212. font-size: 18px;
  213. }
  214. .timeline:before {
  215. display: none;
  216. }
  217. .timeline > li .timeline-time {
  218. width: 100%;
  219. position: relative;
  220. padding: 0 0 20px 0;
  221. }
  222. .timeline > li .timeline-time span {
  223. text-align: left;
  224. }
  225. .timeline > li .timeline-body {
  226. margin: 0 0 30px 0;
  227. padding: 1em;
  228. }
  229. .timeline > li .timeline-body:after {
  230. right: auto;
  231. left: 20px;
  232. top: -20px;
  233. }
  234. .timeline > li .timeline-icon {
  235. position: relative;
  236. float: right;
  237. left: auto;
  238. margin: -55px 5px 0 0px;
  239. }
  240. /*colors*/
  241. .timeline li.timeline-red .timeline-body:after {
  242. border-right-color: transparent;
  243. border-bottom-color: #e02222;
  244. }
  245. .timeline li.timeline-blue .timeline-body:after {
  246. border-right-color: transparent;
  247. border-bottom-color: #4b8df8;
  248. }
  249. .timeline li.timeline-green .timeline-body:after {
  250. border-right-color: transparent;
  251. border-bottom-color: #35aa47;
  252. }
  253. .timeline li.timeline-yellow .timeline-body:after {
  254. border-right-color: transparent;
  255. border-bottom-color: #ffb848;
  256. }
  257. .timeline li.timeline-purple .timeline-body:after {
  258. border-right-color: transparent;
  259. border-bottom-color: #852b99;
  260. }
  261. .timeline li.timeline-grey .timeline-body:after {
  262. border-right-color: transparent;
  263. border-bottom-color: #555555;
  264. }
  265. }