viewer.css 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214
  1. @import url('https://fonts.googleapis.com/css?family=Lato:400,900');
  2. html {
  3. font-family: 'Lato', sans-serif;
  4. }
  5. body {
  6. padding: 0;
  7. margin: 0;
  8. }
  9. #slack-archive-viewer {
  10. padding: 0;
  11. margin: 0;
  12. height: 100vh;
  13. overflow: hidden;
  14. }
  15. #sidebar {
  16. display: inline-block;
  17. width: 280px;
  18. color: white;
  19. text-align: left;
  20. background-color: #4D394B;
  21. z-index: 10;
  22. overflow-y: scroll;
  23. overflow-x: auto;
  24. height: 100vh;
  25. user-select: none;
  26. }
  27. #sidebar a {
  28. color: white;
  29. font-size: 14px;
  30. }
  31. #sidebar h3 {
  32. margin: 20px 20px;
  33. color: white;
  34. font-weight: 900;
  35. }
  36. #sidebar h3:hover {
  37. cursor: pointer;
  38. }
  39. #sidebar h3::after {
  40. content: '❯ ';
  41. display: inline-block;
  42. -webkit-transform: rotate(90deg);
  43. transform: rotate(90deg);
  44. margin-left: 15px;
  45. }
  46. #sidebar h3.arrow::after {
  47. margin-left: 10px;
  48. -webkit-transform: none;
  49. transform: none;
  50. }
  51. .messages {
  52. width: calc(100vw - 325px);
  53. height: 100vh;
  54. text-align: left;
  55. display: inline-block;
  56. padding-left: 20px;
  57. padding-right: 20px;
  58. overflow-y: scroll;
  59. }
  60. .message-container {
  61. clear: left;
  62. min-height: 56px; // height of image plus 20px padding
  63. }
  64. .message-container:first-child {
  65. margin-top: 20px;
  66. }
  67. .message-container:last-child {
  68. margin-bottom: 20px;
  69. }
  70. .message-container .user_icon {
  71. background-color: rgb(248, 244, 240);
  72. width: 36px;
  73. height: 36px;
  74. border-radius: 0.2em;
  75. display: inline-block;
  76. vertical-align: top;
  77. margin-right: 0.65em;
  78. float: left;
  79. }
  80. .message-container .time {
  81. display: inline-block;
  82. color: rgb(200, 200, 200);
  83. margin-left: 0.5em;
  84. }
  85. .message-container .username {
  86. display: inline-block;
  87. font-weight: 600;
  88. line-height: 1;
  89. }
  90. .message-container .user-email {
  91. font-weight: normal;
  92. font-style: italic;
  93. }
  94. .message-container .message {
  95. display: inline-block;
  96. vertical-align: top;
  97. line-height: 1;
  98. width: calc(100% - 3em);
  99. }
  100. .message-container .msg p {
  101. white-space: pre-wrap;
  102. }
  103. .message-container .msg pre {
  104. background-color: #E6E5DF;
  105. white-space: pre-wrap;
  106. }
  107. .message-container .message .msg {
  108. line-height: 1.5;
  109. }
  110. .message-container .message .msg a {
  111. overflow-wrap: anywhere;
  112. }
  113. .message-container .message-attachment {
  114. padding-left: 5px;
  115. border-left: 2px gray solid;
  116. overflow-wrap: anywhere;
  117. }
  118. .message-container .message-attachment .service-name {
  119. color: #999999;
  120. }
  121. .message-container .icon {
  122. max-width: 10px;
  123. }
  124. .channel_join .msg, .channel_topic .msg,
  125. .bot_add .msg, .app_conversation_join .msg {
  126. font-style: italic;
  127. }
  128. .attachment-footer {
  129. font-size: small;
  130. }
  131. .list {
  132. margin: 0;
  133. padding: 0;
  134. list-style-type: none;
  135. }
  136. .list li {
  137. padding: 4px 20px;
  138. }
  139. .list li a {
  140. width: 100%;
  141. padding: 10px 20px;
  142. }
  143. .list li.active {
  144. background-color: #4C9689;
  145. }
  146. .list li.active:hover {
  147. background-color: #4C9689;
  148. }
  149. .list li:hover {
  150. text-decoration: none;
  151. background: #3E313C;
  152. }
  153. .list li a:hover {
  154. text-decoration: none;
  155. }
  156. a:link,
  157. a:visited,
  158. a:active {
  159. color: #2a80b9;
  160. text-decoration: none;
  161. }
  162. a:hover {
  163. color: #439fe0;
  164. text-decoration: underline;
  165. }
  166. .close {
  167. display: none;
  168. }
  169. @media screen {
  170. .print-only { display: none }
  171. }
  172. img.preview {
  173. max-width: 100%;
  174. height: auto;
  175. }