chat-room.wxss 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275
  1. /* pages/chat-room/chat-room.wxss */
  2. .chat-room {
  3. width: 100%;
  4. padding: 30rpx;
  5. box-sizing: border-box;
  6. }
  7. .otherItem {
  8. width: 100%;
  9. height: 108rpx;
  10. display: flex;
  11. align-items: center;
  12. padding-bottom: 10rpx;
  13. border-bottom: solid 1rpx #ece9e4;
  14. }
  15. .otherItem image {
  16. width: 100rpx;
  17. height: 100rpx;
  18. margin-right: 22rpx;
  19. }
  20. .otherItem text {
  21. font-size: 34rpx;
  22. color: #000;
  23. }
  24. .chat {
  25. width: 100%;
  26. display: flex;
  27. height: 108rpx;
  28. display: inline-flex;
  29. flex-direction: row;
  30. border-bottom: solid 1rpx #ece9e4;
  31. padding-bottom: 10rpx;
  32. margin-top: 20rpx;
  33. }
  34. .photo {
  35. width: 100rpx;
  36. height: 100rpx;
  37. border-radius: 50rpx;
  38. }
  39. .item-row {
  40. display: inline-flex;
  41. flex-direction: column;
  42. height: 100rpx;
  43. width: 82%;
  44. margin-left: 15rpx;
  45. }
  46. .chat-name {
  47. font-size: .9em;
  48. width: 70%;
  49. display: -webkit-box;
  50. overflow: hidden;
  51. text-overflow: ellipsis;
  52. -webkit-box-orient: vertical;
  53. -webkit-line-clamp: 1;
  54. }
  55. .chat-time {
  56. font-size: .7em;
  57. color: #9a9a9a;
  58. position: absolute;
  59. right: 40rpx;
  60. display: -webkit-box;
  61. overflow: hidden;
  62. text-overflow: ellipsis;
  63. -webkit-box-orient: vertical;
  64. -webkit-line-clamp: 1;
  65. }
  66. .chat-content {
  67. font-size: .9em;
  68. color: #aaa9a8;
  69. line-height: 50rpx;
  70. max-width: 80%;
  71. display: -webkit-box;
  72. overflow: hidden;
  73. text-overflow: ellipsis;
  74. -webkit-box-orient: vertical;
  75. -webkit-line-clamp: 1;
  76. }
  77. .unread-num {
  78. background-color: #e95543;
  79. width: 40rpx;
  80. height: 40rpx;
  81. border-radius: 20rpx;
  82. text-align: center;
  83. color: white;
  84. position: absolute;
  85. right: 48rpx;
  86. margin-top: 50rpx;
  87. box-sizing: border-box;
  88. font-size: .8em;
  89. }
  90. .mask {
  91. background-color: black;
  92. opacity: 0.4;
  93. position: fixed;
  94. top: 80rpx;
  95. left: 0;
  96. right: 0;
  97. bottom: 0;
  98. }
  99. .chat_list_wraper {
  100. padding-bottom: 270rpx;
  101. box-sizing: border-box;
  102. height: 100%;
  103. position: fixed;
  104. top: 128rpx;
  105. overflow: hidden;
  106. }
  107. .chat_list {
  108. width: 100%;
  109. height: 128rpx;
  110. overflow: hidden;
  111. }
  112. .tap_mask {
  113. width: 100%;
  114. overflow: hidden;
  115. }
  116. .list_box {
  117. margin: 0 32rpx;
  118. height: 126rpx;
  119. border-bottom: 0.5px #E5E5E5 solid;
  120. display: flex;
  121. }
  122. .list_left {
  123. width: 63%;
  124. height: 100%;
  125. float: left;
  126. display: flex;
  127. flex-direction: row;
  128. align-items: center;
  129. flex: 1;
  130. }
  131. .list_text {
  132. width: 60%;
  133. height: 100%;
  134. float: left;
  135. font-size: 28rpx;
  136. }
  137. .list_pic {
  138. margin-right: 20rpx;
  139. }
  140. .list_pic image {
  141. display: block;
  142. width: 88rpx;
  143. height: 88rpx;
  144. }
  145. .list_user {
  146. font-size: 34rpx;
  147. color: #000;
  148. position: relative;
  149. top: 22rpx;
  150. overflow: hidden;
  151. width: 350rpx;
  152. display: inline-block;
  153. text-overflow: ellipsis;
  154. }
  155. .em-msgNum {
  156. position: absolute;
  157. right: 32rpx;
  158. top: 76rpx;
  159. min-width: 28rpx;
  160. height: 28rpx;
  161. border-radius: 14rpx;
  162. background: #f04134;
  163. color: #fff;
  164. line-height: 28rpx;
  165. font-size: 24rpx;
  166. text-align: center;
  167. }
  168. .list_word {
  169. height: 40rpx;
  170. display: block;
  171. margin-top: 0;
  172. overflow: hidden;
  173. text-overflow: ellipsis;
  174. white-space: nowrap;
  175. position: absolute;
  176. width: 70%;
  177. font-size: 24rpx;
  178. color: #9B9B9B;
  179. top: 66rpx;
  180. }
  181. .list_right {
  182. width: 240rpx;
  183. height: 100%;
  184. float: right;
  185. font-size: 24rpx;
  186. text-align: right;
  187. }
  188. .list_right text:first-child {
  189. display: block;
  190. line-height: 60rpx;
  191. margin: 12rpx auto auto auto;
  192. }
  193. .list_right text:last-child {
  194. height: 40rpx;
  195. font-size: 26rpx;
  196. color: #CFCFCF;
  197. display: block;
  198. margin-top: 4rpx;
  199. }
  200. .chat_noChat {
  201. text-align: center;
  202. font-size: 30rpx;
  203. color: #9B9B9B;
  204. margin-top: 400rpx;
  205. }
  206. .main_title_hide {
  207. top: -128rpx;
  208. transition: top 0.5s;
  209. }
  210. .main_title_show {
  211. top: 0;
  212. transition: top 0.5s;
  213. }
  214. .goTop {
  215. top: 0rpx;
  216. transition: top 0.5s;
  217. padding-bottom: 104rpx !important;
  218. }
  219. .goTopX {
  220. top: 0rpx;
  221. transition: top 0.5s;
  222. padding-bottom: 140rpx !important;
  223. }
  224. .goback {
  225. top: 128rpx;
  226. transition: top 0.5s;
  227. }
  228. .scan-jion-group {
  229. background-color: #516C9C;
  230. width: 130rpx;
  231. height: 130rpx;
  232. border-radius: 65rpx;
  233. position: absolute;
  234. right: 19rpx;
  235. bottom: 92rpx;
  236. color: #FEFEFE;
  237. font-size: 22rpx;
  238. display: flex;
  239. flex-direction: column;
  240. align-items: center;
  241. justify-content: center;
  242. }