chat.wxss 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192
  1. /* pages/chat/chat.wxss */
  2. page {
  3. background-color: #f1f1f1;
  4. }
  5. .scroll-list {
  6. padding-bottom: 120rpx;
  7. }
  8. /* 显示时间 */
  9. .show-date {
  10. text-align: center;
  11. font-size: 24rpx;
  12. padding: 15rpx 0;
  13. color: gray;
  14. }
  15. /* 每行对话样式 */
  16. .row {
  17. display: flex;
  18. flex-direction: row;
  19. padding: 20rpx;
  20. }
  21. /* 提示信息 */
  22. .tips-text {
  23. text-align: center;
  24. justify-content: center;
  25. font-size: 28rpx;
  26. color: gray;
  27. }
  28. .row-self {
  29. flex-direction: row-reverse;
  30. }
  31. /* 头像 */
  32. .head-self {
  33. margin-left: 20rpx;
  34. }
  35. .head-friend {
  36. margin-right: 20rpx;
  37. }
  38. .avatar {
  39. width: 100rpx;
  40. height: 100rpx;
  41. border-radius: 20rpx;
  42. overflow: hidden;
  43. }
  44. .nick {
  45. color: gray;
  46. font-size: 24rpx;
  47. margin-bottom: 15rpx;
  48. }
  49. /* 消息内容 */
  50. .message {
  51. background-color: white;
  52. font-size: 30rpx;
  53. padding: 20rpx;
  54. display: flex;
  55. align-items: center;
  56. line-height: 45rpx;
  57. max-width: 240px;
  58. word-break: break-all;
  59. }
  60. .msg-self {
  61. border-top-left-radius: 30rpx;
  62. border-bottom-right-radius: 30rpx;
  63. color: #434343;
  64. background-image: linear-gradient(to right, #33ccff, #B0E2FF);
  65. }
  66. .msg-friend {
  67. border-top-right-radius: 30rpx;
  68. border-bottom-left-radius: 30rpx;
  69. color: #ffffff;
  70. background-image: linear-gradient(to right, #ff9933, #ff6633);
  71. }
  72. .chat-card{
  73. background-color: rgba(162, 202, 242, 1);
  74. display: flex;
  75. }
  76. .chat-card-image{
  77. position: relative;
  78. border-radius: 12px;
  79. width: 10px;
  80. }
  81. .chat-card-info{
  82. position: relative;
  83. }
  84. .chat-card-info-title{
  85. position: relative;
  86. top: 10px;
  87. }
  88. .chat-card-info-price{
  89. position: relative;
  90. top: 50px;
  91. color: rgba(245, 56, 56, 0.91);
  92. }
  93. .chat-card-btn{
  94. position: relative;
  95. }
  96. .chat-footer-input{
  97. border:0;
  98. outline:0;
  99. border:solid 1px rgba(0, 0, 0, 0.15);
  100. border-radius: 4px;
  101. width: 300px;
  102. height: 30px;
  103. position: relative;
  104. left: 10px;
  105. margin-top: 10px;
  106. }
  107. .chat-footer{
  108. display: flex;
  109. border: 0;
  110. border-top: solid 1px rgba(0, 0, 0, 0.15);
  111. position: fixed;
  112. left: 0;
  113. bottom: 0;
  114. width: 100%;
  115. height: 50px;
  116. }
  117. .chat-footer-icon{
  118. margin-left: 15px;
  119. }
  120. /* 以下为输入框样式 */
  121. .footer {
  122. position: fixed;
  123. bottom: 0;
  124. left: 0;
  125. right: 0;
  126. z-index: 9;
  127. background-color: white;
  128. border-top: 1rpx solid #f1f1f1;
  129. }
  130. .input-box {
  131. flex: 5;
  132. border: 1rpx solid #f1f1f1;
  133. border-radius: 10rpx;
  134. }
  135. .send-btn {
  136. flex: 1;
  137. text-align: center;
  138. margin-left: 10rpx;
  139. color: white;
  140. margin-top: 10rpx;
  141. }
  142. .send-text {
  143. background-color: #FF6347;
  144. font-size: 30rpx;
  145. border-radius: 10rpx;
  146. padding: 12rpx 20rpx;
  147. }
  148. .text-area {
  149. max-height: 180rpx;
  150. width: 98%;
  151. padding: 15rpx 10rpx;
  152. font-size: 30rpx;
  153. }
  154. .placeholder {
  155. font-size: 30rpx;
  156. }
  157. /* 隐藏滚动条 */
  158. ::-webkit-scrollbar {
  159. display: none;
  160. width: 0;
  161. height: 0;
  162. color: transparent;
  163. }