component.css 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. .cbp_tmtimeline {
  2. margin: 30px 0 0 0;
  3. padding: 0;
  4. list-style: none;
  5. position: relative;
  6. }
  7. /* The line */
  8. .cbp_tmtimeline:before {
  9. content: '';
  10. position: absolute;
  11. top: 0;
  12. bottom: 0;
  13. width: 10px;
  14. background: #e5e5e5;
  15. left: 20%;
  16. margin-left: -10px;
  17. }
  18. /* The date/time */
  19. .cbp_tmtimeline > li .cbp_tmtime {
  20. display: block;
  21. width: 25%;
  22. padding-right: 100px;
  23. position: absolute;
  24. }
  25. .cbp_tmtimeline > li .cbp_tmtime span {
  26. display: block;
  27. text-align: right;
  28. }
  29. .cbp_tmtimeline > li .cbp_tmtime span:first-child {
  30. font-size: 0.9em;
  31. color: inherit;
  32. }
  33. .cbp_tmtimeline > li .cbp_tmtime span:last-child {
  34. font-size: 2.9em;
  35. color: #333;
  36. }
  37. .cbp_tmtimeline > li:nth-child(odd) .cbp_tmtime span:last-child {
  38. color: #333;
  39. }
  40. /* Right content */
  41. .cbp_tmtimeline > li .cbp_tmlabel {
  42. margin: 0 0 15px 25%;
  43. padding: 2em;
  44. line-height: 1.4;
  45. position: relative;
  46. border-radius: 0px;
  47. border: 1px solid #e5e5e5;
  48. }
  49. .cbp_tmtimeline > li:nth-child(odd) .cbp_tmlabel {
  50. border-radius: 0px;
  51. border: 1px solid #e5e5e5;
  52. }
  53. .cbp_tmtimeline > li .cbp_tmlabel h2 {
  54. margin-top: 0px;
  55. padding: 0 0 10px 0;
  56. border-bottom: 1px solid rgba(255,255,255,0.4);
  57. }
  58. /* The triangle */
  59. .cbp_tmtimeline > li .cbp_tmlabel:after {
  60. right: 100%;
  61. border: solid transparent;
  62. content: " ";
  63. height: 0;
  64. width: 0;
  65. position: absolute;
  66. pointer-events: none;
  67. border-right-color: #e5e5e5;
  68. border-width: 10px;
  69. top: 10px;
  70. }
  71. .cbp_tmtimeline > li:nth-child(odd) .cbp_tmlabel:after {
  72. border-right-color: #e5e5e5;
  73. }
  74. /* The icons */
  75. .cbp_tmtimeline > li .cbp_tmicon {
  76. width: 40px;
  77. height: 40px;
  78. font-family: 'ecoico';
  79. speak: none;
  80. font-style: normal;
  81. font-weight: normal;
  82. font-variant: normal;
  83. text-transform: none;
  84. font-size: 1.4em;
  85. line-height: 40px;
  86. -webkit-font-smoothing: antialiased;
  87. position: absolute;
  88. color: #fff;
  89. background: #e14d43;
  90. border-radius: 50%;
  91. box-shadow: 0 0 0 8px #e5e5e5;
  92. text-align: center;
  93. left: 20%;
  94. top:20;
  95. margin: 0 0 0 -25px;
  96. }
  97. /* Example Media Queries */
  98. @media screen and (max-width: 65.375em) {
  99. .cbp_tmtimeline > li .cbp_tmtime span:last-child {
  100. font-size: 1.5em;
  101. }
  102. }
  103. @media screen and (max-width: 47.2em) {
  104. .cbp_tmtimeline:before {
  105. display: none;
  106. }
  107. .cbp_tmtimeline > li .cbp_tmtime {
  108. width: 100%;
  109. position: relative;
  110. padding: 0 0 20px 0;
  111. }
  112. .cbp_tmtimeline > li .cbp_tmtime span {
  113. text-align: left;
  114. }
  115. .cbp_tmtimeline > li .cbp_tmlabel {
  116. margin: 0 0 30px 0;
  117. padding: 1em;
  118. font-weight: 400;
  119. font-size: 95%;
  120. }
  121. .cbp_tmtimeline > li .cbp_tmlabel:after {
  122. right: auto;
  123. left: 20px;
  124. border-right-color: transparent;
  125. border-bottom-color: #3594cb;
  126. top: -20px;
  127. }
  128. .cbp_tmtimeline > li:nth-child(odd) .cbp_tmlabel:after {
  129. border-right-color: transparent;
  130. border-bottom-color: #6cbfee;
  131. }
  132. .cbp_tmtimeline > li .cbp_tmicon {
  133. position: relative;
  134. float: right;
  135. left: auto;
  136. margin: -55px 5px 0 0px;
  137. }
  138. }