home.wxss 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482
  1. @import "../../modal/dialogBrainLack.wxss";
  2. @import "../../modal/dialogGeneral.wxss";
  3. @import "../../modal/dialogRoom.wxss";
  4. /* pages/home/home.wxss */
  5. page{
  6. height: 100%;
  7. background-color: #fbf7ef;
  8. }
  9. .head{
  10. position: relative;
  11. margin: 0 20rpx;
  12. background: linear-gradient(to top, #715bea, #9859f5);
  13. border-radius: 8rpx;
  14. }
  15. .head-img{
  16. display: inline-block;
  17. width: 88rpx;
  18. height: 88rpx;
  19. margin: 40rpx 20rpx 46rpx 32rpx;
  20. border-radius: 104rpx;
  21. border: 8rpx solid #fff;
  22. background-color: #fff;
  23. vertical-align: top;
  24. }
  25. .head-info{
  26. display: inline-block;
  27. width: 500rpx;
  28. vertical-align: top;
  29. }
  30. .head-text{
  31. display: block;
  32. margin: 50rpx 0 0;
  33. width: 340rpx;
  34. height: 44rpx;
  35. line-height: 44rpx;
  36. color: #fff;
  37. font-size: 32rpx;
  38. overflow: hidden;
  39. text-overflow: ellipsis;
  40. white-space: nowrap;
  41. }
  42. .head-rank{
  43. display: inline-block;
  44. width: 120rpx;
  45. line-height: 40rpx;
  46. color: #fff;
  47. font-size: 26rpx;
  48. }
  49. .head-rule{
  50. line-height: 40rpx;
  51. font-size: 22rpx;
  52. color: rgba(255, 255, 255, 0.6);
  53. }
  54. .head-rule-icon{
  55. display: inline-block;
  56. width:0;
  57. height:0;
  58. margin-left: 10rpx;
  59. border-width: 9rpx;
  60. border-style: solid;
  61. border-color: transparent transparent transparent rgba(255, 255, 255, 0.6);
  62. }
  63. .head-rank-logo{
  64. position: absolute;
  65. width: 186rpx;
  66. height: 146rpx;
  67. top: 0;
  68. right: 36rpx;
  69. }
  70. .head-rank-logo > image{
  71. width: 186rpx;
  72. height: 146rpx;
  73. }
  74. .head-rank-logo > text{
  75. position: absolute;
  76. display: block;
  77. width: 186rpx;
  78. top: 72rpx;
  79. text-align: center;
  80. color: #f6cfff;
  81. font-size: 22rpx;
  82. }
  83. .head-details{
  84. display: inline-block;
  85. height: 40rpx;
  86. margin-bottom: 28rpx;
  87. border-radius: 22rpx;
  88. background-color: rgba(0, 0, 0, 0.12);
  89. }
  90. .head-details-pk{
  91. width: 180rpx;
  92. margin-left: 36rpx;
  93. margin-right: 50rpx;
  94. }
  95. .head-details-brain{
  96. width: 180rpx;
  97. margin-right: 52rpx;
  98. }
  99. .head-details-balance{
  100. width: 180rpx;
  101. }
  102. .head-details .icon{
  103. width: 40rpx;
  104. height: 40rpx;
  105. margin-left: -4rpx;
  106. }
  107. .head-details > image.btn{
  108. float: right;
  109. width: 40rpx;
  110. height: 40rpx;
  111. }
  112. .head-details > text{
  113. display: inline-block;
  114. height: 40rpx;
  115. line-height: 40rpx;
  116. margin-left: 10rpx;
  117. font-size: 24rpx;
  118. font-family: 'Trebuchet MS', Tahoma, sans-serif;
  119. color: #e1dbf5;
  120. vertical-align: top;
  121. }
  122. .head-details > button{
  123. float: right;
  124. width: 60rpx;
  125. height: 40rpx;
  126. line-height: 40rpx;
  127. padding: 0;
  128. font-size: 20rpx;
  129. color: #d89866;
  130. background: transparent;
  131. border: 1px solid #e1a978;
  132. border-radius: 20rpx;
  133. }
  134. /* rank style */
  135. .rank{
  136. margin: 20rpx 20rpx 0;
  137. }
  138. .rank view{
  139. display: inline-block;
  140. }
  141. .rank-game{
  142. position: relative;
  143. float: left;
  144. width: 340rpx;
  145. height: 400rpx;
  146. margin-right: 20rpx;
  147. }
  148. .rank-game > image{
  149. width: 340rpx;
  150. height: 400rpx;
  151. }
  152. .rank-game > text{
  153. position: absolute;
  154. display: inline-block;
  155. top: 24rpx;
  156. right: 18rpx;
  157. font-size: 32rpx;
  158. font-family: 'Trebuchet MS', Tahoma, sans-serif;
  159. color: #fff;
  160. }
  161. .rank-game > view.season{
  162. position: absolute;
  163. left: 20rpx;
  164. top: 86rpx;
  165. height: 46rpx;
  166. padding: 0;
  167. background-color: #fff;
  168. border-radius: 23rpx;
  169. }
  170. .rank-game view.season > image{
  171. width: 42rpx;
  172. height: 42rpx;
  173. margin: 2rpx;
  174. border-radius: 42rpx;
  175. background-color: #d8d8d8;
  176. }
  177. .rank-game view.season > text{
  178. display: inline-block;
  179. line-height: 46rpx;
  180. margin-right: 10rpx;
  181. font-size: 26rpx;
  182. color: #535353;
  183. vertical-align: top;
  184. }
  185. .rank-game view.season > text text.red{
  186. color: #f01c46;
  187. }
  188. .rank-game view.dis{
  189. position: absolute;
  190. width: 340rpx;
  191. height: 400rpx;
  192. left: 0;
  193. top: 0;
  194. border-radius: 8rpx;
  195. background: rgba(0, 0, 0, 0.3)
  196. }
  197. .rank-friend, .rank-add{
  198. position: relative;
  199. width: 350rpx;
  200. height: 190rpx;
  201. border-radius: 8rpx;
  202. }
  203. .rank-friend > button{
  204. position: absolute;
  205. width: 350rpx;
  206. height: 190rpx;
  207. left: 0;
  208. top: 0;
  209. padding: 0;
  210. background: transparent;
  211. border-radius: 8rpx;
  212. }
  213. .rank-friend > image{
  214. width: 350rpx;
  215. height: 190rpx;
  216. }
  217. .rank-friend view.dis, .rank-add view.dis{
  218. position: absolute;
  219. width: 350rpx;
  220. height: 190rpx;
  221. left: 0;
  222. top: 0;
  223. border-radius: 8rpx;
  224. background: rgba(0, 0, 0, 0.4)
  225. }
  226. .rank-add view.dis{
  227. opacity: 0;
  228. }
  229. .rank-add{
  230. position: relative;
  231. margin-top: 10rpx;
  232. background:linear-gradient(#7160e7, #5b7bf2);
  233. }
  234. .rank-add > image{
  235. width: 350rpx;
  236. height: 190rpx;
  237. }
  238. .rank-add > image.add-img{
  239. position: absolute;
  240. width: 32rpx;
  241. height: 32rpx;
  242. top: 92rpx;
  243. left: 20rpx;
  244. border-radius: 36rpx;
  245. vertical-align: middle;
  246. }
  247. .rank-add > text{
  248. font-size: 22rpx;
  249. color: #fff;
  250. }
  251. .rank-add > text.plan{
  252. position: absolute;
  253. display: inline-block;
  254. height: 32rpx;
  255. line-height: 32rpx;
  256. top: 92rpx;
  257. left: 60rpx;
  258. }
  259. .rank-add > text.time{
  260. position: absolute;
  261. width: 152rpx;
  262. height: 32rpx;
  263. left: 20rpx;
  264. top: 138rpx;
  265. line-height: 32rpx;
  266. text-align: center;
  267. background-color: #c181f9;
  268. border-radius: 16rpx;
  269. }
  270. .rank-add button{
  271. position: absolute;
  272. opacity: 0;
  273. width: 350rpx;
  274. height: 190rpx;
  275. top: 0;
  276. left: 0;
  277. }
  278. /* room style */
  279. .room{
  280. padding-bottom: 46rpx;
  281. text-align: center;
  282. }
  283. .room-title{
  284. display: block;
  285. padding-top: 22rpx;
  286. text-align: center;
  287. font-size: 30rpx;
  288. color: #a57c46;
  289. font-weight: bold;
  290. }
  291. .room-sub-title{
  292. display: inline-block;
  293. height: 44rpx;
  294. line-height: 44rpx;
  295. margin-top: 14rpx;
  296. padding: 0 32rpx;
  297. border-radius: 22rpx;
  298. font-size: 24rpx;
  299. color: #a57c46;
  300. background-color: #fff;
  301. }
  302. .room-body{
  303. text-align: left;
  304. }
  305. .room-game{
  306. position: relative;
  307. display: inline-block;
  308. width: 208rpx;
  309. height: 208rpx;
  310. margin-left: 31.5rpx;
  311. margin-top: 36rpx;
  312. text-align: center;
  313. }
  314. .room-game .room-bg{
  315. width: 208rpx;
  316. height: 208rpx;
  317. }
  318. .room-game .room-logo{
  319. position: absolute;
  320. width: 80rpx;
  321. height: 80rpx;
  322. top: -5rpx;
  323. left: 58rpx;
  324. border: 8rpx solid #fff;
  325. border-radius: 50rpx;
  326. background-color: #fff;
  327. }
  328. .room-game .room-game-name{
  329. position: absolute;
  330. display: inline-block;
  331. width: 140rpx;
  332. height: 38rpx;
  333. left: 34rpx;
  334. top: 75rpx;
  335. line-height: 38rpx;
  336. font-size: 22rpx;
  337. background-color: #fe8516;
  338. color: #fff;
  339. border-radius: 20rpx;
  340. }
  341. .room-game .room-game-money{
  342. position: absolute;
  343. display: block;
  344. width: 100%;
  345. height: 56rpx;
  346. left: 0;
  347. top: 114rpx;
  348. line-height: 56rpx;
  349. font-size: 38rpx;
  350. font-weight: bold;
  351. text-align: center;
  352. color: #f8713e;
  353. }
  354. .room-game .room-game-money .room-game-money-unit{
  355. font-size: 22rpx;
  356. font-weight: normal;
  357. }
  358. .room-game .room-game-down-time, .room-game .room-game-now, .room-game .room-game-fill, .room-game .room-game-open-sub-title{
  359. position: absolute;
  360. display: block;
  361. width: 100%;
  362. height: 28rpx;
  363. left: 0;
  364. top: 164rpx;
  365. font-size: 20rpx;
  366. }
  367. .room-game text.room-game-down-time{
  368. line-height: 28rpx;
  369. color: #535353;
  370. }
  371. .room-game .room-game-fill{
  372. color: #f8713e;
  373. }
  374. .room-game .room-game-now{
  375. top: 162rpx;
  376. }
  377. .room-game .room-game-now > image{
  378. width: 24rpx;
  379. height: 24rpx;
  380. margin-right: 5rpx;
  381. vertical-align: middle;
  382. }
  383. .room-game .room-game-now > text{
  384. display: inline-block;
  385. color: #fb444c;
  386. vertical-align: middle;
  387. }
  388. .room-game .room-game-open-title{
  389. position: absolute;
  390. display: block;
  391. width: 100%;
  392. height: 56rpx;
  393. left: 0;
  394. top: 118rpx;
  395. line-height: 56rpx;
  396. font-size: 26rpx;
  397. text-align: center;
  398. font-weight: bold;
  399. color: #f8713e;
  400. }
  401. .room-game .room-game-open-sub-title{
  402. top: 165rpx;
  403. line-height: 28rpx;
  404. font-size: 22rpx;
  405. color: #535353;
  406. }
  407. .h-service-btn{
  408. position: fixed;
  409. width: 208rpx;
  410. height: 108rpx;
  411. padding: 0;
  412. margin: 0;
  413. border: 0;
  414. right: 0;
  415. bottom: 60rpx;
  416. background: transparent;
  417. }
  418. .h-service-btn::after{
  419. border: 0;
  420. }
  421. .h-service-img{
  422. width: 208rpx;
  423. height: 108rpx;
  424. }
  425. /* dialog style */
  426. .dialog-body-login, .dialog-body-rank{
  427. width: 600rpx;
  428. margin: 0 75rpx;
  429. }
  430. .dialog-body-login > image, .dialog-body-rank > image{
  431. width: 600rpx;
  432. height: 380rpx;
  433. border-radius: 40rpx 40rpx 0 0;
  434. }
  435. .dialog-body-login > view, .dialog-body-rank > view{
  436. margin-top: -20rpx;
  437. padding: 40rpx 0 54rpx;
  438. background-color: #fff;
  439. border-radius: 0 0 40rpx 40rpx;
  440. }
  441. .dialog-body-login > view text.title, .dialog-body-rank > view text.title{
  442. display: block;
  443. line-height: 50rpx;
  444. margin-bottom: 10rpx;
  445. text-align: center;
  446. font-size: 36rpx;
  447. font-weight: bold;
  448. color: #262626;
  449. }
  450. .dialog-body-rank > view text.title{
  451. line-height: 48rpx;
  452. font-size: 32rpx;
  453. font-weight: normal;
  454. }
  455. .dialog-body-login > view text.sub-title{
  456. display: block;
  457. line-height: 44rpx;
  458. font-size: 32rpx;
  459. margin: 0 40rpx;
  460. color: #535353;
  461. text-align: center;
  462. }
  463. .dialog-body-login > view button, .dialog-body-rank > view button{
  464. width: 360rpx;
  465. height: 88rpx;
  466. line-height: 88rpx;
  467. margin-top: 32rpx;
  468. border-radius: 52rpx;
  469. border: 0;
  470. color: #fff;
  471. background: linear-gradient(to right, #dd7fff, #625af7);
  472. }
  473. .dialog-body-login > view button::after, .dialog-body-rank > view button::after{
  474. border: 0;
  475. }
  476. .dialog-body-rank > view button{
  477. background: #fff;
  478. color: #773ce5;
  479. border: 1rpx solid rgba(140, 90, 235, 0.8);
  480. }