news.scss 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207
  1. .wrapper {
  2. padding-top: 20rpx;
  3. }
  4. .leaving-a-message {
  5. position: relative;
  6. left: 0;
  7. top: 0;
  8. }
  9. .leaving-a-message image {
  10. display: block;
  11. width: 40rpx;
  12. height: 50rpx;
  13. background: pink;
  14. }
  15. .leaving-a-message view {
  16. position: absolute;
  17. top: -9rpx;
  18. right: -9rpx;
  19. z-index: 1;
  20. min-width: 36rpx;
  21. min-height: 36rpx;
  22. border-radius: 18rpx;
  23. background: #FA5151;
  24. font-size: 24rpx;
  25. font-weight: 500;
  26. color: #FFF;
  27. line-height: 36rpx;
  28. text-align: center;
  29. }
  30. .btn-send {
  31. position: fixed;
  32. right: 30rpx;
  33. bottom: 156rpx;
  34. z-index: 100;
  35. &:after {
  36. display: block;
  37. content: '';
  38. width: 100%;
  39. padding-bottom: constant(safe-area-inset-bottom);
  40. padding-bottom: env(safe-area-inset-bottom);
  41. }
  42. image {
  43. display: block;
  44. width: 134rpx;
  45. height: 134rpx;
  46. background: pink;
  47. }
  48. }
  49. .main {
  50. padding: 42rpx 0 134rpx;
  51. }
  52. .list {
  53. width: 690rpx;
  54. margin: 20rpx auto 74rpx;
  55. }
  56. .top {
  57. display: flex;
  58. align-items: center;
  59. padding-left: 12rpx;
  60. }
  61. .portrait {
  62. width: 88rpx;
  63. height: 88rpx;
  64. border-radius: 50%;
  65. overflow: hidden;
  66. image {
  67. display: block;
  68. width: 100%;
  69. height: 100%;
  70. background: pink;
  71. }
  72. }
  73. .blogger-name-wrap {
  74. width: 450rpx;
  75. padding: 0 16rpx;
  76. view {
  77. width: 100%;
  78. white-space: nowrap;
  79. overflow: hidden;
  80. text-overflow: ellipsis;
  81. }
  82. .user-name {
  83. line-height: 36rpx;
  84. font-size: 30rpx;
  85. font-weight: 500;
  86. color: rgba(29, 29, 31, 1);
  87. }
  88. .business-name {
  89. margin-top: 2rpx;
  90. line-height: 32rpx;
  91. font-size: 24rpx;
  92. color: rgba(0, 0, 0, 0.4);
  93. }
  94. }
  95. .follow {
  96. width: 140rpx;
  97. height: 56rpx;
  98. border-radius: 8rpx;
  99. background: rgba(145, 179, 121, 1);
  100. font-size: 24rpx;
  101. font-weight: 600;
  102. color: rgba(255, 255, 255, 1);
  103. }
  104. .news {
  105. margin-top: 20rpx;
  106. .text {
  107. line-height: 44rpx;
  108. font-size: 28rpx;
  109. color: rgba(102, 102, 102, 1);
  110. word-break: break-all;
  111. word-wrap: break-word;
  112. }
  113. .photo-wrap {
  114. display: flex;
  115. flex-flow: row wrap;
  116. }
  117. .box {
  118. width: 222rpx;
  119. height: 218rpx;
  120. margin-top: 24rpx;
  121. margin-left: 12rpx;
  122. border-radius: 8rpx;
  123. overflow: hidden;
  124. &:nth-of-type(1),
  125. &:nth-of-type(2),
  126. &:nth-of-type(3) {
  127. margin-top: 20rpx;
  128. }
  129. &:nth-of-type(3n + 1) {
  130. margin-left: 0;
  131. }
  132. }
  133. image {
  134. display: block;
  135. width: 100%;
  136. height: 100%;
  137. background: pink;
  138. }
  139. }
  140. .tools-wrap {
  141. display: flex;
  142. align-items: center;
  143. justify-content: space-between;
  144. margin-top: 12rpx;
  145. image {
  146. display: block;
  147. width: 48rpx;
  148. height: 48rpx;
  149. background: pink;
  150. }
  151. .collection-favorite {
  152. display: flex;
  153. justify-content: flex-end;
  154. }
  155. .favorite {
  156. margin-left: 30rpx;
  157. }
  158. }
  159. .message-list {
  160. .list {
  161. display: flex;
  162. margin-top: 20rpx;
  163. }
  164. .message {
  165. width: 614rpx;
  166. line-height: 44rpx;
  167. font-size: 28rpx;
  168. color: rgba(153, 153, 153, 1);
  169. }
  170. .btn-reply {
  171. width: 76rpx;
  172. line-height: 44rpx;
  173. font-size: 24rpx;
  174. color: rgba(153, 153, 153, 1);
  175. text-align: center;
  176. }
  177. }