1
0

style.css 3.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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: scroll;
  14. }
  15. .slack-chat-container {
  16. display: inline-block;
  17. position: absolute;
  18. top: 0;
  19. bottom: 0;
  20. left: 250px;
  21. right: 0;
  22. overflow: hidden;
  23. }
  24. .slack-context-room.selected {
  25. background-color: lightgrey;
  26. }
  27. .hidden { display: none; }
  28. .error { display: none; position: fixed; top: 0; left: 0; right: 0; height: 2em; line-height: 2em; background: #ffa2a2; padding: 0.5em 1em; }
  29. .button { border: 1px solid black; background: white; cursor: pointer; font: 13.3333px Arial; margin: 0; padding: 1px 6px; }
  30. .no-network .error { display: inline-block; }
  31. .slack-chat-content { height: calc(100vh - 8em); overflow: auto; }
  32. .slack-chat-title { display: inline-block; height: 1.75em; font-size: 1.75em; font-style: italic; }
  33. .slack-chat-control { display: inline-block; position: relative; width: 100%; height: 2em; padding: 1.5em 0; }
  34. .slack-chat-control > * { display: inline-block; height: 100%; }
  35. .slack-context-room.unread { font-weight: bold; }
  36. .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; border-top: 1px solid grey; }
  37. .slackmsg-item { position: relative; background: #eee; }
  38. .slackmsg-item:not(:first-child) { margin-top: 15px; }
  39. .slackmsg-author { display: inline-block; }
  40. .slackmsg-author-img { margin-right: 15px; }
  41. .slackmsg-author-name { position: absolute; max-height: 1em; overflow: hidden; font-style: italic; }
  42. .slackmsg-msg { display: inline-block; vertical-align: top; margin-top: 1em; }
  43. .slackmsg-ts {}
  44. .slackmsg-hover { display: none; position: absolute; top: 0; right: 0; margin: 0; list-style: none; padding: 0; }
  45. .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; }
  46. .slackmsg-hover > li:first-child { border-bottom-left-radius: 5px; }
  47. .slackmsg-hover > li:last-child { border-top-right-radius: 5px; }
  48. .slackmsg-hover .slackmsg-hover-reply { background-image: url("repl.svg"); }
  49. .slack-chat-content .slackmsg-item:hover .slackmsg-hover { display: block; }
  50. .replyto-container { display: none; position: relative; height: 5em; width: 100%; }
  51. .replyingTo .replyto-container { display: inline-block; }
  52. .replyingTo .slack-chat-content { height: calc(100vh - 13em); }
  53. .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; }
  54. .slackmsg-item.slackmsg-me_message { position: static; font-style: italic; }
  55. .slackmsg-item.slackmsg-me_message .slackmsg-author-name { position: static; }
  56. .slackmsg-item.slackmsg-me_message .slackmsg-msg { margin: 0 0 0 1em; }
  57. .slackmsg-item.slackmsg-me_message .slackmsg-author-img, .slackmsg-item.slackmsg-me_message .slackmsg-ts { display: none; }
  58. .slackmsg-style-bold { font-weight: bold; }
  59. .slackmsg-style-code { background: #FFF6B4; color: red; }
  60. .slackmsg-style-italic { font-style: italic; }
  61. .slackmsg-style-strike { text-decoration: line-through; }
  62. .slackmsg-style-quote { border-left: 3px solid grey; padding-left: 10px; }
  63. .attach-file-icon { height: 1.5em; vertical-align: bottom; }
  64. .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; }
  65. .file-upload-container > form { display: inline-block; background: white; height: 100%; width: 100%; }
  66. .file-upload-container input { display: block; }
  67. .file-upload-error { margin: 1em 0; padding: 0.5em 1.5em; background: #ffa2a2; }