style.css 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332
  1. body{
  2. margin: 0;
  3. padding: 0;
  4. }
  5. :focus {
  6. outline: 0
  7. }
  8. ::-webkit-scrollbar-track{background-color:transparent;}
  9. ::-webkit-scrollbar{width:5px;background-color:transparent;}
  10. ::-webkit-scrollbar-thumb{background-color:#b8b8b8;border-radius:15px;}
  11. .chat_room {
  12. width: 700px;
  13. height: 595px;
  14. border: 1px solid #cacaca;
  15. /* border-radius: 4px; */
  16. margin: auto;
  17. margin-top: 50px;
  18. position: relative;
  19. }
  20. .chat_room>.list {
  21. width: 160px;
  22. height: 100%;
  23. float: left;
  24. border-right: 1px solid #e7e7e7;
  25. }
  26. .chat_room .list .list_1{
  27. box-sizing: border-box;
  28. padding: 8px;
  29. display: inline-block;
  30. width: 100%;
  31. position: relative;
  32. }
  33. .chat_room .list .on{
  34. background: #e8e8e8;
  35. }
  36. .chat_room .list .list_1:hover{
  37. background: #e8e8e8;
  38. }
  39. .chat_room .list .img {width: 38px;background: #ddd;float: left;height: 38px;border-radius: 55px;overflow: hidden;cursor: pointer;}
  40. .chat_room .list .img img{
  41. width: 100%;
  42. height: 100%;
  43. }
  44. .chat_room .list .title {font-size: 14px;text-indent: 9px;color: #353535;}
  45. .chat_room .list .info {font-size: 12px;color: #8f8f8f;text-indent: 13px;padding-top: 2px;}
  46. .chat_room>.content {
  47. float: right;
  48. width: calc(100% - 161px);
  49. height: 75%;
  50. border-bottom: 1px solid #e6e6e6;
  51. overflow: auto;
  52. position: absolute;
  53. right: 0;
  54. background: #fff;
  55. }
  56. .chat_room .input {
  57. float: left;
  58. width: calc(100% - 161px);
  59. height: 25%;
  60. position: absolute;
  61. bottom: 0;
  62. right: 0;
  63. }
  64. .chat_room .input .input_content{
  65. width:100%;
  66. height: 66%;
  67. padding: 8px;
  68. box-sizing: border-box;
  69. overflow: overlay;
  70. margin-top: 4px;
  71. border: 0;
  72. display: block;
  73. resize: none;
  74. }
  75. .chat_room .input input {
  76. position: absolute;
  77. bottom: 15px;
  78. right: 15px;
  79. border: 0;
  80. border-radius: 2px;
  81. padding: 4px 11px;
  82. color: #fff;
  83. cursor: pointer;
  84. background: rgb(38,131,245);
  85. }
  86. .chat_room .content .me{
  87. display: inline-block;
  88. padding: 13px 12px;
  89. box-sizing: border-box;
  90. position: relative;
  91. width: 100%;
  92. }
  93. .chat_room .content .me .img{
  94. width: 39px;
  95. height: 39px;
  96. background: #ddd;
  97. border-radius: 55px;
  98. float: right;
  99. cursor: pointer;
  100. overflow: hidden;
  101. }
  102. .chat_room .content .me .img img{
  103. width: 100%;
  104. height: 100%;
  105. }
  106. .chat_room .content .me p.name{
  107. float: right;
  108. margin: -2px 9px 0 0;
  109. color: #2d2d2d;
  110. font-size: 15px;
  111. max-width: 150px;
  112. overflow: hidden;
  113. word-break: keep-all;
  114. }
  115. .chat_room .content .me p.content{
  116. float: right;
  117. border: 0;
  118. margin: -18px 49px 0 0;
  119. width: auto;
  120. max-width: 61%;
  121. height: auto;
  122. text-align: left;
  123. word-wrap: break-word;
  124. background: rgb(38,131,245);
  125. border-radius: 9px;
  126. box-sizing: border-box;
  127. padding: 9px 17px;
  128. color: #f4f4f4;
  129. }
  130. .chat_room .content .me p.content span{
  131. display: block;
  132. clear: both;
  133. width: 100%;
  134. text-align: right;
  135. color: #f4f4f4;
  136. margin-top: 8px;
  137. font-size: 13px;
  138. }
  139. .chat_room .content .other{
  140. display: inline-block;
  141. padding: 13px 12px;
  142. box-sizing: border-box;
  143. position: relative;
  144. width: 100%;
  145. }
  146. .chat_room .content .other .img{
  147. width: 39px;
  148. height: 39px;
  149. background: #ddd;
  150. border-radius: 55px;
  151. float: left;
  152. cursor: pointer;
  153. overflow: hidden;
  154. }
  155. .chat_room .content .other .img img{
  156. width: 100%;
  157. height: 100%;
  158. }
  159. .chat_room .content .other p.name{
  160. float: left;
  161. margin: -2px 0px 0 10px;
  162. color: #2d2d2d;
  163. font-size: 15px;
  164. max-width: 150px;
  165. overflow: hidden;
  166. word-break: keep-all;
  167. }
  168. .chat_room .content .other p.content{
  169. float: left;
  170. border: 0;
  171. margin: -18px 9px 0 49px;
  172. width: auto;
  173. max-width: 61%;
  174. height: auto;
  175. text-align: left;
  176. word-wrap: break-word;
  177. background: rgb(38,131,245);
  178. border-radius: 9px;
  179. box-sizing: border-box;
  180. padding: 9px 17px;
  181. color: #f4f4f4;
  182. }
  183. .chat_room .content .other p.content span{
  184. display: block;
  185. clear: both;
  186. width: 100%;
  187. text-align: left;
  188. color: #f4f4f4;
  189. margin-top: 8px;
  190. font-size: 13px;
  191. }
  192. .setting{
  193. position: fixed;
  194. top: 0;
  195. left: 0;
  196. width: 100%;
  197. height: 100%;
  198. background: rgba(0, 0, 0, 0.67);
  199. }
  200. .setting .setting_main{
  201. width: 471px;
  202. height: 290px;
  203. background: #fff;
  204. margin: auto;
  205. position: relative;
  206. top: 20%;
  207. border-radius: 7px;
  208. box-sizing: border-box;
  209. padding: 16px;
  210. }
  211. .setting .setting_main .img{
  212. width: 90px;
  213. height: 90px;
  214. background: #ddd;
  215. border-radius: 50%;
  216. margin: auto;
  217. margin-top: 10px;
  218. overflow: hidden;
  219. cursor: pointer;
  220. position: relative;
  221. }
  222. .setting .setting_main .img:hover span{
  223. opacity: 1;
  224. }
  225. .setting .setting_main .img img{
  226. width: 100%;
  227. height: 100%;
  228. }
  229. .setting .setting_main .img span{
  230. font-size: 13px;
  231. display: block;
  232. color: #2b2929;
  233. transition: 0.3s;
  234. position: absolute;
  235. top: 32px;
  236. width: 100%;
  237. opacity: 1;
  238. text-align: center;
  239. }
  240. .setting .setting_main .info{
  241. margin-top: 28px;
  242. text-align: center;
  243. }
  244. .setting .setting_main .info span{
  245. margin-right: 10px;
  246. }
  247. .setting .setting_main .info input{
  248. width: 150px;
  249. height: 25px;
  250. border: 1px solid #000;
  251. text-indent: 7px;
  252. }
  253. .setting .setting_main .ok{
  254. width: 248px;
  255. height: 39px;
  256. display: block;
  257. border: 1px solid #333333;
  258. color: #616266;
  259. margin: auto;
  260. cursor: pointer;
  261. background: #fff;
  262. margin-top: 20px;
  263. }
  264. .prompt{
  265. font-size: 55px;
  266. color: #f00;
  267. position: absolute;
  268. top: -45px;
  269. right: 8px;
  270. }
  271. .chat_room .user_list{
  272. position: absolute;
  273. top: -1px;
  274. right: -154px;
  275. width: 152px;
  276. height: 65%;
  277. box-sizing: border-box;
  278. /* padding: 5px 10px; */
  279. background: #eee;
  280. }
  281. .chat_room .user_list .title{
  282. padding: 10px 10px;
  283. }
  284. .chat_room .user_list .list{
  285. width: 100%;
  286. height: calc(100% - 41px);
  287. overflow: auto;
  288. }