home.wxss 9.0 KB

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