timeline.scss 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  1. @import '_variables';
  2. .timeline-container {
  3. @include panel(100%, 600px);
  4. }
  5. .timeline {
  6. background-color: var(--bg_panel);
  7. > div:not(:first-child) {
  8. border-top: 1px solid var(--border_grey);
  9. }
  10. }
  11. .timeline-header {
  12. width: 100%;
  13. background-color: var(--bg_panel);
  14. text-align: center;
  15. padding: 8px;
  16. display: block;
  17. font-weight: bold;
  18. margin-bottom: 5px;
  19. box-sizing: border-box;
  20. button {
  21. float: unset;
  22. }
  23. }
  24. .timeline-banner img {
  25. width: 100%;
  26. }
  27. .timeline-description {
  28. font-weight: normal;
  29. }
  30. .tab {
  31. align-items: center;
  32. display: flex;
  33. flex-wrap: wrap;
  34. list-style: none;
  35. margin: 0 0 5px 0;
  36. background-color: var(--bg_panel);
  37. padding: 0;
  38. }
  39. .tab-item {
  40. flex: 1 1 0;
  41. text-align: center;
  42. margin-top: 0;
  43. a {
  44. border-bottom: .1rem solid transparent;
  45. color: var(--tab);
  46. display: block;
  47. padding: 8px 0;
  48. text-decoration: none;
  49. font-weight: bold;
  50. &:hover {
  51. text-decoration: none;
  52. }
  53. &.active {
  54. border-bottom-color: var(--tab_selected);
  55. color: var(--tab_selected);
  56. }
  57. }
  58. &.active a {
  59. border-bottom-color: var(--tab_selected);
  60. color: var(--tab_selected);
  61. }
  62. &.wide {
  63. flex-grow: 1.2;
  64. }
  65. }
  66. .timeline-footer {
  67. background-color: var(--bg_panel);
  68. padding: 6px 0;
  69. }
  70. .timeline-protected {
  71. text-align: center;
  72. p {
  73. margin: 8px 0;
  74. }
  75. h2 {
  76. color: var(--accent);
  77. font-size: 20px;
  78. font-weight: 600;
  79. }
  80. }
  81. .timeline-none {
  82. color: var(--accent);
  83. font-size: 20px;
  84. font-weight: 600;
  85. text-align: center;
  86. }
  87. .timeline-end {
  88. background-color: var(--bg_panel);
  89. color: var(--accent);
  90. font-size: 16px;
  91. font-weight: 600;
  92. text-align: center;
  93. }
  94. .show-more {
  95. background-color: var(--bg_panel);
  96. text-align: center;
  97. padding: .75em 0;
  98. display: block !important;
  99. a {
  100. background-color: var(--darkest_grey);
  101. display: inline-block;
  102. height: 2em;
  103. padding: 0 2em;
  104. line-height: 2em;
  105. &:hover {
  106. background-color: var(--darker_grey);
  107. }
  108. }
  109. }
  110. .top-ref {
  111. background-color: var(--bg_color);
  112. border-top: none !important;
  113. .icon-down {
  114. font-size: 20px;
  115. display: flex;
  116. justify-content: center;
  117. text-decoration: none;
  118. &:hover {
  119. color: var(--accent_light);
  120. }
  121. &::before {
  122. transform: rotate(180deg) translateY(-1px);
  123. }
  124. }
  125. }
  126. .timeline-item {
  127. overflow-wrap: break-word;
  128. border-left-width: 0;
  129. min-width: 0;
  130. padding: .75em;
  131. display: flex;
  132. position: relative;
  133. }