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

chat.css 6.4KB

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