济源12345的前端

chat.css 4.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222
  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. /*width: 900px;*/
  16. /*height: 100%;*/
  17. height: 450px;
  18. overflow: hidden;
  19. border-radius: 3px;
  20. }
  21. .chat_left,.chat_sidebar{
  22. float: left;
  23. }
  24. .chat_left ul li{
  25. /*padding: 9pt 15px;*/
  26. padding: 10px 10px;
  27. border-bottom: 1px solid #292c33;
  28. cursor: pointer;
  29. color: #f4f4f4;
  30. }
  31. .chat_left ul li .chat_name{
  32. margin: 0;
  33. }
  34. .chat_sidebar{
  35. width: 200px;
  36. color: #f4f4f4;
  37. background-color: #2e3238;
  38. }
  39. #chat .chat_left,#chat .chat_main, #chat .chat_sidebar,.message_mincon{
  40. height: 100%;
  41. }
  42. #chat .chat_main ,.message_mincon{
  43. position: relative;
  44. /*overflow: hidden;*/
  45. background-color: #eee;
  46. height: 100%;
  47. }
  48. .ver_middle{
  49. vertical-align: middle;
  50. }
  51. #chat .chat_left{
  52. width: 70px;
  53. background: #2f3339;
  54. border-right: 1px solid #292c33;
  55. }
  56. /*chat_sidebar开始*/
  57. .pic_card{
  58. padding: 9pt;
  59. border-bottom: 1px solid #24272c;
  60. }
  61. .chat_name{
  62. display: inline-block;
  63. margin: 0 0 0 15px;
  64. font-size: 1pc;
  65. vertical-align: middle;
  66. font-size: 14px;
  67. }
  68. .chat_sidebar_foot{
  69. margin-top: 10px;
  70. }
  71. .sidebar_foot_seach{
  72. padding: 0 10px;
  73. width: 100%;
  74. font-size: 9pt;
  75. color: #fff;
  76. height: 30px;
  77. line-height: 30px;
  78. border: 1px solid #3a3a3a;
  79. border-radius: 4px;
  80. outline: 0;
  81. background-color: #26292e;
  82. }
  83. .chat_sidebar_list{
  84. height: 495px;
  85. overflow-y: auto;
  86. }
  87. .chat_sidebar_list li{
  88. /*padding: 9pt 15px;*/
  89. padding: 4pt 15px;
  90. border-bottom: 1px solid #292c33;
  91. cursor: pointer;
  92. -webkit-transition: background-color .1s;
  93. transition: background-color .1s;
  94. position: relative;
  95. }
  96. .chat_sidebar_list li.actives ,.chat_left li.actives{
  97. background-color: hsla(0,0%,100%,.1);
  98. }
  99. .chat_sidebar_list li.actives:hover ,.chat_left li.actives:hover{
  100. background-color: hsla(0,0%,100%,.1);
  101. }
  102. .chat_sidebar_list li:hover ,.chat_left li:hover{
  103. background-color: hsla(0,0%,100%,.03);
  104. }
  105. /*chat_sidebar结束*/
  106. /*聊天区域开始*/
  107. .message_count{
  108. display: inline-block;
  109. position: absolute;
  110. right: 0;
  111. border-radius: 50%;
  112. background: red;
  113. color: #fff;
  114. }
  115. .disnone{
  116. display: none;
  117. }
  118. .main_message{
  119. /*overflow-y: scroll;*/
  120. /*height: calc(100% - 195px);*/
  121. height: 300px;
  122. /*margin-top: 2pc;*/
  123. /*padding-top: 35px;*/
  124. }
  125. .chat_person{
  126. position: absolute;
  127. width: 100%;
  128. top: 0;
  129. left: 0;
  130. height: 35px;
  131. line-height: 35px;
  132. border-bottom: 1px solid #ddd;
  133. background: #fff;
  134. z-index: 1000;
  135. }
  136. .main_message li{
  137. margin-bottom: 15px;
  138. }
  139. .main_message .message_time{
  140. margin: 7px 0;
  141. text-align: center;
  142. }
  143. .main_message .ver_middle{
  144. float: left;
  145. margin: 0 10px 0 0;
  146. border-radius: 3px;
  147. }
  148. .main_message .message_text{
  149. display: inline-block;
  150. position: relative;
  151. padding: 0 10px;
  152. max-width: calc(100% - 108px);
  153. min-height: 30px;
  154. line-height: 2.5;
  155. font-size: 9pt;
  156. text-align: left;
  157. word-break: break-all;
  158. background-color: #fafafa;
  159. border-radius: 4px;
  160. }
  161. .main_message .message_text:before{
  162. content: " ";
  163. position: absolute;
  164. top: 9px;
  165. right: 100%;
  166. border: 6px solid transparent;
  167. border-right-color: #fafafa;
  168. }
  169. .main_message .self {
  170. text-align: right;
  171. }
  172. .main_message .self .ver_middle {
  173. float: right;
  174. margin: 0 0 0 10px;
  175. }
  176. .main_message .self .message_text {
  177. background-color: #b2e281;
  178. }
  179. .main_message .self .message_text:before {
  180. right: inherit;
  181. left: 100%;
  182. border-right-color: transparent;
  183. border-left-color: #b2e281;
  184. }
  185. .main_sendMessage{
  186. /*position: absolute;*/
  187. width: 100%;
  188. /*bottom: 0;
  189. left: 0;*/
  190. height: 150px;
  191. border-top: 1px solid #ddd;
  192. background: #fff;
  193. }
  194. .main_sendMessage textarea{
  195. padding: 10px;
  196. height: 55%;
  197. width: 98%;
  198. border: none;
  199. outline: 0;
  200. font-family: Micrsofot Yahei;
  201. resize: none;
  202. }
  203. .main_sendMessage .send_btn{
  204. height: 20%;
  205. text-align: right;
  206. color: #4d4d4d;
  207. padding-right: 20px;
  208. }
  209. .main_sendMessage .send_btn button{
  210. border: 1px solid #ccc;
  211. background: #fff;
  212. outline: none;
  213. }
  214. .main_sendMessage .send_btn button:hover{
  215. background: #b2e281;
  216. }
  217. /*聊天区域结束*/