index.scss 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288
  1. .classModel {
  2. width: 750rpx;
  3. height: 110rpx;
  4. // #ifndef APP-NVUE
  5. display: flex;
  6. // #endif
  7. // #ifdef APP-NVUE
  8. flex-direction: row;
  9. // #endif
  10. justify-content: space-around;
  11. margin-bottom: 20rpx;
  12. .classModel-bg {
  13. width: 210rpx;
  14. height: 90rpx;
  15. background-color: #3F4141;
  16. border-radius: 60rpx;
  17. box-shadow: 3px 3px 2px rgba(174, 230, 93, 1);
  18. .classModel-img {
  19. width: 175rpx;
  20. height: 75rpx;
  21. }
  22. }
  23. }
  24. .tab-nav {
  25. display: flex;
  26. justify-content: center;
  27. padding: 20rpx 0;
  28. background: #161616;
  29. .tab-item {
  30. padding: 0 30rpx;
  31. color: #808080;
  32. font-size: 28rpx;
  33. &.active {
  34. color: #ffffff;
  35. font-weight: bold;
  36. }
  37. }
  38. }
  39. .hot-topics {
  40. padding: 20rpx;
  41. background: #28292D;
  42. margin: 20rpx;
  43. border-radius: 16rpx;
  44. .hot-topics-header {
  45. margin-bottom: 20rpx;
  46. .hot-topics-title {
  47. font-size: 32rpx;
  48. font-weight: bold;
  49. color: #ffffff;
  50. }
  51. }
  52. .hot-topics-swiper {
  53. height: 400rpx; // Adjust this value based on your content
  54. }
  55. .hot-topics-list {
  56. padding: 10rpx 0;
  57. }
  58. .topic-item {
  59. display: flex;
  60. align-items: center;
  61. padding: 15rpx 0;
  62. .topic-index {
  63. width: 40rpx;
  64. color: #808080;
  65. text-align: center;
  66. flex-shrink: 0;
  67. }
  68. .topic-content {
  69. flex: 1;
  70. width: 0;
  71. /* 重要:确保flex子项不会超过容器宽度 */
  72. overflow: hidden;
  73. .topic-title-row {
  74. display: flex;
  75. align-items: center;
  76. width: 100%;
  77. .topic-title {
  78. color: #ffffff;
  79. font-size: 28rpx;
  80. white-space: nowrap;
  81. overflow: hidden;
  82. text-overflow: ellipsis;
  83. flex: 1;
  84. width: 0;
  85. /* 重要:确保flex子项不会超过容器宽度 */
  86. }
  87. .hot-tag {
  88. margin-left: 10rpx;
  89. padding: 4rpx 10rpx;
  90. background: #FF4B4B;
  91. color: #ffffff;
  92. font-size: 20rpx;
  93. border-radius: 8rpx;
  94. flex-shrink: 0;
  95. }
  96. }
  97. .topic-participants {
  98. font-size: 24rpx;
  99. color: #808080;
  100. margin-top: 6rpx;
  101. }
  102. }
  103. }
  104. .indicator-dots {
  105. display: flex;
  106. justify-content: center;
  107. margin-top: 20rpx;
  108. .dot {
  109. width: 12rpx;
  110. height: 12rpx;
  111. border-radius: 50%;
  112. background: #808080;
  113. margin: 0 6rpx;
  114. &.active {
  115. background: #ffffff;
  116. }
  117. }
  118. }
  119. }
  120. .follow-list {
  121. padding: 20rpx;
  122. background: #161616;
  123. margin: 0rpx;
  124. border-radius: 0rpx;
  125. .works-list {
  126. display: flex;
  127. flex-wrap: wrap;
  128. padding: 10rpx;
  129. .work-item {
  130. width: 48%;
  131. margin: 1%;
  132. margin-bottom: 20rpx;
  133. .work-image {
  134. width: 100%;
  135. aspect-ratio: 1;
  136. border-radius: 12rpx;
  137. }
  138. .work-title {
  139. font-size: 28rpx;
  140. color: #ffffff;
  141. margin-top: 10rpx;
  142. padding: 0 10rpx;
  143. white-space: nowrap;
  144. overflow: hidden;
  145. text-overflow: ellipsis;
  146. }
  147. }
  148. }
  149. .no-data {
  150. display: flex;
  151. flex-direction: column;
  152. align-items: center;
  153. justify-content: center;
  154. padding: 60rpx 0;
  155. text {
  156. color: #808080;
  157. font-size: 28rpx;
  158. }
  159. }
  160. }
  161. .no-data {
  162. text-align: center;
  163. padding: 40rpx 0;
  164. color: #808080;
  165. font-size: 28rpx;
  166. }
  167. .news-list {
  168. padding: 20rpx;
  169. background: #161616;
  170. .news-grid {
  171. display: flex;
  172. flex-wrap: wrap;
  173. justify-content: space-between;
  174. .news-item {
  175. width: 48%;
  176. margin-bottom: 30rpx;
  177. background: #28292D;
  178. border-radius: 12rpx;
  179. overflow: hidden;
  180. .news-image {
  181. width: 100%;
  182. aspect-ratio: 1;
  183. height: auto;
  184. border-radius: 12rpx 12rpx 0 0;
  185. }
  186. .news-title {
  187. font-size: 28rpx;
  188. color: #ffffff;
  189. padding: 15rpx;
  190. white-space: nowrap;
  191. overflow: hidden;
  192. text-overflow: ellipsis;
  193. height: 60rpx;
  194. line-height: 60rpx;
  195. }
  196. .news-footer {
  197. display: flex;
  198. justify-content: space-between;
  199. align-items: center;
  200. padding: 0 15rpx 15rpx;
  201. .news-author {
  202. font-size: 24rpx;
  203. color: #808080;
  204. max-width: 60%;
  205. white-space: nowrap;
  206. overflow: hidden;
  207. text-overflow: ellipsis;
  208. }
  209. .news-views {
  210. display: flex;
  211. align-items: center;
  212. font-size: 24rpx;
  213. color: #808080;
  214. .view-icon {
  215. width: 26rpx;
  216. height: 18rpx;
  217. margin-right: 6rpx;
  218. }
  219. }
  220. }
  221. }
  222. }
  223. }
  224. .float-btn {
  225. position: fixed;
  226. right: 30rpx;
  227. bottom: 120rpx;
  228. width: 100rpx;
  229. height: 100rpx;
  230. background-color: #FFFFFF;
  231. border-radius: 50%;
  232. display: flex;
  233. justify-content: center;
  234. align-items: center;
  235. box-shadow: 0 4rpx 8rpx rgba(0, 0, 0, 0.1);
  236. z-index: 999;
  237. .float-btn-icon {
  238. width: 40rpx;
  239. height: 40rpx;
  240. }
  241. }
  242. .blankHeight {
  243. width: 500rpx;
  244. height: 500rpx;
  245. }