index.css 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  1. .chat-room{
  2. width: 100%;
  3. height: 100vh;
  4. background-color: #fff;
  5. }
  6. .chat-room .header{
  7. width: 100%;
  8. height: 100rpx;
  9. background-color: #fff;
  10. padding-top: 60rpx;
  11. text-align:center;
  12. line-height: 100rpx;
  13. font-size: 16px;
  14. color: #333;
  15. letter-spacing: 2px;
  16. }
  17. .chat-room .room{
  18. position: absolute;
  19. left: 0;
  20. right: 0;
  21. top:20rpx;
  22. bottom: 100rpx;
  23. padding: 0 5px 20px 5px;
  24. background-color: #f5f5f5;
  25. box-sizing: border-box;
  26. }
  27. .chat-room.black,.chat-room.black .room{
  28. background-color: #000;
  29. }
  30. .chat-room .room .item{
  31. text-align: right;
  32. padding-top: 30upx;
  33. position: relative;
  34. padding-right: 100upx;
  35. padding-left: 0;
  36. position: relative;
  37. margin-top: 20upx;
  38. /* #ifdef H5 */
  39. padding-right: 120upx;
  40. /* #endif */
  41. }
  42. .chat-room .room .item.lf{
  43. text-align: left;
  44. padding-right:0;
  45. padding-left: 100upx;
  46. /* #ifdef H5 */
  47. padding-left: 120upx;
  48. /* #endif */
  49. }
  50. .chat-room .room .item::after{
  51. content: "";
  52. position: absolute;
  53. top: 40upx;
  54. width: 0;
  55. height: 0;
  56. border-style: solid dashed dashed;
  57. border-color: #fff transparent transparent;
  58. overflow: hidden;
  59. border-width: 10px;
  60. right:100upx;
  61. /* #ifdef H5 */
  62. right:120upx;
  63. /* #endif */
  64. }
  65. .chat-room .room .item.lf::after{
  66. border-color: #98E165 transparent transparent;
  67. left:100upx;
  68. right: unset;
  69. /* #ifdef H5 */
  70. left:120upx;
  71. /* #endif */
  72. }
  73. .chat-room .room .item .name{
  74. width: 100rpx;
  75. height: 100rpx;
  76. text-align: left;
  77. line-height: 100rpx;
  78. font-size: 14px;
  79. display: inline-block;
  80. }
  81. .chat-room .room .item .avatar{
  82. width: 100rpx;
  83. /* #ifdef H5 */
  84. width: 120rpx;
  85. /* #endif */
  86. text-align: left;
  87. font-size: 14px;
  88. display: inline-block;
  89. /* border-radius: 50%; */
  90. overflow: hidden;
  91. text-align: center;
  92. }
  93. .chat-room .room .item .avatar{
  94. position: absolute;
  95. top: 15upx;
  96. right: 4upx;
  97. display: flex;
  98. justify-content: center;
  99. align-items: center;
  100. flex-direction: column;
  101. }
  102. .chat-room .room .item .avatar .avatar-tag{
  103. width: 60rpx;
  104. height: 60rpx;
  105. display: block;
  106. }
  107. .chat-room .room .item .avatar .username{
  108. width: 100%;
  109. font-size: 20upx;
  110. line-height: 1;
  111. padding-top: 10upx;
  112. display: -webkit-box;
  113. -webkit-box-orient: vertical;
  114. -webkit-line-clamp: 1;
  115. overflow: hidden;
  116. }
  117. .chat-room .room .item.lf .avatar{
  118. left: 0;
  119. right: unset;
  120. }
  121. .chat-room .room .item .msgbox{
  122. display: inline-block;
  123. max-width:540upx;
  124. border:1px solid #eaeaea;
  125. background-color: #fff;
  126. font-size: 14px;
  127. padding:16upx;
  128. border-radius: 4px;
  129. margin-right: 7px;
  130. word-break: break-all;
  131. text-align: left;
  132. }
  133. .chat-room .room .item.lf .msgbox{
  134. background-color: #a0e75a;
  135. color: #333;
  136. letter-spacing: 1px;
  137. margin:0 0 0 7px;
  138. }
  139. .chat-room .send{
  140. width: 100%;
  141. /* height: 110rpx; */
  142. position: fixed;
  143. left: 0;
  144. bottom: 0;
  145. display: flex;
  146. justify-content: space-between;
  147. align-items: flex-end;
  148. padding:10upx 20upx;
  149. z-index: 999;
  150. background-color: #fff;
  151. }
  152. .sendInput{
  153. width: 460rpx;
  154. border: 1px solid #ccc;
  155. border-radius: 2px;
  156. padding:10rpx 14rpx;
  157. }
  158. .chat-room .send .sendBt{
  159. width: 150upx;
  160. background-color: #3384ff;
  161. color: #fff;
  162. }
  163. .chat-room.black .send .sendInput{
  164. color: #fff;
  165. }
  166. .chat-room .send .moreHandle{
  167. width: 60rpx;
  168. height: 60rpx;
  169. padding: 0;
  170. border-radius: 50%;
  171. line-height: 60rpx;
  172. text-align: center;
  173. border:1px solid #ccc;
  174. margin: 0;
  175. margin:0 40rpx 5rpx 0;
  176. color: #888888;
  177. }