IM12345_Web demo - 代码源于 商丘市12345项目

chat.css 6.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349
  1. body {
  2. color: #4d4d4d;
  3. font: 14px/1.4em 'Helvetica Neue', Helvetica, 'Microsoft Yahei', Arial, sans-serif;
  4. background: #f5f5f5 url(img/chat_bg.jpg) no-repeat center;
  5. background-size: cover;
  6. }
  7. ul, li {
  8. list-style: none;
  9. margin: 0;
  10. padding: 0;
  11. }
  12. #chat {
  13. /*margin: 20px auto;*/
  14. width: 100%;
  15. height: 450px;
  16. overflow: hidden;
  17. border-radius: 3px;
  18. }
  19. .chat_left, .chat_sidebar {
  20. float: left;
  21. }
  22. .chat_left ul li {
  23. /*padding: 9pt 15px;*/
  24. padding: 10px 10px;
  25. border-bottom: 1px solid #292c33;
  26. cursor: pointer;
  27. color: #f4f4f4;
  28. }
  29. .chat_left ul li .chat_name {
  30. margin: 0;
  31. }
  32. .chat_sidebar {
  33. width: 200px;
  34. color: #f4f4f4;
  35. background-color: #2e3238;
  36. }
  37. #chat .chat_left, #chat .chat_main, #chat .chat_sidebar, .message_mincon {
  38. height: 100%;
  39. }
  40. .chat_main {
  41. float:left;
  42. width:782px;
  43. /*width:460px;*/
  44. }
  45. #chat .chat_main, .message_mincon {
  46. position: relative;
  47. /*overflow: hidden;*/
  48. background-color: #eee;
  49. height: 100%;
  50. }
  51. .ver_middle {
  52. vertical-align: middle;
  53. }
  54. #chat .chat_left {
  55. width: 70px;
  56. background: #2f3339;
  57. border-right: 1px solid #292c33;
  58. }
  59. /*chat_sidebar开始*/
  60. .pic_card {
  61. padding: 9pt;
  62. border-bottom: 1px solid #24272c;
  63. }
  64. .chat_name {
  65. display: inline-block;
  66. margin: 0 0 0 15px;
  67. font-size: 1pc;
  68. vertical-align: middle;
  69. font-size: 14px;
  70. }
  71. .chat_sidebar_foot {
  72. margin-top: 10px;
  73. }
  74. .sidebar_foot_seach {
  75. padding: 0 10px;
  76. width: 100%;
  77. font-size: 9pt;
  78. color: #fff;
  79. height: 30px;
  80. line-height: 30px;
  81. border: 1px solid #3a3a3a;
  82. border-radius: 4px;
  83. outline: 0;
  84. background-color: #26292e;
  85. }
  86. .chat_sidebar_list {
  87. height: 495px;
  88. overflow-y: auto;
  89. }
  90. .chat_sidebar_list li {
  91. /*padding: 9pt 15px;*/
  92. padding: 4pt 15px;
  93. border-bottom: 1px solid #292c33;
  94. cursor: pointer;
  95. -webkit-transition: background-color .1s;
  96. transition: background-color .1s;
  97. position: relative;
  98. }
  99. .chat_sidebar_list li.actives, .chat_left li.actives {
  100. background-color: hsla(0,0%,100%,.1);
  101. }
  102. .chat_sidebar_list li.actives:hover, .chat_left li.actives:hover {
  103. background-color: hsla(0,0%,100%,.1);
  104. }
  105. .chat_sidebar_list li:hover, .chat_left li:hover {
  106. background-color: hsla(0,0%,100%,.03);
  107. }
  108. /*chat_sidebar结束*/
  109. /*聊天区域开始*/
  110. .message_count {
  111. display: inline-block;
  112. position: absolute;
  113. right: 0;
  114. border-radius: 50%;
  115. background: red;
  116. color: #fff;
  117. }
  118. .disnone {
  119. display: none;
  120. }
  121. .main_message {
  122. /*overflow-y: scroll;*/
  123. /*height: calc(100% - 195px);*/
  124. height: 330px;
  125. /*margin-top: 2pc;*/
  126. /*padding-top: 35px;*/
  127. }
  128. .chat_person {
  129. position: absolute;
  130. width: 100%;
  131. top: 0;
  132. left: 0;
  133. height: 35px;
  134. line-height: 35px;
  135. border-bottom: 1px solid #ddd;
  136. background: #fff;
  137. z-index: 1000;
  138. }
  139. .main_message li {
  140. margin-bottom: 15px;
  141. }
  142. .main_message .message_time {
  143. margin: 7px 0;
  144. text-align: center;
  145. }
  146. .main_message .ver_middle {
  147. float: left;
  148. margin: 0 10px 0 0;
  149. border-radius: 3px;
  150. }
  151. .main_message .message_text {
  152. display: inline-block;
  153. position: relative;
  154. padding: 5px 10px 0 10px;
  155. max-width: calc(100% - 108px);
  156. min-height: 28px;
  157. line-height: 2;
  158. font-size: 9pt;
  159. text-align: left;
  160. word-break: break-all;
  161. background-color: #fafafa;
  162. border-radius: 4px;
  163. }
  164. .main_message .message_text:before {
  165. content: " ";
  166. position: absolute;
  167. top: 9px;
  168. right: 100%;
  169. border: 6px solid transparent;
  170. border-right-color: #fafafa;
  171. }
  172. .main_message .message_text p {
  173. margin: 2px 0 10px 0;
  174. line-height: 2;
  175. }
  176. .main_message .self {
  177. text-align: right;
  178. }
  179. .main_message .self .ver_middle {
  180. float: right;
  181. margin: 0 0 0 10px;
  182. }
  183. .main_message .self .message_text {
  184. background-color: #b2e281;
  185. }
  186. .main_message .self .message_text:before {
  187. right: inherit;
  188. left: 100%;
  189. border-right-color: transparent;
  190. border-left-color: #b2e281;
  191. }
  192. .main_sendMessage {
  193. /*position: absolute;*/
  194. width: 100%;
  195. /*bottom: 0;
  196. left: 0;*/
  197. height: 120px;
  198. border-top: 1px solid #ddd;
  199. background: #fff;
  200. }
  201. .main_sendMessage textarea {
  202. padding: 10px;
  203. height: 55%;
  204. /*width: 98%;*/
  205. border: none;
  206. outline: 0;
  207. font-family: Micrsofot Yahei;
  208. resize: none;
  209. }
  210. .main_sendMessage .send_btn {
  211. height: 20%;
  212. text-align: right;
  213. color: #4d4d4d;
  214. padding-right: 10px;
  215. }
  216. .main_sendMessage .send_btn button {
  217. border: 1px solid #ccc;
  218. background: #fff;
  219. outline: none;
  220. }
  221. .main_sendMessage .send_btn button:hover {
  222. background: #b2e281;
  223. }
  224. /*聊天区域结束*/
  225. /*在线客服 - 智能回复 样式 sta*/
  226. #btnaddworkorder {
  227. color:red;
  228. cursor:pointer;
  229. }
  230. .chat_rightcontent{
  231. overflow-y: auto;
  232. /*width: 322px;*/
  233. width:316px;
  234. height: 100%;
  235. padding: 6px 9px;
  236. margin-left:2px;
  237. box-sizing: border-box;
  238. float:right;
  239. background-color:#eee;
  240. border-left:#ddd 1px solid;
  241. display:none;
  242. }
  243. .must {
  244. font-style: normal;
  245. color: red;
  246. vertical-align: middle;
  247. margin-right: 3px;
  248. }
  249. .table > tbody > tr > td {
  250. line-height:28px;
  251. }
  252. .personalIM .table {
  253. /*width: 90%;*/
  254. margin: 0px auto;
  255. }
  256. .personalIM .table tr td {
  257. /*text-align: center;*/
  258. }
  259. .personalIM .table tr td img {
  260. margin-right: 5px;
  261. }
  262. .personalIM .table tr td input[type=text] {
  263. width: 100%;
  264. height: 20px;
  265. border: 0;
  266. outline: none;
  267. padding:3px 3px;
  268. line-height:200px;
  269. /*text-align: center;*/
  270. }
  271. .personalIM .table tr td .form-control {
  272. width: 100%;border:0px; resize: none;
  273. padding:3px 3px;
  274. font-family:'';
  275. }
  276. .personalIM .table tr td:first-child {
  277. text-align: right;
  278. width: 20%;
  279. font-size:14px;
  280. }
  281. .personalIM .table tr td select {
  282. vertical-align: middle;
  283. font-size: 14px;
  284. outline: none;
  285. width: 59px;
  286. height: 24px;
  287. padding-left: 5px;
  288. border:0px;
  289. }
  290. #xxlb{
  291. width:100%;
  292. }
  293. #keys{
  294. width:100%;
  295. }
  296. .personalIM .table tr td button {
  297. color: #fff;
  298. background: #ac2e3b;
  299. border: 0;
  300. padding: 5px 10px;
  301. border-radius: 3px;
  302. margin: 10px auto;
  303. display: block;
  304. }
  305. /*在线客服 - 智能回复 样式 end*/