msglist.wxss 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249
  1. /* comps/msglist/msglist.wxss */
  2. .scroll_view,
  3. .scroll_view_change {
  4. /*width: 100%;
  5. position: absolute;
  6. left: 0;
  7. top: 0;
  8. right: 0;
  9. bottom: 150rpx;*/
  10. box-sizing: border-box;
  11. /* height: 100%; */
  12. margin-bottom: 174rpx;
  13. /* padding-bottom: 174rpx; */
  14. background-color: #F0F4F7;
  15. }
  16. .scroll_view_X,
  17. .scroll_view_change_X {
  18. margin-bottom: 244rpx;
  19. }
  20. .scroll_view_change {
  21. /*bottom: 440rpx;*/
  22. margin-bottom: 590rpx;
  23. }
  24. .message {
  25. width: 100%;
  26. /* min-height: 130rpx; */
  27. height: auto;
  28. padding: 0 30rpx;
  29. /* position: relative; */
  30. /* display: block; */
  31. box-sizing: border-box;
  32. }
  33. .time {
  34. margin: 14rpx 0;
  35. text-align: center;
  36. }
  37. .time .time-text {
  38. display: inline-block;
  39. padding: 6rpx 20rpx 0 20rpx;
  40. font-size: 24rpx;
  41. color: #fff;
  42. line-height: 28rpx;
  43. border-radius: 4rpx;
  44. background-color: #dcdcdc;
  45. }
  46. .user .user-text {
  47. margin: auto 100rpx 8rpx;
  48. font-size: 20rpx;
  49. color: #dcdcdc;
  50. display: block;
  51. }
  52. .avatar {
  53. width: 72rpx;
  54. height: 72rpx;
  55. margin: 0 20rpx 0 0;
  56. border-radius: 6rpx;
  57. float: left;
  58. }
  59. .msg {
  60. display: inline-block;
  61. padding: 20rpx;
  62. max-width: calc(85% - 80rpx);
  63. min-height: 40rpx;
  64. font-size: 24rpx;
  65. /*overflow: hidden;*/
  66. text-align: left;
  67. word-break: break-all;
  68. background-color: #fff;
  69. border-radius: 26rpx;
  70. position: relative;
  71. margin-top: 24rpx;
  72. }
  73. .msg .msg_poprightarrow {
  74. position: absolute;
  75. right: -10rpx;
  76. height: 18rpx;
  77. width: 18rpx;
  78. margin-top: -10rpx;
  79. }
  80. .msg .msg_popleftarrow {
  81. position: absolute;
  82. left: -14rpx;
  83. height: 18rpx;
  84. width: 18rpx;
  85. margin-top: -10rpx;
  86. }
  87. .msg .msg-text {
  88. line-height: 40rpx;
  89. font-size: 32rpx;
  90. margin: 0;
  91. }
  92. .msg .msg-video {
  93. width: 300rpx;
  94. }
  95. /*.msg:before {
  96. content: " ";
  97. position: absolute;
  98. top: 9px;
  99. right: 100%;
  100. border: 6px solid transparent;
  101. border-right-color: #EDEDED;
  102. }*/
  103. .self {
  104. text-align: right;
  105. }
  106. .self .avatar {
  107. float: right;
  108. margin: 0 0 0 20rpx;
  109. }
  110. .user {
  111. position: relative;
  112. bottom: -30rpx;
  113. }
  114. .self .msg {
  115. background-color: #0873DE;
  116. color: #fff;
  117. }
  118. .self .msg:before {
  119. right: inherit;
  120. left: 100%;
  121. border-right-color: transparent;
  122. border-left-color: #b2e281;
  123. }
  124. .template {
  125. display: inline;
  126. }
  127. .err {
  128. width: 32rpx;
  129. height: 32rpx;
  130. position: absolute;
  131. left: -40rpx;
  132. }
  133. .hide {
  134. display: none;
  135. }
  136. .show {
  137. display: block;
  138. }
  139. .row-left {
  140. padding: 20rpx 0;
  141. width: 90%;
  142. display: inline-flex;
  143. align-items: flex-start;
  144. justify-content: flex-start;
  145. }
  146. .row-right {
  147. float: right;
  148. padding: 20rpx 0;
  149. width: 90%;
  150. display: inline-flex;
  151. align-items: flex-start;
  152. justify-content: flex-end;
  153. }
  154. .photo {
  155. width: 80rpx;
  156. height: 80rpx;
  157. border-radius: 40rpx;
  158. }
  159. .row-left .msgbox {
  160. display: flex;
  161. flex-direction: column;
  162. justify-content: flex-start;
  163. align-items: flex-start;
  164. margin-left: 20rpx;
  165. }
  166. .row-right .msgbox {
  167. display: flex;
  168. flex-direction: column;
  169. justify-content: flex-start;
  170. align-items: flex-end;
  171. margin-right: 20rpx;
  172. }
  173. .row-left .content {
  174. background-color: #fff;
  175. margin-left: 20rpx;
  176. border-radius: 10rpx;
  177. padding: 10rpx;
  178. max-width: 80%;
  179. }
  180. .row-right .content {
  181. background-color: #fff;
  182. margin-right: 20rpx;
  183. border-radius: 10rpx;
  184. padding: 10rpx;
  185. max-width: 80%;
  186. }
  187. .user-text {
  188. box-sizing: border-box;
  189. font-size: 22rpx;
  190. color: #AAAAAA;
  191. padding: 10rpx;
  192. }
  193. .msgbox {
  194. width: 90%;
  195. }
  196. .clickMsg {
  197. width: 100%;
  198. }
  199. .msg-text {
  200. width: 100%;
  201. overflow-wrap: normal;
  202. word-break: break-all;
  203. font-size: .8em;
  204. background-color: #FFFFFF;
  205. box-sizing: border-box;
  206. padding: 10rpx 25rpx;
  207. border-radius: 20rpx;
  208. }
  209. .msg-img {
  210. width: 200rpx;
  211. height: 200rpx;
  212. margin: 0;
  213. }