messages.css 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279
  1. .position-relative {
  2. position: relative;
  3. }
  4. .overflow-hidden {
  5. overflow: hidden;
  6. }
  7. .position-absolute {
  8. position: absolute;
  9. }
  10. .opacity-0x {
  11. opacity: 0;
  12. }
  13. .im-body {
  14. height: calc(100vh - 185px) !important;
  15. }
  16. .im-container {
  17. display: flex;
  18. align-items: stretch;
  19. }
  20. .im-container .im-lhs {
  21. min-width: 300px;
  22. border-right: 1px solid #ddd;
  23. padding: 0.5rem;
  24. overflow: auto;
  25. }
  26. .im-container .im-lhs .im-conversation {
  27. border-radius: 4px;
  28. padding: 0.5rem;
  29. border: 1px solid #ddd;
  30. background: white;
  31. cursor: pointer;
  32. }
  33. .im-container .im-lhs .im-conversation:hover {
  34. background: aliceblue;
  35. text-decoration: none;
  36. }
  37. .im-container .im-lhs .im-conversation.active {
  38. background: aliceblue;
  39. border-color: #307899;
  40. }
  41. .im-container .im-lhs .im-conversation:not(:last-child) {
  42. margin-bottom: 0.5rem;
  43. }
  44. .im-container .im-lhs .im-conversation .unread-conversation {
  45. position: absolute;
  46. right: 0;
  47. top: 0;
  48. }
  49. .im-container .im-rhs {
  50. flex-grow: 1;
  51. display: inline-flex;
  52. flex-direction: column;
  53. }
  54. .im-container .im-rhs .im-messages {
  55. flex-grow: 1;
  56. display: inline-flex;
  57. flex-direction: column;
  58. justify-content: flex-end;
  59. overflow: auto;
  60. margin-bottom: 1rem;
  61. }
  62. .im-container .im-message {
  63. margin-top: 0.5rem;
  64. padding: 0 0.5rem;
  65. text-align: left;
  66. }
  67. .im-container .im-message.sent {
  68. text-align: right;
  69. }
  70. .im-container .im-rhs .im-messages-header {
  71. padding-bottom: 0.5rem;
  72. border-bottom: 1px solid #eee;
  73. }
  74. .im-container .im-message .im-message-sender {
  75. display: flex;
  76. justify-content: flex-start;
  77. }
  78. .im-container .im-message .im-message-sender .unread-message {
  79. margin-bottom: -5px;
  80. margin-top: -5px;
  81. font-size: 16px;
  82. }
  83. .im-container .im-message .im-message-content {
  84. background: #eee;
  85. border-radius: 6px;
  86. padding: 0.5rem;
  87. margin-top: 0.25rem;
  88. white-space: pre-wrap;
  89. word-break: break-word;
  90. text-align: left;
  91. display: inline-block;
  92. min-width: 150px;
  93. max-width: 75%;
  94. flex-grow: 0;
  95. }
  96. .im-container .im-message.sent .im-message-sender {
  97. justify-content: flex-end;
  98. }
  99. .im-container .im-message.sent .im-message-content {
  100. margin-left: auto;
  101. background: #e4f9ff;
  102. }
  103. .im-container .im-rhs .im-input textarea {
  104. width: 100%;
  105. height: 30px;
  106. border:none;
  107. resize:none;
  108. padding: 0.3rem;
  109. box-shadow: none !important;
  110. }
  111. .im-container .im-rhs .im-input textarea:focus,
  112. .im-container .im-rhs .im-input textarea:active,
  113. .im-container .im-rhs .im-input textarea:focus-visible {
  114. border:none;
  115. outline: 0;
  116. }
  117. .im-container .im-rhs .im-input #selected-files .selected-file {
  118. background: #eee;
  119. border: 1px solid #ccc;
  120. border-radius: 3px;
  121. padding: 2px 20px 2px 5px;
  122. cursor: pointer;
  123. position: relative;
  124. margin-top: 6px;
  125. margin-right: 6px;
  126. }
  127. .im-container .im-rhs .im-input #selected-files .selected-file:hover {
  128. color: #b11313;
  129. }
  130. .im-container .im-rhs .im-input #selected-files .selected-file:after {
  131. position: absolute;
  132. content: '✕';
  133. right: 4px;
  134. color: #b11313;
  135. }
  136. .im-container .im-message.sent .header-item {
  137. margin-left: 0.75rem;
  138. }
  139. .im-container .im-message.received .header-item {
  140. margin-right: 0.75rem;
  141. }
  142. .im-container .im-message.sent .attachment {
  143. margin-left: 0.75rem;
  144. }
  145. .im-container .im-message.received .attachment {
  146. margin-right: 0.75rem;
  147. }
  148. .im-container .im-rhs .im-video-container {
  149. max-width: 480px;
  150. display: inline-block;
  151. position: relative;
  152. margin-top: 4px;
  153. }
  154. .im-container .im-rhs .im-video-container video {
  155. max-width: 100%;
  156. }
  157. .im-container .im-rhs .im-video-container .vs-control {
  158. opacity: 0;
  159. transition: opacity 0.3s ease;
  160. position: absolute;
  161. margin: 0 !important;
  162. top: 0;
  163. right: 0;
  164. background: rgba(238, 238, 238, 0.75) !important;
  165. border: 0 !important;
  166. border-bottom-left-radius: 3px;
  167. text-align: right !important;
  168. width: auto !important;
  169. font-size: 11px !important;
  170. }
  171. .im-container .im-rhs .im-video-container:hover .vs-control {
  172. opacity: 1;
  173. background: rgba(238, 238, 238, 1) !important;
  174. }
  175. .im-container .im-rhs .im-video-container .vs-control select {
  176. width: auto !important;
  177. border: 0 !important;
  178. }
  179. .msg-header {
  180. background-color: #fefefe;
  181. color: #333;
  182. border-bottom: 1px solid #ccc;
  183. }
  184. .im-body .card-body {
  185. background-color: #fefefe;
  186. }
  187. .msg-input {
  188. border: 1px solid #eee;
  189. padding: 8px 10px;
  190. border-radius: 50px;
  191. background-color: #ffffff;
  192. width: 100%;
  193. display: flex;
  194. align-items: center;
  195. justify-content: space-between;
  196. }
  197. .msg-input textarea, .msg-input textarea:focus{
  198. outline:0;
  199. box-shadow: 0;
  200. border:none;
  201. width: 100%;
  202. }
  203. .btn-input, .btn-input:hover, .btn-input:focus {
  204. height: 40px;
  205. width: 40px;
  206. font-size: 18px;
  207. display: grid;
  208. place-items:center;
  209. border-radius: 100%;
  210. background: #32abd1;
  211. color: #fff;
  212. }
  213. .btn-input i {
  214. margin-left: -4px;
  215. }
  216. .plus, .plus:hover, .plus:focus {
  217. outline:0;
  218. border:0;
  219. background: 0;
  220. color: #aaa;
  221. margin-right: 5px;
  222. }
  223. .fabs {
  224. display: flex;
  225. gap: 5px;
  226. }
  227. .fabs .btn {
  228. margin-left: 0 !important;
  229. margin-bottom: 10px;
  230. height: 40px;
  231. width: 40px;
  232. border-radius: 100%;
  233. }
  234. .msg-list {
  235. height: calc(100vh - 185px) !important;
  236. overflow-y: auto;
  237. }
  238. .msg-list .msg-header {
  239. position: sticky;
  240. top: 0;
  241. }
  242. .pt {
  243. color: #000000;
  244. }
  245. .active-pt, .pt:hover {
  246. background-color: #c2efff;
  247. color: #000000;
  248. transition: .5s;
  249. }
  250. .im-container .im-message .im-message-sender {
  251. position: relative;
  252. }
  253. .im-container .im-message .delete {
  254. position: absolute;
  255. right: -14px;
  256. top:0px;
  257. }
  258. .im-container .im-message:hover .delete,
  259. .im-container .im-message:focus .delete{
  260. display: block;
  261. }
  262. .circle-icon {
  263. margin-top: 5px;
  264. height: 40px;
  265. width: 40px;
  266. text-align: center;
  267. border-radius: 100%;
  268. background-color: #ededed;
  269. font-size: 15px;
  270. font-weight: bold;
  271. display: grid;
  272. color: #444;
  273. place-items: center;
  274. }
  275. .circle-icon.op {
  276. opacity: 0;
  277. height: 10px;
  278. }