home.wxss 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581
  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 > button {
  132. flex: 1;
  133. margin-left: 20rpx;
  134. border-radius: 100rpx;
  135. background-image: linear-gradient(to right, #57A8EF, #6247FF);
  136. color: #fff;
  137. font-size: 30rpx;
  138. }
  139. .search {
  140. padding: 0.5em 1em;
  141. flex: 4;
  142. border-radius: 40rpx;
  143. background-color: #efefef;
  144. height: 45rpx;
  145. box-sizing: content-box;
  146. }
  147. .search input {
  148. display: block;
  149. text-align: center;
  150. width: 100%;
  151. color: #333;
  152. }
  153. .activityContainer {
  154. padding: 0 var(--sizenor);
  155. }
  156. .activity {
  157. border-radius: var(--themerad);
  158. margin: 0.5em 0 1.2em 0;
  159. overflow: hidden;
  160. height: 360rpx;
  161. position: relative;
  162. }
  163. .activity image {
  164. width: 100%;
  165. height: 100%;
  166. }
  167. .activity .skiing {
  168. position: absolute;
  169. left: 0;
  170. right: 0;
  171. bottom: 0;
  172. padding: var(--sizesmr) var(--sizenor);
  173. color: #fff;
  174. background-color: rgba(0, 0, 0, 0.4);
  175. }
  176. .removeTag {
  177. position: absolute;
  178. top: 20rpx;
  179. left: 20rpx;
  180. font-size: 1.4em;
  181. width: 1.4em;
  182. height: 1.4em;
  183. }
  184. .tag {
  185. color: #fff;
  186. position: absolute;
  187. top: 19rpx;
  188. right: -38rpx;
  189. font-size: 0.76em;
  190. padding: 2rpx 40rpx;
  191. transform: rotate(45deg);
  192. -ms-transform: rotate(45deg);
  193. -moz-transform: rotate(45deg);
  194. -webkit-transform: rotate(45deg);
  195. -o-transform: rotate(45deg);
  196. }
  197. .tag.ready {
  198. background-color: #51b84b;
  199. }
  200. .tag.signing, .removeTag {
  201. background-color: #f64f5f;
  202. }
  203. .tag.finished {
  204. background-color: var(--darkgray);
  205. }
  206. .addTidings image {
  207. height: 88rpx;
  208. width: 88rpx;
  209. margin-top: -32rpx;
  210. }
  211. .mine {
  212. /* di */
  213. }
  214. .mineNav {
  215. background-color: #fff;
  216. }
  217. .mineNav > view.selected {
  218. border-bottom: 4rpx solid var(--theme);
  219. color: var(--theme);
  220. }
  221. .mineNav > view {
  222. margin-left: 32rpx;
  223. padding-bottom: 12rpx;
  224. margin-bottom: 8rpx;
  225. }
  226. .mineNav > view:first-child {
  227. margin-left: 0;
  228. }
  229. .myComment .comment {
  230. padding-bottom: 32rpx;
  231. }
  232. .comment image {
  233. width: 60rpx;
  234. height: 60rpx;
  235. }
  236. .myComment > .comment, .myAct {
  237. margin-bottom: 10rpx;
  238. }
  239. .myComment .nickname {
  240. color: #002063;
  241. }
  242. .myAct > view:last-child {
  243. margin-top: 12rpx;
  244. }
  245. .community {
  246. width: 100%;
  247. }
  248. .cover {
  249. position: fixed;
  250. top: 0;
  251. left: 0;
  252. right: 0;
  253. bottom: 0;
  254. z-index: 999;
  255. }
  256. .cover .navigation {
  257. border: none;
  258. }
  259. .cover .nav {
  260. opacity: 0;
  261. }
  262. .bfc {
  263. overflow: hidden;
  264. margin: 0 0.75em;
  265. }
  266. .bfc > view {
  267. float: left;
  268. width: 49.99999999999%;
  269. padding: 0.25em;
  270. overflow: hidden;
  271. height: calc(402rpx + 5.54em);
  272. }
  273. .imgtxt .img {
  274. overflow: hidden;
  275. position: relative;
  276. height: 400rpx;
  277. border-top-left-radius: 14rpx;
  278. border-top-right-radius: 14rpx;
  279. border: 1rpx solid #ececec;
  280. border-bottom: none;
  281. }
  282. .imgtxt .img .videoPlay {
  283. position: absolute;
  284. height: 100rpx;
  285. width: 100rpx;
  286. top: 50%;
  287. left: 50%;
  288. margin-top: -50rpx;
  289. margin-left: -50rpx;
  290. }
  291. .imgtxt .img.bordered {
  292. border-top-left-radius: 14rpx;
  293. border-top-right-radius: 14rpx;
  294. border: 1rpx solid #ececec;
  295. border-bottom: none;
  296. }
  297. .imgtxt image {
  298. border-top-left-radius: 14rpx;
  299. border-top-right-radius: 14rpx;
  300. width: 100%;
  301. height: 100%;
  302. }
  303. .imgtxt .text {
  304. padding: 0.5em;
  305. font-size: 0.88em;
  306. border-bottom-left-radius: 14rpx;
  307. border-bottom-right-radius: 14rpx;
  308. border: 1rpx solid #ececec;
  309. border-top: none;
  310. }
  311. .imgtxt .text .textcontent {
  312. height: 2.64em;
  313. overflow: hidden;
  314. }
  315. .imgtxt .more {
  316. margin-top: 0.5em;
  317. }
  318. .imgtxt .avatar .circle, .imgtxt .favor image {
  319. margin-right: 0.4em;
  320. }
  321. .imgtxt .avatar .circle {
  322. height: 1.4em;
  323. width: 1.4em;
  324. }
  325. .imgtxt .favorite {
  326. height: 1em;
  327. width: 1em;
  328. }
  329. .nav-list {
  330. position: fixed;
  331. bottom: 0;
  332. height: 160rpx;
  333. width: 100%;
  334. z-index: 10;
  335. background: transparent;
  336. }
  337. .nav-select {
  338. display: flex;
  339. position: relative;
  340. z-index: 10;
  341. background: transparent;
  342. }
  343. .nav-select .home,.nav-select .activity,.nav-select .community,.nav-select .me {
  344. flex: 1;
  345. margin-top: 75rpx;
  346. display: flex;
  347. align-items: center;
  348. flex-direction: column;
  349. background: transparent;
  350. }
  351. .nav-list image {
  352. width: 40rpx;
  353. height: 40rpx;
  354. }
  355. .nav-list .bg {
  356. width: 100%;
  357. position: absolute;
  358. z-index: 0;
  359. background: transparent;
  360. }
  361. .nav-list .release {
  362. flex: 1;
  363. display: flex;
  364. justify-content: center;
  365. }
  366. .nav-list .release image{
  367. width: 150rpx;
  368. position: relative;
  369. }
  370. .home-nav-list {
  371. height: 244rpx;
  372. position: relative;
  373. margin-top: -36rpx;
  374. }
  375. .home-nav-list > image{
  376. width: 100%;
  377. height: 100%;
  378. position: absolute;
  379. z-index: 0;
  380. }
  381. .home-nav-select {
  382. display: flex;
  383. position: relative;
  384. z-index: 9;
  385. height: 90%;
  386. width: 80%;
  387. margin: auto;
  388. font-size: 24rpx;
  389. font-weight: bold;
  390. color: #2E3149;
  391. }
  392. .home-nav-select > view{
  393. flex: 1;
  394. display: flex;
  395. justify-content: center;
  396. align-items: center;
  397. flex-direction: column;
  398. }
  399. .home-nav-select image{
  400. width: 120rpx;
  401. }
  402. .news-list .hot-title {
  403. display: flex;
  404. justify-content: space-between;
  405. margin-bottom: 30rpx;
  406. }
  407. .news-list .hot-title .title{
  408. width: 128rpx;
  409. height: 44rpx;
  410. font-size: 32rpx;
  411. font-weight: bold;
  412. color: #000000;
  413. line-height: 44rpx;
  414. margin-left: 48rpx;
  415. }
  416. .news-list .hot-title .more {
  417. height: 34rpx;
  418. color: #868AA8;
  419. display: flex;
  420. font-size: 24rpx;
  421. align-items: center;
  422. }
  423. .news-list .hot-title .more > image {
  424. width: 28rpx;
  425. margin: 0 34rpx 0 10rpx;
  426. position: relative;
  427. }
  428. .news-list .news-list-content .news-list-item{
  429. position: relative;
  430. margin-top: -30rpx;
  431. }
  432. .news-list .news-list-content .news-list-item >image{
  433. width: 100%;
  434. position: absolute;
  435. z-index: 0;
  436. }
  437. .news-list .news-list-content .news-list-item .content {
  438. padding: 46rpx 60rpx 48rpx 50rpx;
  439. box-sizing: border-box;
  440. display: flex;
  441. position: relative;
  442. z-index: 9;
  443. }
  444. .news-list .news-list-content .news-list-item .content .left{
  445. margin-top: 15rpx;
  446. width: 232rpx;
  447. height: 154rpx;
  448. margin-right: 34rpx;
  449. position: relative;
  450. z-index: 0;
  451. }
  452. .news-list .news-list-content .news-list-item .content .right {
  453. display: flex;
  454. justify-content: center;
  455. flex-direction: column;
  456. }
  457. .news-list .news-list-content .news-list-item .content .right .title {
  458. width: 372rpx;
  459. min-height: 44rpx;
  460. font-size: 26rpx;
  461. font-weight: bold;
  462. color: #262626;
  463. line-height: 27rpx;
  464. margin-bottom: 10rpx;
  465. text-overflow: -o-ellipsis-lastline;
  466. overflow: hidden;
  467. text-overflow: ellipsis;
  468. display: -webkit-box;
  469. -webkit-line-clamp: 4;
  470. line-clamp: 4;
  471. -webkit-box-orient: vertical;
  472. }
  473. .news-list .news-list-content .news-list-item .content .right .introduce {
  474. width: 372rpx;
  475. height: 68rpx;
  476. font-size: 24rpx;
  477. font-weight: bold;
  478. color: #868AA8;
  479. line-height: 24rpx;
  480. text-overflow: -o-ellipsis-lastline;
  481. overflow: hidden;
  482. text-overflow: ellipsis;
  483. display: -webkit-box;
  484. -webkit-line-clamp: 2;
  485. line-clamp: 2;
  486. -webkit-box-orient: vertical;
  487. }
  488. .news-list .news-list-content .news-list-item .content .right .bottom {
  489. display: flex;
  490. justify-content: space-between;
  491. }
  492. .news-list .news-list-content .news-list-item .content .right .bottom .tagR {
  493. background: #83CEBE;
  494. padding: 0 20rpx;
  495. border-radius: 17rpx;
  496. line-height: 34rpx;
  497. font-size: 24rpx;
  498. color: #FFFFFF;
  499. height: 34rpx;
  500. }
  501. .news-list .news-list-content .news-list-item .content .right .bottom .time {
  502. font-size: 24rpx;
  503. font-weight: 400;
  504. color: #868AA8;
  505. line-height: 34rpx;
  506. }
  507. .z-i {
  508. position: relative;
  509. display: block;
  510. z-index: 99999;
  511. }