chat.wxss 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193
  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. }
  58. .msg-self {
  59. border-top-left-radius: 30rpx;
  60. border-bottom-right-radius: 30rpx;
  61. color: #434343;
  62. background-image: linear-gradient(to right, #33ccff, #B0E2FF);
  63. }
  64. .msg-friend {
  65. border-top-right-radius: 30rpx;
  66. border-bottom-left-radius: 30rpx;
  67. color: #ffffff;
  68. background-image: linear-gradient(to right, #ff9933, #ff6633);
  69. }
  70. .chat-card{
  71. background-color: rgba(162, 202, 242, 1);
  72. display: flex;
  73. }
  74. .chat-card-image{
  75. position: relative;
  76. border-radius: 12px;
  77. width: 10px;
  78. top: 10px;
  79. }
  80. .chat-card-info{
  81. position: relative;
  82. }
  83. .chat-card-info-title{
  84. position: relative;
  85. top: 10px;
  86. }
  87. .chat-card-info-price{
  88. position: relative;
  89. top: 50px;
  90. color: rgba(245, 56, 56, 0.91);
  91. }
  92. .chat-card-btn{
  93. position: relative;
  94. top: 60px;
  95. right: 5px;
  96. }
  97. .chat-footer-input{
  98. border:0;
  99. outline:0;
  100. border:solid 1px rgba(0, 0, 0, 0.15);
  101. border-radius: 4px;
  102. width: 300px;
  103. height: 30px;
  104. position: relative;
  105. left: 10px;
  106. margin-top: 10px;
  107. }
  108. .chat-footer{
  109. display: flex;
  110. border: 0;
  111. border-top: solid 1px rgba(0, 0, 0, 0.15);
  112. position: fixed;
  113. left: 0;
  114. bottom: 0;
  115. width: 100%;
  116. height: 50px;
  117. }
  118. .chat-footer-icon{
  119. margin-left: 15px;
  120. }
  121. /* 以下为输入框样式 */
  122. .footer {
  123. position: fixed;
  124. bottom: 0;
  125. left: 0;
  126. right: 0;
  127. z-index: 9;
  128. background-color: white;
  129. border-top: 1rpx solid #f1f1f1;
  130. }
  131. .input-box {
  132. flex: 5;
  133. border: 1rpx solid #f1f1f1;
  134. border-radius: 10rpx;
  135. }
  136. .send-btn {
  137. flex: 1;
  138. text-align: center;
  139. margin-left: 10rpx;
  140. color: white;
  141. margin-top: 10rpx;
  142. }
  143. .send-text {
  144. background-color: #FF6347;
  145. font-size: 30rpx;
  146. border-radius: 10rpx;
  147. padding: 12rpx 20rpx;
  148. }
  149. .text-area {
  150. max-height: 180rpx;
  151. width: 98%;
  152. padding: 15rpx 10rpx;
  153. font-size: 30rpx;
  154. }
  155. .placeholder {
  156. font-size: 30rpx;
  157. }
  158. /* 隐藏滚动条 */
  159. ::-webkit-scrollbar {
  160. display: none;
  161. width: 0;
  162. height: 0;
  163. color: transparent;
  164. }