style.css 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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. .slack-chat-content { height: calc(100vh - 8em); overflow: auto; }
  28. .slack-chat-title { display: inline-block; height: 1.75em; font-size: 1.75em; font-style: italic; }
  29. .slack-chat-control { display: inline-block; width: 100%; height: 2em; padding: 1.5em 0; }
  30. .slack-chat-control * { display: inline-block; height: 100%; }
  31. .slack-context-room.unread { font-weight: bold; }
  32. .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; }
  33. .slackmsg-item { position: relative; background: #eee; }
  34. .slackmsg-item:not(:first-child) { margin-top: 15px; }
  35. .slackmsg-author { display: inline-block; }
  36. .slackmsg-author-img { margin-right: 15px; }
  37. .slackmsg-author-name { position: absolute; max-height: 1em; overflow: hidden; font-style: italic; }
  38. .slackmsg-msg { display: inline-block; vertical-align: top; margin-top: 1em; }
  39. .slackmsg-ts {}
  40. .slackmsg-hover { display: none; position: absolute; top: 0; right: 0; margin: 0; list-style: none; padding: 0; }
  41. .slackmsg-hover > li { display: inline-block; width: 1.5em; height: 1.5em; background: white; border: 1px solid black; cursor: pointer; }
  42. .slackmsg-hover > li:first-child { border-bottom-left-radius: 5px; }
  43. .slackmsg-hover > li:last-child { border-top-right-radius: 5px; }
  44. /*
  45. * DEBUG
  46. .slackmsg-item:hover .slackmsg-hover { display: block; }
  47. */