home.wxss 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381
  1. @import "../../lib/style/main.wxss";
  2. page {
  3. padding-bottom: 100rpx;
  4. padding-bottom: calc(100rpx + constant(safe-area-inset-bottom));
  5. padding-bottom: calc(100rpx + env(safe-area-inset-bottom));
  6. display: flex;
  7. min-height: 100.1vh;
  8. }
  9. .navigation {
  10. position: fixed;
  11. left: 0;
  12. right: 0;
  13. bottom: 0;
  14. border-top: var(--themebor);
  15. padding: 0.4em;
  16. font-size: 0.7em;
  17. padding-bottom: 0.4em;
  18. padding-bottom: calc(0.4em + constant(safe-area-inset-bottom));
  19. padding-bottom: calc(0.4em + env(safe-area-inset-bottom));
  20. }
  21. .navigation .nav {
  22. color: var(--colorp);
  23. }
  24. .navigation .nav.act {
  25. color: var(--themecolor);
  26. }
  27. .navigation image {
  28. margin-bottom: 0.4em;
  29. width: 36rpx;
  30. height: 36rpx;
  31. margin: 0 4rpx;
  32. }
  33. .home, .activities, .community {
  34. flex: 1;
  35. }
  36. .swiperContainer {
  37. border-radius: var(--themerad);
  38. margin: var(--sizenor);
  39. overflow: hidden;
  40. }
  41. .swiperContainer swiper {
  42. height: 360rpx;
  43. }
  44. .swiperContainer image {
  45. width: 100%;
  46. display: block;
  47. }
  48. .hotNews, .partners {
  49. padding: var(--sizenor);
  50. }
  51. .title, .article, .article .attr, .levelTitle {
  52. display: flex;
  53. display: -webkit-flex;
  54. }
  55. .title, .article .attr, .levelTitle {
  56. align-items: center;
  57. }
  58. .title {
  59. justify-content: space-between;
  60. }
  61. .title .bar {
  62. background-color: var(--themedanger);
  63. height: calc(2 * var(--sizenor));
  64. width: 12rpx;
  65. margin-right: 0.7em;
  66. }
  67. .article {
  68. padding: var(--sizenor) 0;
  69. border-bottom: var(--themebor);
  70. }
  71. .article .imgbox {
  72. width: 240rpx;
  73. height: 240rpx;
  74. overflow: hidden;
  75. margin-right: 0.5em;
  76. }
  77. .article .content {
  78. flex: 1;
  79. height: 240rpx;
  80. overflow: hidden;
  81. }
  82. .article .attr {
  83. color: var(--colorattr);
  84. font-size: var(--txtsub);
  85. }
  86. .article .attr image {
  87. height: 1em;
  88. width: 1em;
  89. margin-right: 0.2em;
  90. }
  91. .article .content > view {
  92. margin-top: 0.5em;
  93. }
  94. .article .p {
  95. color: var(--colorp);
  96. text-overflow: ellipsis;
  97. font-size: var(--txtsub);
  98. }
  99. .partnersContainer {
  100. padding: var(--sizenor);
  101. }
  102. .partnersContainer .level {
  103. margin-top: 1em;
  104. }
  105. .partnersContainer .level:first-child {
  106. margin-top: 0;
  107. }
  108. .partnersContainer .levelTitle {
  109. color: #ccc;
  110. font-size: var(--txtsub);
  111. flex-direction: column;
  112. margin-bottom: var(--sizenor);
  113. }
  114. .level:first-child image {
  115. height: 100rpx;
  116. width: 300rpx;
  117. }
  118. .level image {
  119. height: 90rpx;
  120. width: 270rpx;
  121. }
  122. .searchContainer {
  123. padding: var(--sizenor);
  124. color: var(--colorp);
  125. font-size: var(--txtsub);
  126. }
  127. .search {
  128. padding: 0.5em 1em;
  129. border-radius: 40rpx;
  130. background-color: #efefef;
  131. height: 45rpx;
  132. box-sizing: content-box;
  133. }
  134. .search input {
  135. display: block;
  136. text-align: center;
  137. width: 100%;
  138. color: #333;
  139. }
  140. .activityContainer {
  141. padding: 0 var(--sizenor);
  142. }
  143. .activity {
  144. border-radius: var(--themerad);
  145. margin: 0.5em 0 1.2em 0;
  146. overflow: hidden;
  147. height: 360rpx;
  148. position: relative;
  149. }
  150. .activity image {
  151. width: 100%;
  152. height: 100%;
  153. }
  154. .activity .skiing {
  155. position: absolute;
  156. left: 0;
  157. right: 0;
  158. bottom: 0;
  159. padding: var(--sizesmr) var(--sizenor);
  160. color: #fff;
  161. background-color: rgba(0, 0, 0, 0.4);
  162. }
  163. .removeTag {
  164. position: absolute;
  165. top: 20rpx;
  166. left: 20rpx;
  167. font-size: 1.4em;
  168. width: 1.4em;
  169. height: 1.4em;
  170. }
  171. .tag {
  172. color: #fff;
  173. position: absolute;
  174. top: 19rpx;
  175. right: -38rpx;
  176. font-size: 0.76em;
  177. padding: 2rpx 40rpx;
  178. transform: rotate(45deg);
  179. -ms-transform: rotate(45deg);
  180. -moz-transform: rotate(45deg);
  181. -webkit-transform: rotate(45deg);
  182. -o-transform: rotate(45deg);
  183. }
  184. .tag.ready {
  185. background-color: #51b84b;
  186. }
  187. .tag.signing, .removeTag {
  188. background-color: #f64f5f;
  189. }
  190. .tag.finished {
  191. background-color: var(--darkgray);
  192. }
  193. .addTidings image {
  194. height: 88rpx;
  195. width: 88rpx;
  196. margin-top: -32rpx;
  197. }
  198. .mine {
  199. /* di */
  200. }
  201. .mineNav {
  202. background-color: #fff;
  203. }
  204. .mineNav > view.selected {
  205. border-bottom: 4rpx solid var(--theme);
  206. color: var(--theme);
  207. }
  208. .mineNav > view {
  209. margin-left: 32rpx;
  210. padding-bottom: 12rpx;
  211. margin-bottom: 8rpx;
  212. }
  213. .mineNav > view:first-child {
  214. margin-left: 0;
  215. }
  216. .myComment .comment {
  217. padding-bottom: 32rpx;
  218. }
  219. .comment image {
  220. width: 60rpx;
  221. height: 60rpx;
  222. }
  223. .myComment > .comment, .myAct {
  224. margin-bottom: 10rpx;
  225. }
  226. .myComment .nickname {
  227. color: #002063;
  228. }
  229. .myAct > view:last-child {
  230. margin-top: 12rpx;
  231. }
  232. .community {
  233. width: 100%;
  234. }
  235. .cover {
  236. position: fixed;
  237. top: 0;
  238. left: 0;
  239. right: 0;
  240. bottom: 0;
  241. }
  242. .cover .navigation {
  243. border: none;
  244. }
  245. .cover .nav {
  246. opacity: 0;
  247. }
  248. .bfc {
  249. overflow: hidden;
  250. margin: 0 0.75em;
  251. }
  252. .bfc > view {
  253. float: left;
  254. width: 49.99999999999%;
  255. padding: 0.25em;
  256. overflow: hidden;
  257. height: calc(402rpx + 5.54em);
  258. }
  259. .imgtxt .img {
  260. overflow: hidden;
  261. position: relative;
  262. height: 400rpx;
  263. border-top-left-radius: 14rpx;
  264. border-top-right-radius: 14rpx;
  265. border: 1rpx solid #ececec;
  266. border-bottom: none;
  267. }
  268. .imgtxt .img .videoPlay {
  269. position: absolute;
  270. height: 100rpx;
  271. width: 100rpx;
  272. top: 50%;
  273. left: 50%;
  274. margin-top: -50rpx;
  275. margin-left: -50rpx;
  276. }
  277. .imgtxt .img.bordered {
  278. border-top-left-radius: 14rpx;
  279. border-top-right-radius: 14rpx;
  280. border: 1rpx solid #ececec;
  281. border-bottom: none;
  282. }
  283. .imgtxt image {
  284. border-top-left-radius: 14rpx;
  285. border-top-right-radius: 14rpx;
  286. width: 100%;
  287. height: 100%;
  288. }
  289. .imgtxt .text {
  290. padding: 0.5em;
  291. font-size: 0.88em;
  292. border-bottom-left-radius: 14rpx;
  293. border-bottom-right-radius: 14rpx;
  294. border: 1rpx solid #ececec;
  295. border-top: none;
  296. }
  297. .imgtxt .text .textcontent {
  298. height: 2.64em;
  299. overflow: hidden;
  300. }
  301. .imgtxt .more {
  302. margin-top: 0.5em;
  303. }
  304. .imgtxt .avatar .circle, .imgtxt .favor image {
  305. margin-right: 0.4em;
  306. }
  307. .imgtxt .avatar .circle {
  308. height: 1.4em;
  309. width: 1.4em;
  310. }
  311. .imgtxt .favorite {
  312. height: 1em;
  313. width: 1em;
  314. }