郑州第一人民医院UI

chat.css 7.0KB

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