news.scss 2.9 KB

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