logo

pleroma-fe

My custom branche(s) on git.pleroma.social/pleroma/pleroma-fe git clone https://anongit.hacktivis.me/git/pleroma-fe.git/

chat_message.scss (2347B)


  1. .chat-message-wrapper {
  2. &.hovered-message-chain {
  3. .animated.Avatar {
  4. canvas {
  5. display: none;
  6. }
  7. img {
  8. visibility: visible;
  9. }
  10. }
  11. }
  12. .chat-message-menu {
  13. transition: opacity 0.1s;
  14. opacity: 0;
  15. position: absolute;
  16. top: -0.8em;
  17. button {
  18. padding-top: 0.2em;
  19. padding-bottom: 0.2em;
  20. }
  21. }
  22. .menu-icon {
  23. cursor: pointer;
  24. }
  25. .popover {
  26. width: 12em;
  27. }
  28. .chat-message {
  29. display: flex;
  30. padding-bottom: 0.5em;
  31. .status-body:hover {
  32. --_still-image-img-visibility: visible;
  33. --_still-image-canvas-visibility: hidden;
  34. --_still-image-label-visibility: hidden;
  35. }
  36. }
  37. .avatar-wrapper {
  38. margin-right: 0.72em;
  39. width: 32px;
  40. }
  41. .link-preview,
  42. .attachments {
  43. margin-bottom: 1em;
  44. }
  45. .status {
  46. background-color: var(--background);
  47. color: var(--text);
  48. border-radius: var(--roundness);
  49. display: flex;
  50. padding: 0.75em;
  51. border: 1px solid var(--border);
  52. }
  53. .created-at {
  54. position: relative;
  55. float: right;
  56. font-size: 0.8em;
  57. margin: -1em 0 -0.5em;
  58. font-style: italic;
  59. opacity: 0.8;
  60. }
  61. .without-attachment {
  62. .message-content {
  63. // TODO figure out how to do it properly
  64. .RichContent::after {
  65. margin-right: 5.4em;
  66. content: " ";
  67. display: inline-block;
  68. }
  69. }
  70. }
  71. .pending {
  72. .status-content.media-body,
  73. .created-at {
  74. color: var(--faint);
  75. }
  76. }
  77. .error {
  78. .status-content.media-body,
  79. .created-at {
  80. color: var(--badgeNotification);
  81. }
  82. }
  83. .chat-message-inner {
  84. display: flex;
  85. flex-direction: column;
  86. align-items: flex-start;
  87. max-width: 80%;
  88. min-width: 10em;
  89. width: 100%;
  90. }
  91. .outgoing {
  92. display: flex;
  93. flex-flow: row wrap;
  94. align-content: end;
  95. justify-content: flex-end;
  96. .chat-message-inner {
  97. align-items: flex-end;
  98. }
  99. .chat-message-menu {
  100. right: 0.4rem;
  101. }
  102. }
  103. .incoming {
  104. .chat-message-menu {
  105. left: 0.4rem;
  106. }
  107. }
  108. .chat-message-inner.with-media {
  109. width: 100%;
  110. .status {
  111. width: 100%;
  112. }
  113. }
  114. .visible {
  115. opacity: 1;
  116. }
  117. }
  118. .chat-message-date-separator {
  119. text-align: center;
  120. margin: 1.4em 0;
  121. font-size: 0.9em;
  122. user-select: none;
  123. color: var(--textFaint);
  124. }