Нет описания

chat.css 7.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506
  1. .open_chat {
  2. font-size: 25px;
  3. line-height: 18px;
  4. text-align: center;
  5. padding: 10px 15px;
  6. -webkit-box-sizing: border-box;
  7. -moz-box-sizing: border-box;
  8. box-sizing: border-box;
  9. /*position: fixed;*/
  10. position: fixed;
  11. bottom: 1%;
  12. left: 50%;
  13. z-index: 12222223;
  14. background: #0489ac;
  15. color: #fff;
  16. cursor: pointer;
  17. display: block;
  18. }
  19. .mark{
  20. width: 80px;
  21. height: 80px;
  22. position: absolute;
  23. top: -43px;
  24. right: -75px;
  25. background-color: rgba(255,255,255,0);
  26. display: none;
  27. }
  28. .open_chat .before {
  29. position: absolute;
  30. padding: 5px;
  31. background: red;
  32. border-radius: 50%;
  33. display: none;
  34. right: -4px;
  35. top: -4px;
  36. }
  37. .open_chat .before.show {
  38. display: block!important;
  39. }
  40. .open_chat .before.hide {
  41. display: none!important;
  42. }
  43. body {
  44. color: #4d4d4d;
  45. font: 14px/1.4em 'Helvetica Neue', Helvetica, 'Microsoft Yahei', Arial, sans-serif;
  46. background: #f5f5f5 url(../img/chat_bg.jpg) no-repeat center;
  47. background-size: cover;
  48. }
  49. ul,
  50. li {
  51. list-style: none;
  52. margin: 0;
  53. padding: 0;
  54. }
  55. #chat {
  56. margin: 20px auto;
  57. width: 900px;
  58. height: 600px;
  59. overflow: hidden;
  60. border-radius: 3px;
  61. position: absolute;
  62. z-index: 10000;
  63. right: 470px;
  64. top: 20%;
  65. display: none;
  66. box-shadow: 1px 1px 50px rgba(0, 0, 0, .3);
  67. }
  68. .chat_left,
  69. .chat_sidebar {
  70. float: left;
  71. s
  72. }
  73. .chat_left ul li {
  74. /*padding: 9pt 15px;*/
  75. padding: 10px 10px;
  76. border-bottom: 1px solid #292c33;
  77. cursor: pointer;
  78. color: #f4f4f4;
  79. }
  80. .chat_left ul li .chat_name {
  81. margin: 0;
  82. }
  83. .chat_sidebar {
  84. width: 200px;
  85. color: #f4f4f4;
  86. background-color: #2e3238;
  87. }
  88. #chat .chat_left,
  89. #chat .chat_main,
  90. #chat .chat_sidebar,
  91. .message_mincon {
  92. height: 100%;
  93. }
  94. #chat .chat_main,
  95. .message_mincon {
  96. position: relative;
  97. /*overflow: hidden;*/
  98. background-color: #eee;
  99. }
  100. .ver_middle {
  101. vertical-align: middle;
  102. }
  103. #chat .chat_left {
  104. width: 70px;
  105. background: #2f3339;
  106. border-right: 1px solid #292c33;
  107. }
  108. /*chat_sidebar开始*/
  109. .pic_card {
  110. padding: 9pt;
  111. border-bottom: 1px solid #24272c;
  112. }
  113. .chat_name {
  114. display: inline-block;
  115. margin: 0 0 0 15px;
  116. font-size: 1pc;
  117. vertical-align: middle;
  118. font-size: 14px;
  119. }
  120. .chat_sidebar_foot {
  121. margin-top: 10px;
  122. }
  123. .sidebar_foot_seach {
  124. padding: 0 10px;
  125. width: 100%;
  126. font-size: 9pt;
  127. color: #fff;
  128. height: 30px;
  129. line-height: 30px;
  130. border: 1px solid #3a3a3a;
  131. border-radius: 4px;
  132. outline: 0;
  133. background-color: #26292e;
  134. }
  135. .chat_sidebar_list {
  136. height: 495px;
  137. overflow-y: auto;
  138. }
  139. .chat_sidebar_list li {
  140. /*padding: 9pt 15px;*/
  141. padding: 4pt 15px;
  142. border-bottom: 1px solid #292c33;
  143. cursor: pointer;
  144. -webkit-transition: background-color .1s;
  145. transition: background-color .1s;
  146. position: relative;
  147. }
  148. .chat_sidebar_list li.activess,
  149. .chat_left li.activess {
  150. background-color: hsla(0, 0%, 100%, .1);
  151. }
  152. .chat_sidebar_list li.activess .pieHide,
  153. .chat_sidebar_list li.activess .pieShow {
  154. display: none!important;
  155. }
  156. .chat_sidebar_list li .pieShow {
  157. display: block!important;
  158. }
  159. .chat_sidebar_list li.activess:hover,
  160. .chat_left li.activess:hover {
  161. background-color: hsla(0, 0%, 100%, .1);
  162. }
  163. /*.chat_sidebar_list li:hover,
  164. .chat_left li:hover {
  165. background-color: hsla(0, 0%, 100%, .03);
  166. }*/
  167. /*chat_sidebar结束*/
  168. /*聊天区域开始*/
  169. .message_count {
  170. display: inline-block;
  171. position: absolute;
  172. right: 0;
  173. border-radius: 50%;
  174. background: red;
  175. color: #fff;
  176. }
  177. .disnone {
  178. display: none;
  179. }
  180. .main_message {
  181. height: calc(100% - 160px);
  182. padding: 0 10pxchatlist_con ;
  183. }
  184. .chat_person {
  185. position: absolute;
  186. width: 100%;
  187. top: 0;
  188. left: 0;
  189. height: 2pc;
  190. line-height: 2pc;
  191. border-bottom: 1px solid #ddd;
  192. background: #fff;
  193. }
  194. .main_message li {
  195. margin-bottom: 15px;
  196. }
  197. .main_message .message_time {
  198. margin: 7px 0;
  199. text-align: center;
  200. }
  201. .main_message .ver_middle {
  202. float: left;
  203. margin: 0 10px 0 0;
  204. border-radius: 3px;
  205. }
  206. .main_message .message_text ,.message_img{
  207. display: inline-block;
  208. position: relative;
  209. padding: 0 10px;
  210. max-width: calc(100% - 40px);
  211. min-height: 30px;
  212. line-height: 2.5;
  213. font-size: 9pt;
  214. text-align: left;
  215. word-break: break-all;
  216. background-color: #fafafa;
  217. border-radius: 4px;
  218. }
  219. .message_img{
  220. background-color: rgba(255,255,255,0);
  221. }
  222. .main_message .message_text:before,.message_img:before {
  223. content: " ";
  224. position: absolute;
  225. top: 9px;
  226. right: 100%;
  227. border: 6px solid transparent;
  228. border-right-color: #fafafa;
  229. }
  230. .main_message .self {
  231. text-align: right;
  232. }
  233. .main_message .self .ver_middle {
  234. float: right;
  235. margin: 0 0 0 10px;
  236. }
  237. .main_message .self .message_text {
  238. margin: 10px 0;
  239. /* background-color: #b2e281; */
  240. }
  241. .main_message .self .message_text:before,.message_img:before {
  242. right: inherit;
  243. left: 100%;
  244. border-right-color: transparent;
  245. /* border-left-color: #b2e281; */
  246. }
  247. .main_sendMessage {
  248. position: absolute;
  249. width: 100%;
  250. bottom: 0;
  251. left: 0;
  252. height: 10pc;
  253. border-top: 1px solid #ddd;
  254. background: #fff;
  255. }
  256. .main_sendMessage textarea {
  257. padding: 10px;
  258. height: 80%;
  259. width: 100%;
  260. border: none;
  261. outline: 0;
  262. font-family: Micrsofot Yahei;
  263. resize: none;
  264. }
  265. .main_sendMessage .send_btn {
  266. height: 20%;
  267. text-align: right;
  268. color: #4d4d4d;
  269. padding-right: 20px;
  270. margin-top: -10px;
  271. }
  272. .main_sendMessage .send_btn button,.btns {
  273. border: 1px solid #ccc;
  274. background: #fff;
  275. outline: none;
  276. padding: 3px 15px;
  277. border-radius: 5px;
  278. }
  279. .main_sendMessage .send_btn button:hover {
  280. background: rgb(36,159,234);
  281. color: #fff;
  282. }
  283. /*聊天区域结束*/
  284. /*后来添加改变的*/
  285. .more {
  286. display: block;
  287. text-align: center;
  288. }
  289. .more:hover {
  290. text-decoration: underline;
  291. }
  292. .tabMain {
  293. display: block;
  294. height: 100%;
  295. }
  296. .tabMain.activess {
  297. display: block!important;
  298. }
  299. .notice {
  300. display: block;
  301. text-align: center;
  302. color: red;
  303. }
  304. .chatlist_con {
  305. overflow-y: auto;
  306. width: 100%;
  307. height: 100%;
  308. padding:20px 27px 60px;
  309. box-sizing: border-box;
  310. }
  311. .chat_main {
  312. float: left;
  313. width: 700px;
  314. }
  315. .closeds {
  316. position: absolute;
  317. right: 10px;
  318. top: 33%;
  319. display: none;
  320. }
  321. .pie {
  322. position: absolute;
  323. right: 30px;
  324. top: 33%;
  325. display: none;
  326. }
  327. .sidebar_list li {
  328. position: relative;
  329. }
  330. .sidebar_list li:hover .closeds {
  331. display: block;
  332. }
  333. .sidebar_list li .closeds:hover {
  334. color: red;
  335. }
  336. .close_icon{
  337. font-size: 27px;
  338. font-weight: 600;
  339. position: absolute;
  340. right: 21px;
  341. z-index: 40000;
  342. top: 10px;
  343. cursor: pointer;
  344. }
  345. .name{
  346. border-bottom: 1px solid rgb(221,221,221);
  347. text-align: left;
  348. font-size: 20px;
  349. padding: 16px 20px;
  350. color: rgb(0,0,0);
  351. cursor: move;
  352. }
  353. .reply_btn{
  354. border: 1px solid #ccc;
  355. background: #fff;
  356. outline: none;
  357. }
  358. .reply_btn:hover{
  359. background: #b2e281;
  360. }
  361. .con{
  362. position: absolute;
  363. bottom: 55px;
  364. right: 20px;
  365. width: 210px;
  366. max-height: 326px;
  367. overflow: auto;
  368. padding: 7px;
  369. background-color: rgb(236,254,255);
  370. z-index: 120;
  371. font-size: 9pt;
  372. border: 1px solid rgb(221,221,221);
  373. display: none;
  374. }
  375. .con li{
  376. padding: 5px 10px;
  377. margin-bottom: 4px;
  378. border-radius: 4px;
  379. }
  380. .con li:hover{
  381. background-color: rgb(36,159,234);
  382. }
  383. .replyType_cont{
  384. position: absolute;
  385. bottom: 45px;
  386. right: 26px;
  387. width: 165px;
  388. max-height: 326px;
  389. overflow: auto;
  390. padding: 7px;
  391. background-color:rgb(236,254,255);
  392. z-index: 1200;
  393. font-size: 9pt;
  394. border: 1px solid rgb(221,221,221);
  395. display: none;
  396. }
  397. .replyType_cont li{
  398. padding: 5px 10px;
  399. margin-bottom: 4px;
  400. border-radius: 4px;
  401. }
  402. .replyType_cont li:hover{
  403. background-color: rgb(36,159,234);
  404. }
  405. #preview{
  406. position: absolute;
  407. top: 7px;
  408. left: 10px;
  409. }
  410. .message_img img{
  411. width: 135px;
  412. height: 115px;
  413. background-size: 100% 100%;
  414. background-repeat: no-repeat;
  415. background-position: center;
  416. }
  417. .imgDetial{
  418. background-color: rgb(72,72,72);
  419. width: 100%;
  420. height: 100%;
  421. position: absolute;
  422. top: 0;
  423. left: 0;
  424. z-index: 1000000;
  425. display: none;
  426. text-align: center;
  427. padding: 50px 0;
  428. overflow: auto;
  429. box-sizing: border-box;
  430. opacity: 0.95;
  431. }
  432. .closeIcon{
  433. font-size: 50px;
  434. color: #fff;
  435. position: absolute;
  436. top: 25px;
  437. right: 25px;
  438. cursor: pointer;
  439. display: inline-block;
  440. }