timeline.css 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302
  1. body{
  2. margin-top:20px;
  3. background:#eee;
  4. }
  5. .timeline {
  6. list-style-type: none;
  7. margin: 0;
  8. padding: 0;
  9. position: relative
  10. }
  11. .timeline:before {
  12. content: '';
  13. position: absolute;
  14. top: 5px;
  15. bottom: 5px;
  16. width: 5px;
  17. background: #2d353c;
  18. left: 20%;
  19. margin-left: -2.5px
  20. }
  21. .timeline>li {
  22. position: relative;
  23. min-height: 50px;
  24. padding: 20px 0
  25. }
  26. .timeline .timeline-time {
  27. position: absolute;
  28. left: 0;
  29. width: 18%;
  30. text-align: right;
  31. top: 30px
  32. }
  33. .timeline .timeline-time .date,
  34. .timeline .timeline-time .time {
  35. display: block;
  36. font-weight: 600
  37. }
  38. .timeline .timeline-time .date {
  39. line-height: 16px;
  40. font-size: 12px
  41. }
  42. .timeline .timeline-time .time {
  43. line-height: 24px;
  44. font-size: 20px;
  45. color: #242a30
  46. }
  47. .timeline .timeline-icon {
  48. left: 15%;
  49. position: absolute;
  50. width: 10%;
  51. text-align: center;
  52. top: 40px
  53. }
  54. .timeline .timeline-icon a {
  55. text-decoration: none;
  56. width: 20px;
  57. height: 20px;
  58. display: inline-block;
  59. border-radius: 20px;
  60. background: #d9e0e7;
  61. line-height: 10px;
  62. color: #fff;
  63. font-size: 14px;
  64. border: 5px solid #2d353c;
  65. transition: border-color .2s linear
  66. }
  67. .timeline .timeline-body {
  68. margin-left: 23%;
  69. margin-right: 17%;
  70. background: #fff;
  71. position: relative;
  72. padding: 20px 25px;
  73. border-radius: 6px;
  74. }
  75. .timeline .timeline-body:before {
  76. content: '';
  77. display: block;
  78. position: absolute;
  79. border: 10px solid transparent;
  80. border-right-color: #fff;
  81. left: -20px;
  82. top: 20px
  83. }
  84. .timeline .timeline-body>div+div {
  85. margin-top: 15px
  86. }
  87. .timeline .timeline-body>div+div:last-child {
  88. margin-bottom: -20px;
  89. padding-bottom: 20px;
  90. border-radius: 0 0 6px 6px
  91. }
  92. .timeline-header {
  93. padding-bottom: 10px;
  94. border-bottom: 1px solid #e2e7eb;
  95. line-height: 30px
  96. }
  97. .timeline-header .userimage {
  98. float: left;
  99. width: 34px;
  100. height: 34px;
  101. border-radius: 40px;
  102. overflow: hidden;
  103. margin: -2px 10px -2px 0
  104. }
  105. .timeline-header .username {
  106. font-size: 16px;
  107. font-weight: 600
  108. }
  109. .timeline-header .username,
  110. .timeline-header .username a {
  111. color: #2d353c
  112. }
  113. .timeline img {
  114. max-width: 100%;
  115. display: block
  116. }
  117. .timeline-content {
  118. letter-spacing: .25px;
  119. line-height: 18px;
  120. font-size: 13px
  121. }
  122. .timeline-content:after,
  123. .timeline-content:before {
  124. content: '';
  125. display: table;
  126. clear: both
  127. }
  128. .timeline-title {
  129. margin-top: 0
  130. }
  131. .timeline-footer {
  132. background: #fff;
  133. border-top: 1px solid #e2e7ec;
  134. padding-top: 15px
  135. }
  136. .timeline-footer a:not(.btn) {
  137. color: #575d63
  138. }
  139. .timeline-footer a:not(.btn):focus,
  140. .timeline-footer a:not(.btn):hover {
  141. color: #2d353c
  142. }
  143. .timeline-likes {
  144. color: #6d767f;
  145. font-weight: 600;
  146. font-size: 12px
  147. }
  148. .timeline-likes .stats-right {
  149. float: right
  150. }
  151. .timeline-likes .stats-total {
  152. display: inline-block;
  153. line-height: 20px
  154. }
  155. .timeline-likes .stats-icon {
  156. float: left;
  157. margin-right: 5px;
  158. font-size: 9px
  159. }
  160. .timeline-likes .stats-icon+.stats-icon {
  161. margin-left: -2px
  162. }
  163. .timeline-likes .stats-text {
  164. line-height: 20px
  165. }
  166. .timeline-likes .stats-text+.stats-text {
  167. margin-left: 15px
  168. }
  169. .timeline-comment-box {
  170. background: #f2f3f4;
  171. margin-left: -25px;
  172. margin-right: -25px;
  173. padding: 20px 25px
  174. }
  175. .timeline-comment-box .user {
  176. float: left;
  177. width: 34px;
  178. height: 34px;
  179. overflow: hidden;
  180. border-radius: 30px
  181. }
  182. .timeline-comment-box .user img {
  183. max-width: 100%;
  184. max-height: 100%
  185. }
  186. .timeline-comment-box .user+.input {
  187. margin-left: 44px
  188. }
  189. .lead {
  190. margin-bottom: 20px;
  191. font-size: 21px;
  192. font-weight: 300;
  193. line-height: 1.4;
  194. }
  195. .text-danger, .text-red {
  196. color: #ff5b57!important;
  197. }
  198. .highlight {
  199. background-color: yellow;
  200. }
  201. .timeline .timeline-icon span {
  202. text-decoration: none;
  203. width: 70px;
  204. height: 30px;
  205. display: inline-block;
  206. border-radius: 50px;
  207. background: #ffffff;
  208. line-height: 20px;
  209. color: #732828;
  210. font-size: 18px;
  211. font-weight: 800;
  212. border: 5px solid #2d353c;
  213. transition: border-color .2s linear;
  214. }
  215. #anni {
  216. max-height: 400px;
  217. overflow: auto;
  218. position: sticky;
  219. top: 100px;
  220. z-index: 1020;
  221. border: 1px solid #dee2e6;
  222. border-radius: 20px;
  223. }
  224. #anni ul {
  225. list-style-type: none;
  226. scroll-snap-type: y mandatory;
  227. padding-left: 0;
  228. text-align: center;
  229. }
  230. .anno {
  231. scroll-snap-align: start;
  232. }
  233. #anni .btn:hover {
  234. font-size: 36px;
  235. }
  236. .timeline-content div[type='ref']{
  237. max-height: 100px;
  238. overflow: auto;
  239. }
  240. #anni h3 {
  241. text-align: center;
  242. color: #b61924;
  243. font-weight: 400;
  244. }
  245. #lemma_buttons {
  246. margin-bottom: 20px;
  247. }
  248. #lemma_buttons button {
  249. color: #30383f;
  250. font-size: 15px;
  251. }
  252. #lemma_buttons button .fa {
  253. margin-right: 5px;
  254. }