timeline-component.css 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364
  1. .metro_tmtimeline {
  2. margin: 30px 0 0 0;
  3. padding: 0;
  4. list-style: none;
  5. position: relative;
  6. }
  7. /* The line */
  8. .metro_tmtimeline:before {
  9. content: '';
  10. position: absolute;
  11. top: 0;
  12. bottom: 0;
  13. width: 2px;
  14. background: #E5E5E5;
  15. left: 20%;
  16. margin-left: -6px;
  17. }
  18. /* The date/time */
  19. .metro_tmtimeline > li {
  20. position: relative;
  21. }
  22. /*----green-----*/
  23. .metro_tmtimeline > li.green .metro_tmicon, .metro_tmtimeline > li.green .metro_tmlabel {
  24. background: #74B749;
  25. }
  26. .metro_tmtimeline > li.green:nth-child(2n+1) .metro_tmlabel:after {
  27. border-right-color: #74B749;
  28. }
  29. .metro_tmtimeline > li.green .time {
  30. color: #74B749;
  31. }
  32. /*----purple----*/
  33. .metro_tmtimeline > li.purple .metro_tmicon, .metro_tmtimeline > li.purple .metro_tmlabel {
  34. background: #9D4A9C;
  35. }
  36. .metro_tmtimeline > li.purple:nth-child(2n+1) .metro_tmlabel:after, .metro_tmtimeline > li.purple .metro_tmlabel:after {
  37. border-right-color: #9D4A9C;
  38. border-color: transparent #9D4A9C transparent transparent;
  39. }
  40. .metro_tmtimeline > li.purple .time {
  41. color: #9D4A9C;
  42. }
  43. /*----red-----*/
  44. .metro_tmtimeline > li.red .metro_tmicon, .metro_tmtimeline > li.red .metro_tmlabel {
  45. background: #DE577B;
  46. }
  47. .metro_tmtimeline > li.red:nth-child(2n+1) .metro_tmlabel:after {
  48. border-right-color: #DE577B;
  49. }
  50. .metro_tmtimeline > li.red .time {
  51. color: #DE577B;
  52. }
  53. /*--------*/
  54. /*-----yellow----*/
  55. .metro_tmtimeline > li.yellow .metro_tmicon, .metro_tmtimeline > li.yellow .metro_tmlabel {
  56. background: #FFB400;
  57. }
  58. .metro_tmtimeline > li.yellow:nth-child(2n+1) .metro_tmlabel:after, .metro_tmtimeline > li.yellow .metro_tmlabel:after {
  59. border-right-color: #FFB400;
  60. border-color: transparent #FFB400 transparent transparent ;
  61. }
  62. .metro_tmtimeline > li.yellow .time {
  63. color: #FFB400;
  64. }
  65. /*----blue----*/
  66. .metro_tmtimeline > li.blue .metro_tmicon, .metro_tmtimeline > li.blue .metro_tmlabel {
  67. background: #5AA9ED;
  68. }
  69. .metro_tmtimeline > li.blue:nth-child(2n+1) .metro_tmlabel:after {
  70. border-right-color: #5AA9ED;
  71. }
  72. .metro_tmtimeline > li.blue .time {
  73. color: #5AA9ED;
  74. }
  75. /*----orange----*/
  76. .metro_tmtimeline > li.orange .metro_tmicon, .metro_tmtimeline > li.orange .metro_tmlabel {
  77. background: #F37B53;
  78. }
  79. .metro_tmtimeline > li.orange:nth-child(2n+1) .metro_tmlabel:after, .metro_tmtimeline > li.orange .metro_tmlabel:after {
  80. border-right-color: #F37B53;
  81. border-color: transparent #F37B53 transparent transparent ;
  82. }
  83. .metro_tmtimeline > li.orange .time {
  84. color: #F37B53;
  85. }
  86. /*----gray----*/
  87. .metro_tmtimeline > li.gray .metro_tmicon, .metro_tmtimeline > li.gray .metro_tmlabel {
  88. background: #cecece;
  89. }
  90. .metro_tmtimeline > li.gray:nth-child(2n+1) .metro_tmlabel:after {
  91. border-right-color: #cecece;
  92. }
  93. .metro_tmtimeline > li.gray .time {
  94. color: #cecece;
  95. }
  96. /*--------*/
  97. /*----Timeline box shadow-----*/
  98. .metro_tmtimeline > li.green .metro_tmicon {
  99. box-shadow: 0 0 0 5px rgba(116,183,73, 0.3);
  100. }
  101. .metro_tmtimeline > li.purple .metro_tmicon {
  102. box-shadow: 0 0 0 5px rgba(157,74,156, 0.3);
  103. }
  104. .metro_tmtimeline > li.red .metro_tmicon {
  105. box-shadow: 0 0 0 5px rgba(222,87,123, 0.3);
  106. }
  107. .metro_tmtimeline > li.yellow .metro_tmicon {
  108. box-shadow: 0 0 0 5px rgba(255,180,0, 0.3);
  109. }
  110. .metro_tmtimeline > li.blue .metro_tmicon {
  111. box-shadow: 0 0 0 5px rgba(90,169,237, 0.3);
  112. }
  113. .metro_tmtimeline > li.orange .metro_tmicon {
  114. box-shadow: 0 0 0 5px rgba(243,128,83, 0.3);
  115. }
  116. .metro_tmtimeline > li.gray .metro_tmicon {
  117. box-shadow: 0 0 0 5px rgba(192,192,192, 0.3);
  118. }
  119. /*--------*/
  120. .metro_tmtimeline > li .metro_tmtime {
  121. display: block;
  122. width: 15%;
  123. padding-right: 100px;
  124. position: absolute;
  125. }
  126. .metro_tmtimeline > li .metro_tmtime span {
  127. display: block;
  128. text-align: right;
  129. }
  130. .metro_tmtimeline > li .metro_tmtime span:first-child {
  131. font-size: 0.9em;
  132. color: #bdd0db;
  133. }
  134. .metro_tmtimeline > li .metro_tmtime span:last-child {
  135. font-size: 2.9em;
  136. }
  137. .metro_tmtime span {
  138. margin-bottom: 5px;
  139. }
  140. .metro_tmtime span.date {
  141. margin-top: -15px;
  142. }
  143. .metro_tmtime span.time {}
  144. /* Right content */
  145. .metro_tmtimeline > li .metro_tmlabel {
  146. margin: 0 0 15px 25%;
  147. /*background: #3594cb;*/
  148. color: #fff;
  149. padding: 2em;
  150. font-size: 1.2em;
  151. font-weight: 300;
  152. line-height: 1.4;
  153. position: relative;
  154. border-radius: 5px;
  155. }
  156. .metro_tmtimeline > li .metro_tmlabel h2 {
  157. margin-top: 0px;
  158. padding: 0 0 10px 0;
  159. border-bottom: 1px solid rgba(255,255,255,0.4);
  160. }
  161. /* The triangle */
  162. .metro_tmtimeline > li .metro_tmlabel:after {
  163. right: 100%;
  164. border: solid transparent;
  165. content: " ";
  166. height: 0;
  167. width: 0;
  168. position: absolute;
  169. pointer-events: none;
  170. /*border-right-color: #3594cb;*/
  171. border-width: 10px;
  172. top: 10px;
  173. }
  174. .metro_tmtimeline > li:nth-child(odd) .metro_tmlabel:after {
  175. /*border-right-color: #6cbfee;*/
  176. }
  177. /* The icons */
  178. .metro_tmtimeline > li .metro_tmicon {
  179. width: 40px;
  180. height: 40px;
  181. font-family: 'ecoico';
  182. speak: none;
  183. font-style: normal;
  184. font-weight: normal;
  185. font-variant: normal;
  186. text-transform: none;
  187. font-size: 1.4em;
  188. line-height: 40px;
  189. -webkit-font-smoothing: antialiased;
  190. position: absolute;
  191. color: #fff;
  192. /*background: #46a4da;*/
  193. border-radius: 50% !important;
  194. /*box-shadow: 0 0 0 5px #E5E5E5;*/
  195. text-align: center;
  196. left: 20%;
  197. top: 0;
  198. margin: 0 0 0 -25px;
  199. }
  200. .metro_tmicon-phone:before {
  201. content: "\e000";
  202. }
  203. .metro_tmicon-screen:before {
  204. content: "\e001";
  205. }
  206. .metro_tmicon-mail:before {
  207. content: "\e002";
  208. }
  209. .metro_tmicon-earth:before {
  210. content: "\e003";
  211. }
  212. /* Example Media Queries */
  213. @media screen and (max-width: 65.375em) {
  214. .metro_tmtimeline > li .metro_tmtime span:last-child {
  215. font-size: 1.5em;
  216. }
  217. .metro_tmtime span.date {
  218. margin-top: 0px;
  219. }
  220. }
  221. @media screen and (max-width: 47.2em) {
  222. .metro_tmtimeline:before {
  223. display: none;
  224. }
  225. .metro_tmtimeline > li .metro_tmtime {
  226. width: 100%;
  227. position: relative;
  228. padding: 0 0 20px 0;
  229. }
  230. .metro_tmtimeline > li .metro_tmtime span {
  231. text-align: left;
  232. }
  233. .metro_tmtimeline > li .metro_tmlabel {
  234. margin: 0 0 30px 0;
  235. padding: 1em;
  236. font-weight: 400;
  237. font-size: 95%;
  238. }
  239. .metro_tmtimeline > li.purple .metro_tmlabel:after {
  240. right: auto;
  241. left: 20px;
  242. border-right-color: transparent;
  243. border-bottom-color: #9D4A9C !important;
  244. top: -20px;
  245. }
  246. .metro_tmtimeline > li.green .metro_tmlabel:after {
  247. right: auto;
  248. left: 20px;
  249. border-right-color: transparent;
  250. border-bottom-color: #74B749 !important;
  251. top: -20px;
  252. }
  253. .metro_tmtimeline > li.green:nth-child(2n+1) .metro_tmlabel:after,
  254. .metro_tmtimeline > li.red:nth-child(2n+1) .metro_tmlabel:after,
  255. .metro_tmtimeline > li.blue:nth-child(2n+1) .metro_tmlabel:after,
  256. .metro_tmtimeline > li.gray:nth-child(2n+1) .metro_tmlabel:after{
  257. border-right-color: transparent;
  258. }
  259. .metro_tmtimeline > li.red .metro_tmlabel:after {
  260. right: auto;
  261. left: 20px;
  262. border-right-color: transparent;
  263. border-bottom-color: #DE577B !important;
  264. top: -20px;
  265. }
  266. .metro_tmtimeline > li.yellow .metro_tmlabel:after {
  267. right: auto;
  268. left: 20px;
  269. border-right-color: transparent;
  270. border-bottom-color: #FFB400 !important;
  271. top: -20px;
  272. }
  273. .metro_tmtimeline > li.blue .metro_tmlabel:after {
  274. right: auto;
  275. left: 20px;
  276. border-right-color: transparent;
  277. border-bottom-color: #5AA9ED !important;
  278. top: -20px;
  279. }
  280. .metro_tmtimeline > li.orange .metro_tmlabel:after {
  281. right: auto;
  282. left: 20px;
  283. border-right-color: transparent;
  284. border-bottom-color: #F37B53 !important;
  285. top: -20px;
  286. }
  287. .metro_tmtimeline > li.gray .metro_tmlabel:after {
  288. right: auto;
  289. left: 20px;
  290. border-right-color: transparent;
  291. border-bottom-color: #CECECE !important;
  292. top: -20px;
  293. }
  294. .metro_tmtimeline > li .metro_tmicon {
  295. position: relative;
  296. float: right;
  297. left: auto;
  298. margin: -55px 5px 0 0px;
  299. }
  300. .metro_tmtime span.date {
  301. margin-top: 0px;
  302. }
  303. }