郑州第一人民医院UI

chat.css 7.6KB

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