style.css 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. body { display: flex; margin: 0; padding: 0; font-family: Lato, sans-serif; }
  2. .slack-context { display: inline-block; max-height: 100%; width: 250px; overflow-x: hidden; overflow-y: auto; background-color: #4D394B; background-position: bottom; background-repeat: no-repeat; overflow: auto; }
  3. .slack-chat-container { display: flex; flex-direction: column; flex: 1; overflow: hidden; padding: 0; }
  4. .slack-context-channellist { padding-left: 0; list-style: none; }
  5. .slack-context-room { position: relative; }
  6. .slack-context-room > a { display: block; padding: 3px 0 3px 1.5em; text-decoration: none; color: #AB9BA9; margin-right: 15px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; }
  7. .slack-context-room > a:hover { background-color: rgba(10, 5, 10, .6); }
  8. .slack-context-room.selected > a { background-color: #4c9689; color: #fff; border-top-right-radius: 3px; border-bottom-right-radius: 3px; }
  9. .slack-context-room.slack-ims { font-style: italic; }
  10. .slack-context-room.slack-ims::before { content: " "; position: absolute; display: inline-block; height: 6px; width: 6px; border: 2px solid #4c9689; background: #4c9689; top: 0; bottom: 0; margin: auto auto auto 7px; border-radius: 5px; }
  11. .slack-context-room.slack-ims.selected::before { background-color: white; border-color: white; }
  12. .slack-context-room.slack-ims.away::before { background: transparent; }
  13. .slack-context-roominfo { position: absolute; display: block; left: 250px; width: 100%; max-width: 300px; top: 0; height: 100%; z-index: 100; background-color: #4D394B; }
  14. .hidden { display: none; }
  15. .error { display: none; position: fixed; top: 0; left: 0; right: 0; height: 2em; line-height: 2em; background: #ffa2a2; padding: 0.5em 1em; }
  16. .button { border: 1px solid black; background: white; cursor: pointer; font: 13.3333px Arial; margin: 0; padding: 1px 6px; }
  17. .no-network .error { display: inline-block; }
  18. .slack-chat-content { flex: 1; overflow: auto; }
  19. .slack-chat-title { display: inline-block; padding: 14px 10px; font-size: 1.75em; font-style: italic; }
  20. .slack-chat-control { display: inline-block; width: 100%; height: 2em; padding: 14px 0; }
  21. .slack-chat-control > * { display: inline-block; height: 100%; }
  22. .slack-context-room:not(.selected).unread, .slack-context-room:not(.selected).unread > a { font-weight: bold; color: white; }
  23. .slack-context-room:not(.selected).unreadHi, .slack-context-room:not(.selected).unreadHi > a { font-weight: bold; color: #4c9689; }
  24. .slack-context-room.slack-channel + .slack-context-room:not(.slack-channel), .slack-context-room.slack-group + .slack-context-room:not(.slack-group) { margin-top: 1em; }
  25. .slackmsg-item { display: flex; position: relative; padding: 10px; }
  26. .slackmsg-item:hover { background: #F9F9F9; }
  27. .slackmsg-content { display: inline-block; }
  28. .slackmsg-author { display: inline-block; }
  29. .slackmsg-author-img { max-height: 48px; max-width: 48px; margin-right: 15px; }
  30. .slackmsg-author-name { display: block; font-style: italic; font-weight: bold; }
  31. .slackmsg-msg { display: inline-block; vertical-align: top; }
  32. .slackmsg-reactions:empty,.slackmsg-attachments:empty { display: none; }
  33. .slackmsg-reactions,.slackmsg-attachments { padding: 0 0 0 40px; }
  34. .slackmsg-ts {}
  35. .slackmsg-item.slackmsg-same-author { margin-top: -15px; }
  36. .slackmsg-same-author .slackmsg-author-img { visibility: hidden; }
  37. .slackmsg-same-author .slackmsg-author-name { display: none; }
  38. .slackmsg-same-ts .slackmsg-ts { display: none; }
  39. .slackmsg-hover { display: none; position: absolute; top: 0; right: 0; margin: 0; list-style: none; padding: 0; }
  40. .slackmsg-hover > li { display: inline-block; width: 1.5em; height: 1.5em; background: white; border: 1px solid lightgrey; vertical-align: bottom; cursor: pointer; background-size: contain; background-repeat: no-repeat; background-position: center center; border-right: none; }
  41. .slackmsg-hover > li > span { margin-top: 3.5px; margin-left: 3px; }
  42. .slackmsg-hover > li:first-child { border-bottom-left-radius: 5px; }
  43. .slackmsg-hover > li:last-child { border-top-right-radius: 5px; border-right: 1px; }
  44. .slack-chat-content .slackmsg-item:hover .slackmsg-hover { display: block; }
  45. .replyto-container { display: none; width: 100%; }
  46. .replyingTo .replyto-container { display: inline-block; }
  47. .replyingTo .slack-chat-content { height: calc(100vh - 13em); }
  48. .replyto-container .replyto-close { position: absolute; display: inline-block; top: 15px; right: 0; height: 1.5em; width: 1.5em; text-align: center; cursor: pointer; z-index: 500; }
  49. .slackmsg-item.slackmsg-me_message { font-style: italic; margin-right: 10px; }
  50. .slackmsg-item.slackmsg-me_message .slackmsg-author-name { position: static; display: inline; }
  51. .slackmsg-item.slackmsg-me_message .slackmsg-author-name::before { content: "* "; }
  52. .slackmsg-item.slackmsg-me_message .slackmsg-msg { margin: 0 0 0 1em; }
  53. .slackmsg-item.slackmsg-me_message .slackmsg-author-img { display: none; }
  54. .slackmsg-item.slackmsg-me_message .slackmsg-ts { display: block; }
  55. .slackmsg-style-bold { font-weight: bold; }
  56. .slackmsg-style-italic { font-style: italic; }
  57. .slackmsg-style-strike { text-decoration: line-through; }
  58. .slackmsg-style-code { background: #FFF6B4; color: red; font-weight: normal; font-style: normal; text-decoration: none; }
  59. .slackmsg-style-quote { border-left: 3px solid #e3e4e6; padding-left: 10px; }
  60. .slackmsg-attachments { list-style: none; }
  61. .slackmsg-attachment .slackmsg-author-img { max-height: 18px; max-width: 18px; vertical-align: middle; margin-right: 5px; }
  62. .slackmsg-attachment-img { max-height: 200px; max-width: 400px; }
  63. .attach-file-icon { height: 1.5em; vertical-align: bottom; }
  64. .msgform { display: flex; margin: 0 10px; }
  65. .msgform-input { flex: 1; }
  66. .msgform-action { margin: 0 0 0 10px; }
  67. .msgform-action * { height: 1.5em; }
  68. .file-upload-container { position: fixed; z-index: 5000; background: rgba(55, 55, 55, 0.8); top: 0; bottom: 0; right: 0; left: 0; max-width: 100%; margin: auto; height: 200px; width: 500px; max-height: 100%; padding: 1.5em; border: 1px solid rgba(55, 55, 55, 1); border-radius: 10px; }
  69. .file-upload-container > form { display: inline-block; background: white; height: 100%; width: 100%; }
  70. .file-upload-container input { display: block; }
  71. .file-upload-error { margin: 1em 0; padding: 0.5em 1.5em; background: #ffa2a2; }
  72. .emoji-small { position: relative; display: inline-block; width: 20px; height: 20px; vertical-align: middle; }
  73. .emoji-small .emoji { transform: scale(0.3); position: absolute; left: -24px; top: -24px; }
  74. .emoji-medium { position: relative; display: inline-block; width: 30px; height: 30px; vertical-align: middle; }
  75. .emoji-medium .emoji { transform: scale(0.5); position: absolute; left: -19px; top: -16px; }
  76. .emoji-custom { text-indent: -9999em; image-rendering: optimizeQuality; font-size: inherit; height: 64px; width: 64px; top: -3px; position: relative; display: inline-block; margin: 0 .15em; line-height: normal; vertical-align: middle; background-repeat: no-repeat; background-size: contain; }
  77. .emojibar { position: fixed; display: flex; flex-direction: column; height: 300px; width: 300px; left: 0; right: 0; top: 0; bottom: 0; margin: auto; padding: 5px; overflow: hidden; background: #ddd; z-index: 1000; text-align: right; }
  78. .emojibar-emojis { display: block; flex: 1; width: 100%; overflow: auto; text-align: left; }
  79. .emojibar-header { height: 30px; display: block; text-align: center; }
  80. .emojibar-header > img { max-width: 100%; max-height: 20px; }
  81. .emojibar-list { list-style: none; padding: 0; margin: 0; }
  82. .emojibar-list-item { display: inline-block; margin: 5px; cursor: pointer; }
  83. .emojibar-detail { display: block; height: 40px; text-align: left; }
  84. .emojibar-search { width: 300px; margin: 5px auto; }
  85. .emojibar-overlay { position: fixed; top: 0; bottom: 0; left: 0; right: 0; background: rgba(0, 0, 0, 0.2); }