home.wxss 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613
  1. @import "../../lib/style/main.wxss";
  2. page {
  3. margin-bottom: 40rpx;
  4. background: transparent;
  5. padding-bottom: calc(100rpx + constant(safe-area-inset-bottom));
  6. padding-bottom: calc(100rpx + env(safe-area-inset-bottom));
  7. display: flex;
  8. flex-direction: column;
  9. min-height: 100.1vh;
  10. }
  11. .navigation {
  12. position: fixed;
  13. left: 0;
  14. right: 0;
  15. bottom: 0;
  16. border-top: var(--themebor);
  17. padding: 0.4em;
  18. font-size: 0.7em;
  19. padding-bottom: 0.4em;
  20. padding-bottom: calc(0.4em + constant(safe-area-inset-bottom));
  21. padding-bottom: calc(0.4em + env(safe-area-inset-bottom));
  22. }
  23. .navigation .nav {
  24. color: var(--colorp);
  25. }
  26. .navigation .nav.act {
  27. color: var(--themecolor);
  28. }
  29. .navigation image {
  30. margin-bottom: 0.4em;
  31. width: 36rpx;
  32. height: 36rpx;
  33. margin: 0 4rpx;
  34. }
  35. .home, .activities, .community {
  36. flex: 1;
  37. }
  38. .swiperContainer {
  39. border-radius: var(--themerad);
  40. margin: var(--sizenor);
  41. overflow: hidden;
  42. }
  43. .swiperContainer swiper {
  44. height: 360rpx;
  45. }
  46. .swiperContainer image {
  47. width: 100%;
  48. display: block;
  49. }
  50. .hotNews, .partners {
  51. padding: var(--sizenor);
  52. }
  53. .title, .article, .article .attr, .levelTitle {
  54. display: flex;
  55. display: -webkit-flex;
  56. }
  57. .title, .article .attr, .levelTitle {
  58. align-items: center;
  59. }
  60. .title {
  61. justify-content: space-between;
  62. }
  63. .title .bar {
  64. background-color: var(--themedanger);
  65. height: calc(2 * var(--sizenor));
  66. width: 12rpx;
  67. margin-right: 0.7em;
  68. }
  69. .article {
  70. padding: var(--sizenor) 0;
  71. border-bottom: var(--themebor);
  72. }
  73. .article .imgbox {
  74. width: 240rpx;
  75. height: 240rpx;
  76. overflow: hidden;
  77. margin-right: 0.5em;
  78. }
  79. .article .content {
  80. flex: 1;
  81. height: 240rpx;
  82. overflow: hidden;
  83. }
  84. .article .attr {
  85. color: var(--colorattr);
  86. font-size: var(--txtsub);
  87. }
  88. .article .attr image {
  89. height: 1em;
  90. width: 1em;
  91. margin-right: 0.2em;
  92. }
  93. .article .content > view {
  94. margin-top: 0.5em;
  95. }
  96. .article .p {
  97. color: var(--colorp);
  98. text-overflow: ellipsis;
  99. font-size: var(--txtsub);
  100. }
  101. .partnersContainer {
  102. padding: var(--sizenor);
  103. }
  104. .partnersContainer .level {
  105. margin-top: 1em;
  106. }
  107. .partnersContainer .level:first-child {
  108. margin-top: 0;
  109. }
  110. .partnersContainer .levelTitle {
  111. color: #ccc;
  112. font-size: var(--txtsub);
  113. flex-direction: column;
  114. margin-bottom: var(--sizenor);
  115. }
  116. .level:first-child image {
  117. height: 100rpx;
  118. width: 300rpx;
  119. }
  120. .level image {
  121. height: 90rpx;
  122. width: 270rpx;
  123. }
  124. .searchContainer {
  125. padding: var(--sizenor);
  126. color: var(--colorp);
  127. font-size: var(--txtsub);
  128. display: flex;
  129. justify-content: space-between;
  130. }
  131. .searchContainer > .release-button {
  132. flex: 1;
  133. text-align: center;
  134. line-height: 68rpx;
  135. margin-left: 20rpx;
  136. border-radius: 100rpx;
  137. background-image: linear-gradient(to right, #57A8EF, #6247FF);
  138. color: #fff;
  139. font-size: 30rpx;
  140. }
  141. .search {
  142. padding: 0.5em 1em;
  143. flex: 3;
  144. border-radius: 40rpx;
  145. background-color: #efefef;
  146. height: 45rpx;
  147. box-sizing: content-box;
  148. }
  149. .search input {
  150. display: block;
  151. text-align: center;
  152. width: 100%;
  153. color: #333;
  154. }
  155. .activityContainer {
  156. padding: 0 var(--sizenor);
  157. }
  158. .activity {
  159. border-radius: var(--themerad);
  160. margin: 0.5em 0 1.2em 0;
  161. overflow: hidden;
  162. height: 360rpx;
  163. position: relative;
  164. }
  165. .activity image {
  166. width: 100%;
  167. height: 100%;
  168. }
  169. .activity .skiing {
  170. position: absolute;
  171. left: 0;
  172. right: 0;
  173. bottom: 0;
  174. padding: var(--sizesmr) var(--sizenor);
  175. color: #fff;
  176. background-color: rgba(0, 0, 0, 0.4);
  177. }
  178. .removeTag {
  179. position: absolute;
  180. top: 20rpx;
  181. left: 20rpx;
  182. font-size: 1.4em;
  183. width: 1.4em;
  184. height: 1.4em;
  185. }
  186. .tag {
  187. color: #fff;
  188. position: absolute;
  189. top: 19rpx;
  190. right: -38rpx;
  191. font-size: 0.76em;
  192. padding: 2rpx 40rpx;
  193. transform: rotate(45deg);
  194. -ms-transform: rotate(45deg);
  195. -moz-transform: rotate(45deg);
  196. -webkit-transform: rotate(45deg);
  197. -o-transform: rotate(45deg);
  198. }
  199. .tag.ready {
  200. background-color: #51b84b;
  201. }
  202. .tag.signing, .removeTag {
  203. background-color: #f64f5f;
  204. }
  205. .tag.finished {
  206. background-color: var(--darkgray);
  207. }
  208. .addTidings image {
  209. height: 88rpx;
  210. width: 88rpx;
  211. margin-top: -32rpx;
  212. }
  213. .mine {
  214. /* di */
  215. }
  216. .mineNav {
  217. background-color: #fff;
  218. }
  219. .mineNav > view.selected {
  220. border-bottom: 4rpx solid var(--theme);
  221. color: var(--theme);
  222. }
  223. .mineNav > view {
  224. margin-left: 32rpx;
  225. padding-bottom: 12rpx;
  226. margin-bottom: 8rpx;
  227. }
  228. .mineNav > view:first-child {
  229. margin-left: 0;
  230. }
  231. .myComment .comment {
  232. padding-bottom: 32rpx;
  233. }
  234. .comment image {
  235. width: 60rpx;
  236. height: 60rpx;
  237. }
  238. .myComment > .comment, .myAct {
  239. margin-bottom: 10rpx;
  240. }
  241. .myComment .nickname {
  242. color: #002063;
  243. }
  244. .myAct > view:last-child {
  245. margin-top: 12rpx;
  246. }
  247. .community {
  248. width: 100%;
  249. }
  250. .cover {
  251. position: fixed;
  252. top: 0;
  253. left: 0;
  254. right: 0;
  255. bottom: 0;
  256. z-index: 999;
  257. }
  258. .cover .navigation {
  259. border: none;
  260. }
  261. .cover .nav {
  262. opacity: 0;
  263. }
  264. .bfc {
  265. overflow: hidden;
  266. margin: 0 0.75em;
  267. }
  268. .bfc > view {
  269. float: left;
  270. width: 49.99999999999%;
  271. padding: 0.25em;
  272. overflow: hidden;
  273. height: calc(402rpx + 5.54em);
  274. }
  275. .imgtxt .img {
  276. overflow: hidden;
  277. position: relative;
  278. height: 400rpx;
  279. border-top-left-radius: 14rpx;
  280. border-top-right-radius: 14rpx;
  281. border: 1rpx solid #ececec;
  282. border-bottom: none;
  283. }
  284. .imgtxt .img .videoPlay {
  285. position: absolute;
  286. height: 100rpx;
  287. width: 100rpx;
  288. top: 50%;
  289. left: 50%;
  290. margin-top: -50rpx;
  291. margin-left: -50rpx;
  292. }
  293. .imgtxt .img.bordered {
  294. border-top-left-radius: 14rpx;
  295. border-top-right-radius: 14rpx;
  296. border: 1rpx solid #ececec;
  297. border-bottom: none;
  298. }
  299. .imgtxt image {
  300. border-top-left-radius: 14rpx;
  301. border-top-right-radius: 14rpx;
  302. width: 100%;
  303. height: 100%;
  304. }
  305. .imgtxt .text {
  306. padding: 0.5em;
  307. font-size: 0.88em;
  308. border-bottom-left-radius: 14rpx;
  309. border-bottom-right-radius: 14rpx;
  310. border: 1rpx solid #ececec;
  311. border-top: none;
  312. }
  313. .imgtxt .text .textcontent {
  314. height: 2.64em;
  315. overflow: hidden;
  316. }
  317. .imgtxt .more {
  318. margin-top: 0.5em;
  319. }
  320. .imgtxt .avatar .circle, .imgtxt .favor image {
  321. margin-right: 0.4em;
  322. }
  323. .imgtxt .avatar .circle {
  324. height: 1.4em;
  325. width: 1.4em;
  326. }
  327. .imgtxt .favorite {
  328. height: 1em;
  329. width: 1em;
  330. }
  331. .nav-list {
  332. position: fixed;
  333. bottom: 0;
  334. height: 160rpx;
  335. width: 100%;
  336. z-index: 10;
  337. background: transparent;
  338. }
  339. .nav-select {
  340. display: flex;
  341. position: relative;
  342. z-index: 10;
  343. background: transparent;
  344. }
  345. .nav-select .home,.nav-select .activity,.nav-select .community,.nav-select .me {
  346. flex: 1;
  347. margin-top: 75rpx;
  348. display: flex;
  349. align-items: center;
  350. flex-direction: column;
  351. background: transparent;
  352. }
  353. .nav-list image {
  354. width: 40rpx;
  355. height: 40rpx;
  356. }
  357. .nav-list .bg {
  358. width: 100%;
  359. position: absolute;
  360. z-index: 0;
  361. background: transparent;
  362. }
  363. .nav-list .release {
  364. flex: 1;
  365. display: flex;
  366. justify-content: center;
  367. }
  368. .nav-list .release image{
  369. width: 150rpx;
  370. position: relative;
  371. }
  372. .home-nav-list {
  373. height: 244rpx;
  374. position: relative;
  375. margin-top: -36rpx;
  376. }
  377. .home-nav-list > image{
  378. width: 100%;
  379. height: 100%;
  380. position: absolute;
  381. z-index: 0;
  382. }
  383. .home-nav-select {
  384. display: flex;
  385. position: relative;
  386. z-index: 9;
  387. height: 90%;
  388. width: 80%;
  389. margin: auto;
  390. font-size: 24rpx;
  391. font-weight: bold;
  392. color: #2E3149;
  393. }
  394. .home-nav-select > view{
  395. flex: 1;
  396. display: flex;
  397. justify-content: center;
  398. align-items: center;
  399. flex-direction: column;
  400. }
  401. .home-nav-select image{
  402. width: 120rpx;
  403. }
  404. .news-list .hot-title {
  405. display: flex;
  406. justify-content: space-between;
  407. margin-bottom: 15rpx;
  408. }
  409. .news-list .hot-title .title{
  410. width: 128rpx;
  411. height: 44rpx;
  412. font-size: 32rpx;
  413. font-weight: bold;
  414. color: #000000;
  415. line-height: 44rpx;
  416. margin-left: 48rpx;
  417. }
  418. .news-list .hot-title .more {
  419. height: 34rpx;
  420. color: #868AA8;
  421. display: flex;
  422. font-size: 24rpx;
  423. align-items: center;
  424. }
  425. .news-list .hot-title .more > image {
  426. width: 28rpx;
  427. margin: 0 34rpx 0 10rpx;
  428. position: relative;
  429. }
  430. .news-list .news-list-content .news-list-item{
  431. position: relative;
  432. margin-top: -20rpx;
  433. }
  434. .news-list .news-list-content .news-list-item >image{
  435. width: 100%;
  436. position: absolute;
  437. z-index: 0;
  438. }
  439. .news-list .news-list-content .news-list-item .content {
  440. padding: 46rpx 60rpx 48rpx 50rpx;
  441. box-sizing: border-box;
  442. display: flex;
  443. position: relative;
  444. z-index: 9;
  445. }
  446. .news-list .news-list-content .news-list-item .content .left{
  447. margin-top: 15rpx;
  448. width: 232rpx;
  449. height: 154rpx;
  450. margin-right: 34rpx;
  451. position: relative;
  452. z-index: 0;
  453. }
  454. .news-list .news-list-content .news-list-item .content .right {
  455. display: flex;
  456. justify-content: center;
  457. /* align-items: center; */
  458. flex-direction: column;
  459. }
  460. .news-list .news-list-content .news-list-item .content .right .title {
  461. width: 372rpx;
  462. min-height: 80rpx;
  463. font-size: 26rpx;
  464. font-weight: bold;
  465. color: #262626;
  466. line-height: 27rpx;
  467. margin-bottom: 10rpx;
  468. text-overflow: -o-ellipsis-lastline;
  469. overflow: hidden;
  470. text-overflow: ellipsis;
  471. display: -webkit-box;
  472. -webkit-line-clamp: 4;
  473. line-clamp: 4;
  474. -webkit-box-orient: vertical;
  475. }
  476. .news-list .news-list-content .news-list-item .content .right .introduce {
  477. width: 372rpx;
  478. height: 62rpx;
  479. font-size: 24rpx;
  480. font-weight: bold;
  481. color: #868AA8;
  482. line-height: 24rpx;
  483. text-overflow: -o-ellipsis-lastline;
  484. overflow: hidden;
  485. text-overflow: ellipsis;
  486. display: -webkit-box;
  487. -webkit-line-clamp: 2;
  488. line-clamp: 2;
  489. -webkit-box-orient: vertical;
  490. }
  491. .news-list .news-list-content .news-list-item .content .right .bottom {
  492. display: flex;
  493. justify-content: space-between;
  494. }
  495. .news-list .news-list-content .news-list-item .content .right .bottom .tagR {
  496. background: #83CEBE;
  497. padding: 0 20rpx;
  498. border-radius: 17rpx;
  499. line-height: 34rpx;
  500. font-size: 24rpx;
  501. color: #FFFFFF;
  502. height: 34rpx;
  503. }
  504. .news-list .news-list-content .news-list-item .content .right .bottom .time {
  505. font-size: 24rpx;
  506. font-weight: 400;
  507. color: #868AA8;
  508. line-height: 34rpx;
  509. }
  510. .z-i {
  511. position: relative;
  512. display: block;
  513. z-index: 99999;
  514. }
  515. .sponsor .sponsor-title {
  516. margin: 20rpx 0 0 48rpx;
  517. font-size: 32rpx;
  518. font-weight: bold;
  519. color: #000000;
  520. line-height: 44rpx;
  521. }
  522. .sponsor-list {
  523. display: flex;
  524. flex-direction: column;
  525. align-items: center;
  526. }
  527. .sponsor-item {
  528. width: 690rpx;
  529. height: 184rpx;
  530. background: #FFFFFF;
  531. box-shadow: 0px 4px 30px 0px rgba(228, 231, 246, 0.5);
  532. border-radius: 12px;
  533. display: flex;
  534. justify-content: center;
  535. align-items: center;
  536. margin-top: 14rpx;
  537. }
  538. .sponsor-item > image{
  539. width: 300rpx;
  540. height: 110rpx;
  541. }