Нет описания

chat.css 5.9KB

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