index.scss 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448
  1. @font-face {
  2. font-family: 'CustomFont';
  3. src: url('@/static/fonts/alibaba.otf') format('opentype');
  4. font-weight: normal;
  5. font-style: normal;
  6. }
  7. .page-top{
  8. background:url("/static/home/home-top.png") 518rpx calc(-10rpx + var(--status-bar-height))/212rpx 296rpx no-repeat,url("/static/home/home-t.png") top center/100% auto no-repeat,linear-gradient(to top, #D0FFA5, #ACFF5F);
  9. }
  10. .tab-nav {
  11. display: flex;
  12. justify-content: flex-start;
  13. padding: 20rpx 20rpx;
  14. box-sizing: border-box;
  15. background: #ffffff;
  16. .tab-item {
  17. padding: 10rpx 38rpx;
  18. color: #1F1F1F;
  19. font-size: 28rpx;
  20. background: #F2F6F2;
  21. margin-right: 20rpx;
  22. border-radius: 30rpx;
  23. position: relative;
  24. left: 0;
  25. top: 0;
  26. transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  27. box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.05);
  28. &:active {
  29. transform: scale(0.95);
  30. box-shadow: 0 1rpx 4rpx rgba(0, 0, 0, 0.05);
  31. }
  32. .indicator-triangle {
  33. position: absolute;
  34. bottom: -10rpx;
  35. left: 50%;
  36. transform: translateX(-50%);
  37. width: 0;
  38. height: 0;
  39. border-left: 10rpx solid transparent;
  40. border-right: 10rpx solid transparent;
  41. border-top: 10rpx solid #ACF934;
  42. display: none;
  43. transition: all 0.3s ease;
  44. }
  45. &.active {
  46. background: #ACF934;
  47. font-family: "CustomFont" !important;
  48. box-shadow: 0 4rpx 12rpx rgba(172, 249, 52, 0.3);
  49. .indicator-triangle {
  50. display: block;
  51. transform: translateX(-50%) scale(1.2);
  52. }
  53. }
  54. }
  55. }
  56. .hot-topics {
  57. padding: 20rpx;
  58. // background: #fff;
  59. margin: 20rpx;
  60. border-radius: 16rpx;
  61. border: #000000 solid 2rpx;
  62. background:url("../../static/home/hot-topice-bg.png") center/100% 99% no-repeat;
  63. .hot-topics-header {
  64. margin-bottom: 20rpx;
  65. .hot-topics-title {
  66. width: 140rpx;
  67. height: 34rpx;
  68. }
  69. }
  70. .hot-topics-swiper {
  71. height: 220rpx;
  72. box-sizing: border-box;
  73. }
  74. .hot-topics-list {
  75. padding: 0 26rpx;
  76. padding-bottom: 0;
  77. height: 100%;
  78. display: flex;
  79. flex-direction: column;
  80. justify-content: flex-start;
  81. min-height: 220rpx;
  82. }
  83. .topic-item {
  84. display: flex;
  85. align-items: center;
  86. padding: 10rpx 0;
  87. justify-content: space-between;
  88. width: 100%;
  89. min-height: 50rpx;
  90. margin-bottom: 10rpx;
  91. transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  92. &:active {
  93. transform: scale(0.98);
  94. }
  95. &:last-child {
  96. margin-bottom: 0;
  97. }
  98. .hot-topics-left{
  99. display: flex;
  100. transition: all 0.3s ease;
  101. .topic-index{
  102. width: 30rpx;
  103. height: 30rpx;
  104. font-weight: 700;
  105. font-size: 24rpx;
  106. display: inline-flex;
  107. align-items: center;
  108. justify-content: center;
  109. color: #fff;
  110. border-radius: 5rpx;
  111. margin-right: 18rpx;
  112. background: #CECECE;
  113. transition: all 0.3s ease;
  114. &.topic-index-img{
  115. background: transparent;
  116. color: transparent;
  117. width: 36rpx;
  118. height: 36rpx;
  119. position: relative;
  120. left: -2rpx;
  121. top: 0;
  122. }
  123. }
  124. .topic-content{
  125. font-size: 24rpx;
  126. max-width: 330rpx;
  127. overflow: hidden;
  128. text-overflow: ellipsis;
  129. white-space: nowrap;
  130. transition: all 0.3s ease;
  131. }
  132. }
  133. .topic-participants{
  134. font-size: 20rpx;
  135. color: #999;
  136. transition: all 0.3s ease;
  137. }
  138. .hot-tag {
  139. width: 46rpx;
  140. height: 22rpx;
  141. margin: auto;
  142. margin-left: 10rpx;
  143. transition: all 0.3s ease;
  144. }
  145. }
  146. .indicator-dots {
  147. display: flex;
  148. justify-content: center;
  149. margin-top: 20rpx;
  150. .dot {
  151. width: 12rpx;
  152. height: 12rpx;
  153. border-radius: 50%;
  154. background: #ffffff;
  155. margin: 0 6rpx;
  156. &.active {
  157. background: #808080;
  158. }
  159. }
  160. }
  161. }
  162. .follow-list {
  163. padding: 20rpx;
  164. background: #fff;
  165. margin: 0rpx;
  166. border-radius: 0rpx;
  167. .works-list {
  168. display: flex;
  169. flex-wrap: wrap;
  170. padding: 10rpx;
  171. .work-item {
  172. width: 48%;
  173. margin: 1%;
  174. margin-bottom: 20rpx;
  175. .work-image {
  176. width: 100%;
  177. aspect-ratio: 1;
  178. border-radius: 12rpx;
  179. }
  180. .work-title {
  181. font-size: 28rpx;
  182. color: #ffffff;
  183. margin-top: 10rpx;
  184. padding: 0 10rpx;
  185. white-space: nowrap;
  186. overflow: hidden;
  187. text-overflow: ellipsis;
  188. }
  189. }
  190. }
  191. .no-data {
  192. display: flex;
  193. flex-direction: column;
  194. align-items: center;
  195. justify-content: center;
  196. padding: 60rpx 0;
  197. background-color: #fff;
  198. text {
  199. color: #808080;
  200. font-size: 28rpx;
  201. }
  202. }
  203. }
  204. .no-data {
  205. text-align: center;
  206. padding: 40rpx 0;
  207. color: #808080;
  208. font-size: 28rpx;
  209. }
  210. .news-list {
  211. padding: 20rpx;
  212. background: #fff;
  213. .news-grid {
  214. display: flex;
  215. flex-wrap: wrap;
  216. justify-content: space-between;
  217. .news-item {
  218. width: 48%;
  219. margin-bottom: 30rpx;
  220. background: #28292D;
  221. border-radius: 12rpx;
  222. overflow: hidden;
  223. .news-image {
  224. width: 100%;
  225. aspect-ratio: 1;
  226. height: auto;
  227. border-radius: 12rpx 12rpx 0 0;
  228. }
  229. .news-title {
  230. font-size: 28rpx;
  231. color: #ffffff;
  232. padding: 15rpx;
  233. white-space: nowrap;
  234. overflow: hidden;
  235. text-overflow: ellipsis;
  236. height: 60rpx;
  237. line-height: 60rpx;
  238. }
  239. .news-footer {
  240. display: flex;
  241. justify-content: space-between;
  242. align-items: center;
  243. padding: 0 15rpx 15rpx;
  244. .news-author {
  245. font-size: 24rpx;
  246. color: #808080;
  247. max-width: 60%;
  248. white-space: nowrap;
  249. overflow: hidden;
  250. text-overflow: ellipsis;
  251. }
  252. .news-views {
  253. display: flex;
  254. align-items: center;
  255. font-size: 24rpx;
  256. color: #808080;
  257. .view-icon {
  258. width: 26rpx;
  259. height: 18rpx;
  260. margin-right: 6rpx;
  261. }
  262. }
  263. }
  264. }
  265. }
  266. }
  267. .float-btn {
  268. position: fixed;
  269. right: 30rpx;
  270. bottom: 145rpx;
  271. width: 120rpx;
  272. height: 120rpx;
  273. border-radius: 50%;
  274. display: flex;
  275. justify-content: center;
  276. align-items: center;
  277. z-index: 999;
  278. .float-btn-icon {
  279. width: 100%;
  280. height: 100%;
  281. }
  282. }
  283. .blankHeight {
  284. // width: 500rpx;
  285. // height: 500rpx;
  286. width: 100%;
  287. height: 144rpx;
  288. }
  289. .benner-box{
  290. box-sizing: border-box;
  291. padding: 20rpx;
  292. background: #fff;
  293. border-top-left-radius: 40rpx;
  294. border-top-right-radius: 40rpx;
  295. ::v-deep.uv-swiper{
  296. border-radius: 20rpx !important;
  297. overflow: hidden;
  298. transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  299. &:active {
  300. transform: scale(0.98);
  301. }
  302. }
  303. .classModel{
  304. display: flex;
  305. justify-content: space-between;
  306. align-items: center;
  307. position: relative;
  308. left: 0;
  309. right: 0;
  310. .benner-iconBom{
  311. height: 18rpx;
  312. width: 50rpx;
  313. position: absolute;
  314. top: calc(55% + 18rpx);
  315. left: 50%;
  316. transform: translateX(-50%);
  317. z-index: 99;
  318. }
  319. .benner-icontop{
  320. width: 45rpx;
  321. height: 20rpx;
  322. position: absolute;
  323. top: 55%;
  324. left: 50%;
  325. transform: translateX(-50%);
  326. }
  327. .benner-box{
  328. height: 256rpx;
  329. width: 344rpx;
  330. position: relative;
  331. }
  332. .benner-left-box{
  333. background:url("../../static/home/benner-left.-bg.png") center/100% 99% no-repeat;
  334. .text1{
  335. color: rgba(255,255,255, 0.8);
  336. color: 28rpx;
  337. position: absolute;
  338. left: 26rpx;
  339. top: 88rpx;
  340. }
  341. .btn{
  342. font-size: 24rpx;
  343. background: #1F1F1F;
  344. color: #ACF934 ;
  345. display: inline-block;
  346. border-radius: 390rpx;
  347. padding: 8rpx 24rpx;
  348. padding-bottom: 10rpx;
  349. position: absolute;
  350. bottom: 38rpx;
  351. left: 26rpx;
  352. }
  353. }
  354. .benner-right-box{
  355. background:url("../../static/home/benner-right-bg.png") center/100% 99% no-repeat;
  356. display: flex;
  357. flex-direction: column;
  358. justify-content: space-evenly;
  359. align-items: center;
  360. height: 256rpx;
  361. .text{
  362. color: #999;
  363. font-size: 20rpx;
  364. position: absolute;
  365. top: 56rpx;
  366. left: 26rpx;
  367. }
  368. .guard{
  369. position: relative;
  370. left: 0;
  371. top: 0;
  372. width: 312rpx;
  373. height: 104rpx;
  374. background: url("../../static/home/benner-right-btnTop.png") center/100% no-repeat;
  375. margin-bottom: 10rpx;
  376. }
  377. .match{
  378. position: relative;
  379. left: 0;
  380. top: 0;
  381. width: 312rpx;
  382. height: 104rpx;
  383. background: url("../../static/home/benner-right-btnBom.png") center/100% no-repeat;
  384. }
  385. }
  386. }
  387. }
  388. .waterfall-list-container{
  389. background: #fff;
  390. }
  391. .navCenter{
  392. .topBox{
  393. display: flex;
  394. flex-direction: row;
  395. justify-content: center;
  396. align-items: center;
  397. }
  398. }
  399. .lhSelectCity{
  400. background-color: #fff;
  401. position: fixed;
  402. left: 0;
  403. right: 0;
  404. width: 100%;
  405. height: 100vh;
  406. padding: 0 25rpx;
  407. padding-top: var(--status-bar-height);
  408. ;
  409. }