messages.css 5.9 KB

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