ubim.css 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269
  1. /******************
  2. * UBIM styles
  3. ******************/
  4. /* main grid */
  5. .ubim-big {
  6. float: left;
  7. width: 100%;
  8. }
  9. .ubim-left {
  10. display: block;
  11. float: left;
  12. width: 20%;
  13. }
  14. .ubim-right {
  15. display: block;
  16. float: left;
  17. width: 70%;
  18. margin-left: 30px;
  19. }
  20. /* contacts */
  21. .ubim-contacts-container {
  22. width: 100%;
  23. max-width: 400px;
  24. margin: 0 auto;
  25. padding: 10px;
  26. display: flex;
  27. flex-direction: column;
  28. gap: 10px;
  29. background-color: #ffffff;
  30. border-radius: 10px;
  31. box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  32. overflow-y: auto;
  33. max-height: 75vh;
  34. }
  35. .ubim-contact {
  36. display: flex;
  37. align-items: center;
  38. gap: 15px;
  39. padding: 10px;
  40. border-radius: 8px;
  41. text-decoration: none !important;
  42. transition: background-color 0.2s, box-shadow 0.2s;
  43. cursor: pointer;
  44. color: #333;
  45. }
  46. .ubim-contact:hover {
  47. background-color: #f0f0f5;
  48. }
  49. .ubim-avatar {
  50. width: 40px;
  51. height: 40px;
  52. border-radius: 50%;
  53. object-fit: cover;
  54. box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  55. position: relative;
  56. z-index: 1;
  57. }
  58. .ubim-contact-name {
  59. font-size: 12px;
  60. font-weight: 600;
  61. }
  62. .ubim-online {
  63. position: relative;
  64. background-color: #e8f5e9;
  65. border-left: 4px solid #4caf50;
  66. }
  67. .ubim-open {
  68. background-color: #eceaea;
  69. border-right: 4px solid #d84501;
  70. }
  71. .ubim-online::after {
  72. content: "";
  73. position: absolute;
  74. bottom: 8px;
  75. right: 8px;
  76. width: 12px;
  77. height: 12px;
  78. background-color: #4caf50;
  79. border: 2px solid #FFFFFF;
  80. border-radius: 50%;
  81. z-index: 2 !important;
  82. }
  83. .ubim-unread {
  84. background-color: #e3f2fd;
  85. border-left: 4px solid #2196f3 !important;
  86. box-shadow: 0 0 8px rgba(33, 150, 243, 0.5);
  87. }
  88. .ubim-unread:hover {
  89. background-color: #bbdefb;
  90. }
  91. .ubim-unread-label {
  92. margin-top: 3px;
  93. font-size: 6pt;
  94. font-weight: lighter;
  95. color: #3a3a3a;
  96. }
  97. /* chat */
  98. .ubim-chat-container {
  99. width: 100%;
  100. max-width: 900px;
  101. margin: 0 auto;
  102. padding: 10px;
  103. display: flex;
  104. flex-direction: column;
  105. gap: 15px;
  106. background-color: #f5f5f5;
  107. border-radius: 10px;
  108. box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  109. overflow-y: auto;
  110. max-height: 60vh;
  111. margin-top: 5px;
  112. }
  113. .ubim-message {
  114. display: flex;
  115. align-items: flex-end;
  116. gap: 10px;
  117. max-width: 75%;
  118. }
  119. .ubim-from-user {
  120. align-self: flex-end;
  121. flex-direction: row-reverse;
  122. }
  123. .ubim-from-other {
  124. align-self: flex-start;
  125. }
  126. .ubim-chat-avatar {
  127. width: 40px;
  128. height: 40px;
  129. border-radius: 50%;
  130. object-fit: cover;
  131. box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  132. }
  133. .ubim-message-bubble {
  134. background-color: #e4e6eb;
  135. border-radius: 15px;
  136. padding: 10px 15px;
  137. position: relative;
  138. word-wrap: break-word;
  139. flex: 1;
  140. }
  141. .ubim-from-user .ubim-message-bubble {
  142. background-color: #8dafce;
  143. color: white;
  144. border-bottom-right-radius: 2px;
  145. }
  146. .ubim-from-other .ubim-message-bubble {
  147. border-bottom-left-radius: 2px;
  148. }
  149. .ubim-from-user .ubim-message-author {
  150. display: none !important;
  151. }
  152. .ubim-from-other .ubim-message-author {
  153. font-size: 7pt;
  154. }
  155. .ubim-message-content {
  156. font-size: 16px;
  157. line-height: 1.4;
  158. }
  159. .ubim-timestamp {
  160. font-size: 12px;
  161. color: rgba(0, 0, 0, 0.5);
  162. align-self: flex-end;
  163. margin-top: 5px;
  164. }
  165. .ubim-from-user .ubim-timestamp {
  166. font-size: 12px;
  167. color: #e2e2e2;
  168. align-self: flex-end;
  169. margin-top: 5px;
  170. }
  171. /* form */
  172. .ubim-chat-form {
  173. width: 100%;
  174. max-width: 900px;
  175. margin: 0 auto;
  176. display: flex;
  177. padding: 10px;
  178. background-color: #f9f9f9;
  179. border-radius: 10px;
  180. gap: 10px;
  181. border-top: 1px solid #ddd;
  182. position: sticky;
  183. top: 0;
  184. z-index: 10;
  185. }
  186. .ubim-input-message {
  187. flex: 1;
  188. padding: 10px;
  189. border: 1px solid #ccc;
  190. border-radius: 5px;
  191. margin-right: 10px;
  192. color: #333;
  193. transition: border-color 0.2s;
  194. resize: none;
  195. height: 30px;
  196. }
  197. .ubim-input-message:focus {
  198. outline: none;
  199. border-color: #0084ff;
  200. }
  201. .ubim-send-button {
  202. padding: 10px 15px;
  203. background-color: #0084ff;
  204. color: #FFFFFF;
  205. border: none;
  206. border-radius: 5px;
  207. cursor: pointer;
  208. transition: background-color 0.2s, transform 0.2s;
  209. }
  210. .ubim-send-button:hover {
  211. background-color: #006bbf;
  212. }
  213. .ubim-send-button:active {
  214. transform: scale(0.95);
  215. }
  216. .ubim-avacontrol {
  217. border-radius: 50%;
  218. object-fit: cover;
  219. box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  220. position: relative;
  221. z-index: 1;
  222. }