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

chat.css 7.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417
  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. ::-webkit-scrollbar-thumb {
  13. background-color: #ccc
  14. }
  15. #chat {
  16. margin: 20px auto;
  17. width: 1300px;
  18. height: 600px;
  19. overflow: hidden;
  20. border-radius: 3px;
  21. position: absolute;
  22. z-index: 10000;
  23. right: 100px;
  24. top: 20%;
  25. display: none;
  26. box-shadow: 1px 1px 50px rgba(0, 0, 0, .3);
  27. }
  28. .chat_left, .chat_sidebar {
  29. float: left;
  30. }
  31. .chat_left ul li {
  32. /*padding: 9pt 15px;*/
  33. padding: 10px 10px;
  34. border-bottom: 1px solid #292c33;
  35. cursor: pointer;
  36. color: #f4f4f4;
  37. }
  38. .chat_left ul li .chat_name {
  39. margin: 0;
  40. }
  41. .chat_sidebar {
  42. width: 200px;
  43. color: #f4f4f4;
  44. background-color: #2e3238;
  45. }
  46. #chat .chat_left, #chat .chat_main, #chat .chat_sidebar, .message_mincon {
  47. height: 100%;
  48. }
  49. .chat_left, .chat_main, .chat_rightlist {
  50. border-right: #ddd 1px solid;
  51. }
  52. #chat .chat_main, .message_mincon {
  53. position: relative;
  54. /*overflow: hidden;*/
  55. background-color: #eee;
  56. }
  57. .ver_middle {
  58. vertical-align: middle;
  59. }
  60. #chat .chat_left {
  61. width: 70px;
  62. background: #2f3339;
  63. border-right: 1px solid #292c33;
  64. }
  65. /*chat_sidebar开始*/
  66. .pic_card {
  67. padding: 9pt;
  68. border-bottom: 1px solid #24272c;
  69. }
  70. .chat_name {
  71. display: inline-block;
  72. margin: 0 0 0 15px;
  73. font-size: 1pc;
  74. vertical-align: middle;
  75. font-size: 14px;
  76. }
  77. .chat_sidebar_foot {
  78. margin-top: 10px;
  79. }
  80. .sidebar_foot_seach {
  81. padding: 0 10px;
  82. width: 100%;
  83. font-size: 9pt;
  84. color: #fff;
  85. height: 30px;
  86. line-height: 30px;
  87. border: 1px solid #3a3a3a;
  88. border-radius: 4px;
  89. outline: 0;
  90. background-color: #26292e;
  91. }
  92. .chat_sidebar_list {
  93. height: 495px;
  94. overflow-y: auto;
  95. }
  96. .chat_sidebar_list li {
  97. /*padding: 9pt 15px;*/
  98. padding: 4pt 15px;
  99. border-bottom: 1px solid #292c33;
  100. cursor: pointer;
  101. -webkit-transition: background-color .1s;
  102. transition: background-color .1s;
  103. position: relative;
  104. }
  105. .chat_sidebar_list li.activess, .chat_left li.activess {
  106. background-color: hsla(0,0%,100%,.1);
  107. }
  108. .chat_sidebar_list li.activess .pieHide, .chat_sidebar_list li.activess .pieShow {
  109. display: none !important;
  110. }
  111. .chat_sidebar_list li .pieShow {
  112. display: block !important;
  113. }
  114. .chat_sidebar_list li.activess:hover, .chat_left li.activess:hover {
  115. background-color: hsla(0,0%,100%,.1);
  116. }
  117. .chat_sidebar_list li:hover, .chat_left li:hover {
  118. background-color: hsla(0,0%,100%,.03);
  119. }
  120. /*chat_sidebar结束*/
  121. /*聊天区域开始*/
  122. .message_count {
  123. display: inline-block;
  124. position: absolute;
  125. right: 0;
  126. border-radius: 50%;
  127. background: red;
  128. color: #fff;
  129. }
  130. .disnone {
  131. display: none;
  132. }
  133. .main_message {
  134. height: calc(100% - 129px);
  135. }
  136. .chat_person {
  137. position: absolute;
  138. width: 100%;
  139. top: 0;
  140. left: 0;
  141. height: 2pc;
  142. line-height: 2pc;
  143. border-bottom: 1px solid #ddd;
  144. background: #fff;
  145. }
  146. .main_message li {
  147. margin-bottom: 15px;
  148. }
  149. .main_message .message_time {
  150. margin: 7px 0;
  151. text-align: center;
  152. }
  153. .main_message .ver_middle {
  154. float: left;
  155. margin: 0 10px 0 0;
  156. border-radius: 3px;
  157. }
  158. .main_message .message_text {
  159. display: inline-block;
  160. position: relative;
  161. padding: 2px 10px 0 10px;
  162. max-width: calc(100% - 80px);
  163. min-height: 28px;
  164. line-height: 2;
  165. font-size: 9pt;
  166. text-align: left;
  167. word-break: break-all;
  168. background-color: #fafafa;
  169. border-radius: 4px;
  170. }
  171. .main_message .message_text:before {
  172. content: " ";
  173. position: absolute;
  174. top: 9px;
  175. right: 100%;
  176. border: 6px solid transparent;
  177. border-right-color: #fafafa;
  178. }
  179. .main_message .message_text p {
  180. margin: 2px 0 10px 0;
  181. line-height: 2;
  182. }
  183. .main_message .self {
  184. text-align: right;
  185. }
  186. .main_message .self .ver_middle {
  187. float: right;
  188. margin: 0 0 0 10px;
  189. }
  190. .main_message .self .message_text {
  191. background-color: #b2e281;
  192. }
  193. .main_message .self .message_text:before {
  194. right: inherit;
  195. left: 100%;
  196. border-right-color: transparent;
  197. border-left-color: #b2e281;
  198. }
  199. .main_sendMessage {
  200. position: absolute;
  201. width: 100%;
  202. bottom: 0;
  203. left: 0;
  204. height: 8pc;
  205. border-top: 1px solid #ddd;
  206. background: #fff;
  207. }
  208. .main_sendMessage textarea {
  209. padding: 10px;
  210. height: 70%;
  211. width: 100%;
  212. border: none;
  213. outline: 0;
  214. font-family: Micrsofot Yahei;
  215. resize: none;
  216. }
  217. .main_sendMessage .send_btn {
  218. height: 20%;
  219. text-align: right;
  220. color: #4d4d4d;
  221. padding-right: 16px;
  222. padding-bottom: 6px;
  223. }
  224. .main_sendMessage .send_btn button {
  225. border: 1px solid #ccc;
  226. background: #fff;
  227. outline: none;
  228. }
  229. .main_sendMessage .send_btn button:hover {
  230. background: #b2e281;
  231. }
  232. /*聊天区域结束*/
  233. /*聊天右侧列表开始*/
  234. .chat_rightlist {
  235. width: 500px;
  236. background-color: #eee;
  237. float: right;
  238. height: 100%;
  239. }
  240. .chat_ld-service {
  241. /*background-color: #2e3238 !important;*/
  242. border-bottom: 1px solid #ddd;
  243. }
  244. .chat_ld-service li {
  245. float: left;
  246. font-size: 14px;
  247. color: #444;
  248. padding: 8px 34px;
  249. cursor: pointer;
  250. }
  251. .chat_cr-click {
  252. border-bottom: 2px solid #00a1cb;
  253. }
  254. .chat_Shows {
  255. display: block !important;
  256. }
  257. .chat_complain {
  258. display: none;
  259. }
  260. .chat_search {
  261. width: 100%;padding: 10px;
  262. }
  263. .chat_lists {
  264. width: 100%; padding: 0px 20px 14px 20px; overflow-y: auto; height:502px;
  265. }
  266. .chat_list{
  267. width: 100%;
  268. }
  269. .chat_item {
  270. line-height:20px;
  271. font-size:12px;
  272. padding:0 0 6px 0;
  273. }
  274. .chat_lists li span{
  275. }
  276. /*搜索*/
  277. .chat_btns {
  278. background: #00a1cb;
  279. color: #fff;
  280. padding: 6px 20px;
  281. outline: none;
  282. font-size: 12px;
  283. margin-left: 6px;
  284. border: 0;
  285. border-radius: 3px;
  286. box-sizing: border-box;
  287. }
  288. input {
  289. background-color: #ddd;
  290. border: 1px solid #ccc;
  291. border-radius: 1px;
  292. color: inherit;
  293. padding: 4px 12px;
  294. width:100%;
  295. border-radius:3px;
  296. }
  297. .chat_item button {
  298. padding:1px 5px; margin-left:4px;
  299. }
  300. /*聊天右侧列表结束*/
  301. /*后来添加改变的*/
  302. .more {
  303. display: block;
  304. text-align: center;
  305. }
  306. .more:hover {
  307. text-decoration: underline;
  308. }
  309. .tabMain {
  310. display: none;
  311. height: 100%;
  312. }
  313. .tabMain.activess {
  314. display: block !important;
  315. }
  316. .notice {
  317. display: block;
  318. text-align: center;
  319. color: red;
  320. }
  321. .chatlist_con {
  322. overflow-y: auto;
  323. width: 100%;
  324. height: 100%;
  325. padding: 20px 9px;
  326. box-sizing: border-box;
  327. }
  328. .chat_main {
  329. float: left;
  330. width: 600px;
  331. }
  332. .closeds {
  333. position: absolute;
  334. right: 10px;
  335. top: 33%;
  336. display: none;
  337. }
  338. .pie {
  339. position: absolute;
  340. right: 30px;
  341. top: 33%;
  342. display: none;
  343. }
  344. .sidebar_list li {
  345. position: relative;
  346. }
  347. .sidebar_list li:hover .closeds {
  348. display: block;
  349. }
  350. .sidebar_list li .closeds:hover {
  351. color: red;
  352. }