Aucune description

chat.css 5.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279
  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: 900px;
  15. height: 600px;
  16. overflow: hidden;
  17. border-radius: 3px;
  18. position: absolute;
  19. z-index: 10000;
  20. right: 200px;
  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;s
  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 .chat_main ,.message_mincon{
  47. position: relative;
  48. /*overflow: hidden;*/
  49. background-color: #eee;
  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.activess ,.chat_left li.activess{
  100. background-color: hsla(0,0%,100%,.1);
  101. }
  102. .chat_sidebar_list li.activess .pieHide,.chat_sidebar_list li.activess .pieShow{
  103. display: none!important;
  104. }
  105. .chat_sidebar_list li .pieShow{
  106. display: block!important;
  107. }
  108. .chat_sidebar_list li.activess:hover ,.chat_left li.activess:hover{
  109. background-color: hsla(0,0%,100%,.1);
  110. }
  111. .chat_sidebar_list li:hover ,.chat_left li:hover{
  112. background-color: hsla(0,0%,100%,.03);
  113. }
  114. /*chat_sidebar结束*/
  115. /*聊天区域开始*/
  116. .message_count{
  117. display: inline-block;
  118. position: absolute;
  119. right: 0;
  120. border-radius: 50%;
  121. background: red;
  122. color: #fff;
  123. }
  124. .disnone{
  125. display: none;
  126. }
  127. .main_message{
  128. height: calc(100% - 160px);
  129. }
  130. .chat_person{
  131. position: absolute;
  132. width: 100%;
  133. top: 0;
  134. left: 0;
  135. height: 2pc;
  136. line-height: 2pc;
  137. border-bottom: 1px solid #ddd;
  138. background: #fff;
  139. }
  140. .main_message li{
  141. margin-bottom: 15px;
  142. }
  143. .main_message .message_time{
  144. margin: 7px 0;
  145. text-align: center;
  146. }
  147. .main_message .ver_middle{
  148. float: left;
  149. margin: 0 10px 0 0;
  150. border-radius: 3px;
  151. }
  152. .main_message .message_text{
  153. display: inline-block;
  154. position: relative;
  155. padding: 0 10px;
  156. max-width: calc(100% - 40px);
  157. min-height: 30px;
  158. line-height: 2.5;
  159. font-size: 9pt;
  160. text-align: left;
  161. word-break: break-all;
  162. background-color: #fafafa;
  163. border-radius: 4px;
  164. }
  165. .main_message .message_text:before{
  166. content: " ";
  167. position: absolute;
  168. top: 9px;
  169. right: 100%;
  170. border: 6px solid transparent;
  171. border-right-color: #fafafa;
  172. }
  173. .main_message .self {
  174. text-align: right;
  175. }
  176. .main_message .self .ver_middle {
  177. float: right;
  178. margin: 0 0 0 10px;
  179. }
  180. .main_message .self .message_text {
  181. background-color: #b2e281;
  182. }
  183. .main_message .self .message_text:before {
  184. right: inherit;
  185. left: 100%;
  186. border-right-color: transparent;
  187. border-left-color: #b2e281;
  188. }
  189. .main_sendMessage{
  190. position: absolute;
  191. width: 100%;
  192. bottom: 0;
  193. left: 0;
  194. height: 10pc;
  195. border-top: 1px solid #ddd;
  196. background: #fff;
  197. }
  198. .main_sendMessage textarea{
  199. padding: 10px;
  200. height: 80%;
  201. width: 100%;
  202. border: none;
  203. outline: 0;
  204. font-family: Micrsofot Yahei;
  205. resize: none;
  206. }
  207. .main_sendMessage .send_btn{
  208. height: 20%;
  209. text-align: right;
  210. color: #4d4d4d;
  211. padding-right: 20px;
  212. }
  213. .main_sendMessage .send_btn button{
  214. border: 1px solid #ccc;
  215. background: #fff;
  216. outline: none;
  217. }
  218. .main_sendMessage .send_btn button:hover{
  219. background: #b2e281;
  220. }
  221. /*聊天区域结束*/
  222. /*后来添加改变的*/
  223. .more {
  224. display: block;
  225. text-align: center;
  226. }
  227. .more:hover {
  228. text-decoration: underline;
  229. }
  230. .tabMain{
  231. display: none;
  232. height: 100%;
  233. }
  234. .tabMain.activess{
  235. display: block!important;
  236. }
  237. .notice{
  238. display: block;
  239. text-align: center;
  240. color: red;
  241. }
  242. .chatlist_con{
  243. overflow-y: auto;
  244. width: 100%;
  245. height: 100%;
  246. padding: 20px 9px;
  247. box-sizing: border-box;
  248. }
  249. .chat_main{
  250. float: left;
  251. width: 700px;
  252. }
  253. .closeds{
  254. position: absolute;
  255. right: 10px;
  256. top: 33%;
  257. display: none;
  258. }
  259. .pie{
  260. position: absolute;
  261. right: 30px;
  262. top: 33%;
  263. display: none;
  264. }
  265. .sidebar_list li{
  266. position: relative;
  267. }
  268. .sidebar_list li:hover .closeds{
  269. display: block;
  270. }
  271. .sidebar_list li .closeds:hover{
  272. color: red;
  273. }