style.css 6.3 KB

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