communicate.wxss 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213
  1. /* Tab栏样式 */
  2. .tab-container {
  3. position: sticky;
  4. top: 0;
  5. background-color: #fff;
  6. z-index: 99;
  7. margin-top:60px ;
  8. }
  9. .tab-scroll {
  10. white-space: nowrap;
  11. width: 100%;
  12. height: 44px;
  13. line-height: 44px;
  14. }
  15. .tab-item {
  16. display: inline-block;
  17. padding: 0 16px;
  18. font-size: 15px;
  19. color: #666;
  20. position: relative;
  21. }
  22. .tab-item.active {
  23. color: #ff2442;
  24. font-weight: bold;
  25. }
  26. .tab-item.active::after {
  27. content: "";
  28. position: absolute;
  29. bottom: 6px;
  30. left: 50%;
  31. transform: translateX(-50%);
  32. width: 16px;
  33. height: 3px;
  34. background-color: #ff2442;
  35. border-radius: 1.5px;
  36. }
  37. /* 卡片列表样式 */
  38. .content-container {
  39. background-color: #f7f7f7;
  40. }
  41. .card-list {
  42. padding: 10px;
  43. }
  44. .card {
  45. background-color: #fff;
  46. border-radius: 8px;
  47. margin-bottom: 10px;
  48. padding: 12px;
  49. box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  50. }
  51. .user-info {
  52. display: flex;
  53. align-items: center;
  54. margin-bottom: 10px;
  55. }
  56. .avatar {
  57. width: 32px;
  58. height: 32px;
  59. border-radius: 50%;
  60. margin-right: 8px;
  61. }
  62. .username {
  63. font-size: 14px;
  64. color: #333;
  65. font-weight: bold;
  66. margin-right: 10px;
  67. }
  68. .time {
  69. font-size: 12px;
  70. color: #999;
  71. }
  72. .content {
  73. margin-bottom: 12px;
  74. }
  75. .title {
  76. font-size: 16px;
  77. font-weight: bold;
  78. margin-bottom: 6px;
  79. display: block;
  80. }
  81. .desc {
  82. font-size: 14px;
  83. color: #333;
  84. line-height: 1.5;
  85. display: block;
  86. margin-bottom: 10px;
  87. }
  88. .images {
  89. display: flex;
  90. flex-wrap: wrap;
  91. margin: 0 -2px;
  92. }
  93. .image {
  94. width: calc(33.333% - 4px);
  95. height: 100px;
  96. margin: 2px;
  97. border-radius: 4px;
  98. }
  99. .actions {
  100. display: flex;
  101. border-top: 1px solid #f0f0f0;
  102. padding-top: 10px;
  103. }
  104. .action-item {
  105. display: flex;
  106. align-items: center;
  107. margin-right: 20px;
  108. font-size: 12px;
  109. color: #666;
  110. }
  111. .action-item icon {
  112. margin-right: 4px;
  113. }
  114. .load-more, .no-more {
  115. text-align: center;
  116. padding: 15px 0;
  117. font-size: 12px;
  118. color: #999;
  119. }
  120. .no-more {
  121. padding-bottom: 30px;
  122. }
  123. /* 方案一:经典小红书风格 */
  124. .fab-container {
  125. position: fixed;
  126. right: 32rpx;
  127. bottom: 128rpx;
  128. z-index: 100;
  129. }
  130. .fab-button {
  131. width: 120rpx;
  132. height: 120rpx;
  133. border-radius: 60rpx;
  134. background: linear-gradient(135deg, #FF2442, #FF5F7E);
  135. display: flex;
  136. flex-direction: column;
  137. justify-content: center;
  138. align-items: center;
  139. box-shadow: 0 8rpx 24rpx rgba(255, 36, 66, 0.3);
  140. transition: all 0.3s ease;
  141. }
  142. .fab-button:active {
  143. transform: scale(0.95);
  144. opacity: 0.9;
  145. }
  146. .fab-icon {
  147. font-size: 48rpx;
  148. font-weight: 300;
  149. color: #fff;
  150. line-height: 1;
  151. margin-bottom: 4rpx;
  152. }
  153. .fab-text {
  154. font-size: 24rpx;
  155. color: #fff;
  156. font-weight: 500;
  157. }
  158. /* 操作区样式 */
  159. .actions {
  160. display: flex;
  161. padding: 20rpx 0;
  162. border-top: 1rpx solid #f0f0f0;
  163. }
  164. .action-item {
  165. flex: 1;
  166. display: flex;
  167. align-items: center;
  168. justify-content: center;
  169. }
  170. .action-icon {
  171. width: 36rpx;
  172. height: 36rpx;
  173. margin-right: 10rpx;
  174. }
  175. .action-icon {
  176. transition: transform 0.3s;
  177. }
  178. .action-item:active .action-icon {
  179. transform: scale(1.2);
  180. }
  181. /* 点击效果 */
  182. .grid-image:active {
  183. transform: scale(0.95);
  184. opacity: 0.9;
  185. }