room.wxss 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886
  1. /* pages/room/room.wxss */
  2. Page {
  3. height: 100%;
  4. width: 100%;
  5. background-color: #413668;
  6. }
  7. scroll-view {
  8. height: 100%;
  9. }
  10. /* head */
  11. .head-l-0, .head-l-1, .head-l-2, .head-l-3, .head-l-4, .head-s-0, .head-s-1, .head-s-2, .head-s-3, .head-s-4 {
  12. align-items: center;
  13. display: flex;
  14. height: 48rpx;
  15. width: 100%;
  16. }
  17. .head-l-1, .head-l-2, .head-l-3, .head-l-4 {
  18. margin-top: 30rpx;
  19. }
  20. .take-part {
  21. position: absolute;
  22. right: 20rpx;
  23. font-size: 24rpx;
  24. color: white;
  25. line-height: 48rpx;
  26. text-align: right;
  27. }
  28. .take-part-view {
  29. display: flex;
  30. margin-left: 20rpx;
  31. margin-right: auto;
  32. flex-direction: row;
  33. width: 100%;
  34. }
  35. .take-part-avatar {
  36. /* margin-top: -48rpx; */
  37. background: #413668;
  38. display: flex;
  39. border-radius: 24rpx;
  40. width: 48rpx;
  41. height: 48rpx;
  42. margin-right: 28rpx;
  43. }
  44. .sponsor-icon {
  45. width: 88rpx;
  46. height: 80rpx;
  47. margin-left: auto;
  48. }
  49. /* before */
  50. /* sponsor */
  51. .sponsor {
  52. display: flex;
  53. flex-direction: column;
  54. margin: -320rpx 20rpx auto;
  55. height: 316rpx;
  56. /* background: linear-gradient(#262421, #32302C); */
  57. border-radius: 32rpx;
  58. overflow:hidden;
  59. }
  60. .sponsor-bg {
  61. display: flex;
  62. margin: 82rpx 20rpx 0rpx;
  63. width: 710rpx;
  64. height: 320rpx;
  65. border-radius: 32rpx;
  66. }
  67. .sponsor-title {
  68. margin-top: 60rpx;
  69. font-size: 48rpx;
  70. text-align: center;
  71. color: #bfbdff;
  72. }
  73. .sponsor-name {
  74. margin-top: 4rpx;
  75. font-size: 40rpx;
  76. text-align: center;
  77. color: #bfbdff;
  78. font-weight: bold;
  79. }
  80. /* avatar */
  81. .avatar-bg {
  82. position: absolute;
  83. left: 50%;
  84. margin-left: -94rpx;
  85. top: 70rpx;
  86. width: 188rpx;
  87. height: 188rpx;
  88. border-radius: 94rpx;
  89. background-color: #312950;
  90. }
  91. .avatar-middle {
  92. position: absolute;
  93. left: 12rpx;
  94. top: 12rpx;
  95. width: 164rpx;
  96. height: 164rpx;
  97. border-radius: 82rpx;
  98. background-color: white;
  99. }
  100. .avatar {
  101. position: absolute;
  102. left: 18rpx;
  103. top: 18rpx;
  104. width: 152rpx;
  105. height: 152rpx;
  106. border-radius: 76rpx;
  107. background-color: white;
  108. }
  109. /* answer */
  110. .answer {
  111. flex-direction: column;
  112. min-height: 720rpx;
  113. background-color: white;
  114. border-radius: 20rpx;
  115. position: absolute;
  116. left: 20rpx;
  117. right: 20rpx;
  118. top: 466rpx;
  119. bottom: 0rpx;
  120. margin-bottom: 20rpx;
  121. }
  122. .answer-bonus-bg {
  123. display: flex;
  124. width: 100%;
  125. height: 100rpx;
  126. }
  127. .answer-bonus-text-bg {
  128. flex-direction: row;
  129. display: flex;
  130. align-items: center;
  131. background-color: #8176de;
  132. border-radius: 12rpx;
  133. height: 100rpx;
  134. margin:-50rpx auto 0px;
  135. }
  136. .answer-bonus-big {
  137. display: flex;
  138. font-size: 52rpx;
  139. color: white;
  140. font-weight: bold;
  141. }
  142. .answer-bonus-small {
  143. margin-top: 13rpx;
  144. display: flex;
  145. font-size: 28rpx;
  146. color: white;
  147. }
  148. .answer-count-down-bg {
  149. align-items: center;
  150. display: flex;
  151. flex-direction: column;
  152. position: absolute;
  153. width: 100%;
  154. top: 50rpx;
  155. bottom: 244rpx;
  156. }
  157. .answer-count-down-view {
  158. position: absolute;
  159. top: 50%;
  160. margin-top: -85rpx;
  161. width: 100%;
  162. height: 170rpx;
  163. }
  164. .answer-count-down-title {
  165. text-align: center;
  166. font-size: 24rpx;
  167. color: #8176de;
  168. }
  169. .answer-count-down {
  170. display: flex;
  171. flex-direction: row;
  172. width: 100%;
  173. }
  174. .answer-count-down-n {
  175. font-size: 120rpx;
  176. color: #8176de;
  177. font-weight: 300;
  178. margin-left: auto;
  179. }
  180. .answer-count-down-u {
  181. font-size: 24rpx;
  182. color: #8176de;
  183. margin-top: 100rpx;
  184. margin-right: auto;
  185. }
  186. .answer-bottom-view {
  187. display: flex;
  188. flex-direction: column;
  189. position: absolute;
  190. width: 100%;
  191. height: 244rpx;
  192. bottom: 0px;
  193. }
  194. .answer-bottom-button-bg {
  195. display: flex;
  196. flex-direction: column;
  197. color: white;
  198. text-align: center;
  199. line-height: 92rpx;
  200. margin: 0px 64rpx;
  201. height: 92rpx;
  202. border-radius: 46rpx;
  203. background: linear-gradient(to left, #625AF7, #DD7FFF);
  204. box-shadow: 0rpx 4rpx 10rpx #D2B3FF;
  205. }
  206. .answer-bottom-button {
  207. width: 100%;
  208. height: 92rpx;
  209. margin-top: -92rpx;
  210. }
  211. .answer-bottom-tips-f, .answer-bottom-tips-s {
  212. font-size: 26rpx;
  213. color: #999999;
  214. text-align: center;
  215. }
  216. .answer-bottom-tips-f {
  217. margin-top: 26rpx;
  218. }
  219. .answer-bottom-tips-s {
  220. margin-top: 8rpx;
  221. }
  222. /* after */
  223. /* sponsor */
  224. .sponsor-begin {
  225. display: flex;
  226. flex-direction: column;
  227. margin: 62rpx 20rpx 0rpx;
  228. height: 152rpx;
  229. background: linear-gradient(#30284f, #413668);
  230. border-radius: 32rpx;
  231. overflow:hidden;
  232. }
  233. .sponsor-begin-name {
  234. margin-top: -8rpx;
  235. font-size: 32rpx;
  236. text-align: center;
  237. color: #bfbdff;
  238. }
  239. /* avatar */
  240. .avatar-begin-bg {
  241. position: absolute;
  242. left: 50%;
  243. margin-left: -54rpx;
  244. top: 58rpx;
  245. width: 108rpx;
  246. height: 108rpx;
  247. border-radius: 54rpx;
  248. background-color: #322a52;
  249. }
  250. .avatar-begin-middle {
  251. position: absolute;
  252. left: 8rpx;
  253. top: 8rpx;
  254. width: 92rpx;
  255. height: 92rpx;
  256. border-radius: 46rpx;
  257. background-color: white;
  258. }
  259. .avatar-begin {
  260. position: absolute;
  261. left: 12rpx;
  262. top: 12rpx;
  263. width: 84rpx;
  264. height: 84rpx;
  265. border-radius: 42rpx;
  266. background-color: white;
  267. }
  268. /* answer */
  269. .answer-begin {
  270. display: flex;
  271. flex-direction: column;
  272. min-height: 906rpx;
  273. background-color: white;
  274. border-radius: 20rpx;
  275. position: absolute;
  276. left: 20rpx;
  277. right: 20rpx;
  278. top: 282rpx;
  279. bottom: 0rpx;
  280. margin-bottom: 20rpx;
  281. }
  282. .answer-begin-bonus-bg {
  283. display: flex;
  284. width: 100%;
  285. height: 68rpx;
  286. }
  287. .answer-begin-bonus-text-bg {
  288. flex-direction: row;
  289. display: flex;
  290. align-items: center;
  291. background-color: #8176de;
  292. border-radius: 12rpx;
  293. height: 68rpx;
  294. margin:-34rpx auto 0px;
  295. }
  296. .answer-begin-bonus-big {
  297. display: flex;
  298. font-size: 44rpx;
  299. color: white;
  300. font-weight: bold;
  301. }
  302. .answer-begin-bonus-small {
  303. margin-top: 10rpx;
  304. display: flex;
  305. font-size: 24rpx;
  306. color: white;
  307. /* font-weight: lighter */
  308. }
  309. .answer-begin-question-type-bg {
  310. display: flex;
  311. margin: -4rpx auto 0px;
  312. width: 388rpx;
  313. height: 116rpx;
  314. }
  315. .answer-begin-question-type {
  316. color: white;
  317. font-size: 40rpx;
  318. text-align: center;
  319. margin-top: -96rpx;
  320. }
  321. .answer-begin-num, .answer-begin-last {
  322. color: #8176de;
  323. font-size: 64rpx;
  324. text-align: center;
  325. margin-top: 54rpx;
  326. }
  327. .answer-begin-num {
  328. letter-spacing: 10rpx;
  329. }
  330. .answer-begin-double-score {
  331. display: flex;
  332. margin: 24rpx auto 0px;
  333. width: 500rpx;
  334. height: 80rpx;
  335. }
  336. .answer-num {
  337. font-size: 32rpx;
  338. color: #666666;
  339. text-align: center;
  340. margin-top: -10rpx;
  341. }
  342. .answer-begin-count-down-bg {
  343. margin-top: 18rpx;
  344. display: flex;
  345. flex-direction: row;
  346. }
  347. .answer-begin-count-down {
  348. background-color: #ECF9FF;
  349. margin: 0px auto;
  350. border-radius: 31rpx;
  351. display: flex;
  352. flex-direction: row;
  353. }
  354. .answer-begin-count-down-text {
  355. color: #00afff;
  356. font-size: 36rpx;
  357. text-align: center;
  358. line-height: 62rpx;
  359. height: 62rpx;
  360. margin: 0px 20rpx;
  361. }
  362. .answer-question-bg {
  363. display: flex;
  364. flex-direction: column;
  365. height: 186rpx;
  366. width: 100%;
  367. margin-top: -186rpx;
  368. }
  369. .answer-question {
  370. line-height: 46rpx;
  371. text-align: center;
  372. font-size: 34rpx;
  373. margin-top: auto;
  374. margin-bottom: auto;
  375. color: #333333;
  376. }
  377. .answer-options-bg {
  378. display: flex;
  379. flex-direction: column;
  380. margin-left: 34rpx;
  381. margin-right: 34rpx;
  382. margin-top: 186rpx;
  383. height: 190rpx;
  384. /* background-color: blueviolet; */
  385. }
  386. .answer-options-row-top, .answer-options-row-bottom {
  387. display: flex;
  388. flex-direction: row;
  389. height: 80rpx;
  390. width: 100%;
  391. }
  392. .answer-options-row-bottom {
  393. margin-top: 30rpx;
  394. }
  395. .answer-options-left-w, .answer-options-right-w, .answer-options-left-t, .answer-options-right-t, .answer-options-left-f, .answer-options-right-f, .answer-options-left-q, .answer-options-right-q,
  396. .answer-options-left-s, .answer-options-right-s {
  397. display: flex;
  398. flex-direction: column;
  399. width: 46%;
  400. height: 100%;
  401. border-radius: 40rpx;
  402. }
  403. .answer-options-left-w, .answer-options-right-w {
  404. background: linear-gradient( #F7FCFF, #E7F7FF);
  405. box-shadow: 0rpx 4rpx 4rpx #D3F2FF;
  406. }
  407. .answer-options-left-s, .answer-options-right-s {
  408. background: linear-gradient(to right, #3edcff, #3fbaff);
  409. box-shadow: 0rpx 4rpx 4rpx #D3F2FF;
  410. }
  411. .answer-options-right-w, .answer-options-right-s,.answer-options-right-t, .answer-options-right-f {
  412. margin-left: auto;
  413. }
  414. .answer-options-left-t, .answer-options-right-t {
  415. background: linear-gradient(to right, #81C43F, #1EC41F);
  416. box-shadow: 0rpx 4rpx 8rpx #A5E293;
  417. }
  418. .answer-options-left-f, .answer-options-right-f {
  419. background: linear-gradient(to right, #FF856C, #FF4F89);
  420. box-shadow: 0rpx 4rpx 8rpx #FFAFB8;
  421. }
  422. .answer-options-left-q, .answer-options-right-q {
  423. background-color: #F2F2F2;
  424. }
  425. .answer-options-right-q {
  426. margin-left: auto;
  427. }
  428. .answer-options-w, .answer-options-t, .answer-options-f, .answer-options-q, .answer-options-s {
  429. font-size: 28rpx;
  430. text-align: center;
  431. margin-top: auto;
  432. margin-bottom: auto;
  433. }
  434. .answer-options-w {
  435. color: #262626;
  436. }
  437. .answer-options-t, .answer-options-f {
  438. color: white;
  439. font-weight: bold;
  440. }
  441. answer-options-s, {
  442. color: white;
  443. }
  444. .answer-options-q {
  445. color: #878787;
  446. }
  447. /* result */
  448. .result-ranking {
  449. font-size: 36rpx;
  450. font-weight: bold;
  451. color: #262626;
  452. text-align: center;
  453. margin-top: 30rpx;
  454. }
  455. .result-middle-bg {
  456. width: 100%;
  457. height: 228rpx;
  458. display: flex;
  459. flex-direction: column;
  460. }
  461. .result-bonus-bg {
  462. display: flex;
  463. flex-direction: row;
  464. margin-top: 20rpx;
  465. width: 100%;
  466. }
  467. .result-bonus {
  468. margin-left: auto;
  469. margin-right: auto;
  470. display: flex;
  471. flex-direction: row;
  472. }
  473. .result-bonus-big {
  474. color: #FC454C;
  475. font-size: 68rpx;
  476. font-weight: bold;
  477. }
  478. .result-bonus-small {
  479. margin-top: 35rpx;
  480. color: #FC454C;
  481. font-size: 32rpx;
  482. font-weight: bold;
  483. }
  484. .result-tips {
  485. font-size: 26rpx;
  486. color: #535353;
  487. margin-top: 20rpx;
  488. text-align: center;
  489. /* font-weight: lighter; */
  490. }
  491. .result-false-img {
  492. width: 100%;
  493. height: 198rpx;
  494. margin-top: auto;
  495. margin-bottom: 0px;
  496. }
  497. .result-share {
  498. display: flex;
  499. flex-direction: column;
  500. font-size: 34rpx;
  501. color: white;
  502. text-align: center;
  503. line-height: 92rpx;
  504. margin-left: 96rpx;
  505. margin-right: 96rpx;
  506. height: 92rpx;
  507. border-radius: 46rpx;
  508. background: linear-gradient(to left, #625AF7, #DD7FFF);
  509. box-shadow: 0rpx 4rpx 8rpx #D2B3FF;
  510. }
  511. .result-share-button {
  512. width: 100%;
  513. height: 92rpx;
  514. margin-top: -92rpx;
  515. }
  516. .result-share-tips {
  517. font-size: 24rpx;
  518. color: #783CE6;
  519. text-align: center;
  520. line-height: 72rpx;
  521. margin-top: 28rpx;
  522. background-color: #F0F0FE;
  523. }
  524. .result-share-bg {
  525. position: absolute;
  526. top: 0rpx;
  527. left: 50%;
  528. margin-left: -355rpx;
  529. width: 710rpx;
  530. height: 662rpx;
  531. }
  532. .result-share-double-bg, .result-share-add-bg {
  533. position: absolute;
  534. top: 211rpx;
  535. left: 65rpx;
  536. width: 580rpx;
  537. height: 240rpx;
  538. }
  539. .result-share-double {
  540. position: absolute;
  541. text-align: center;
  542. font-weight: bold;
  543. width: 100%;
  544. top: 305rpx;
  545. font-size: 108rpx;
  546. background: linear-gradient(to right, #FFB259, #FC5F62);
  547. -webkit-background-clip: text;
  548. color: transparent;
  549. }
  550. .result-add-cell-bg {
  551. position: absolute;
  552. display: flex;
  553. flex-direction: row;
  554. width: 100%;
  555. top: 290rpx;
  556. }
  557. .result-add-cell {
  558. margin-left: auto;
  559. font-size: 108rpx;
  560. font-weight: bold;
  561. background: linear-gradient(to right, #FFB259, #FC5F62);
  562. -webkit-background-clip: text;
  563. color: transparent;
  564. }
  565. .result-add-cell-unit {
  566. margin-top: 48rpx;
  567. margin-right: 180rpx;
  568. font-size: 60rpx;
  569. color: #FC5F62;
  570. }
  571. /* ranking */
  572. .ranking-bg {
  573. /* position: absolute; */
  574. margin-left: 24rpx;
  575. margin-right: 24rpx;
  576. margin-bottom: 14rpx;
  577. margin-top: auto;
  578. /* left: 24rpx;
  579. right: 24rpx;
  580. bottom: 14rpx;
  581. height: auto; */
  582. display: flex;
  583. flex-direction: column;
  584. }
  585. .ranking-row {
  586. display: flex;
  587. flex-direction: row;
  588. width: 100%;
  589. height: 44rpx;
  590. margin-bottom: 16rpx;
  591. }
  592. .ranking {
  593. width: 311rpx;
  594. height: 44rpx;
  595. border-color: #E5E5E5;
  596. border-style: solid;
  597. border-width: 1rpx;
  598. border-radius: 23rpx;
  599. display: flex;
  600. flex-direction: row;
  601. box-sizing: border-box;
  602. /* background-color: red; */
  603. }
  604. .ranking-avatar {
  605. margin-left: -1px;
  606. margin-top: -1rpx;
  607. width: 44rpx;
  608. height: 44rpx;
  609. border-radius: 22rpx;
  610. /* background-color: red; */
  611. }
  612. .ranking-num {
  613. font-size: 28rpx;
  614. font-weight: 300;
  615. margin-left: 8rpx;
  616. line-height: 44rpx;
  617. color: #6D6D6D;
  618. }
  619. .ranking-name {
  620. font-size: 22rpx;
  621. overflow: hidden;
  622. width: 110rpx;
  623. font-weight: 300;
  624. margin-left: 10rpx;
  625. line-height: 44rpx;
  626. height: 44rpx;
  627. color: #878787;
  628. }
  629. .ranking-count {
  630. margin-left: auto;
  631. margin-right: 12rpx;
  632. font-size: 22rpx;
  633. font-weight: 300;
  634. line-height: 44rpx;
  635. right: 12rpx;
  636. text-align: right;
  637. color: #F9723F;
  638. }
  639. .ranking-self-view {
  640. position: absolute;
  641. width: 662rpx;
  642. height: 44rpx;
  643. /* right: 36rpx; */
  644. bottom: 30rpx;
  645. display: flex;
  646. flex-direction: row;
  647. }
  648. .ranking-self-bg {
  649. /* position: absolute; */
  650. width: 311rpx;
  651. height: 44rpx;
  652. /* border-color: white;
  653. border-style: solid;
  654. border-width: 1rpx;
  655. padding-left: 1rpx;
  656. padding-right: 1rpx; */
  657. /* margin-left:47%; */
  658. /* right: 36rpx;
  659. bottom: 30rpx; */
  660. /* margin-left: auto; */
  661. margin-left: auto;
  662. margin-right: 0px;
  663. /* margin-right: auto; */
  664. border-radius: 22rpx;
  665. display: flex;
  666. flex-direction: row;
  667. background: linear-gradient(to right, #3edcff, #3fbaff);
  668. box-shadow: 0rpx 4rpx 8rpx #c3ecfe;
  669. }
  670. .ranking-self {
  671. margin-bottom: auto;
  672. margin-top: auto;
  673. margin-left: 1px;
  674. width: 40rpx;
  675. height: 40rpx;
  676. border-radius: 20rpx;
  677. background-color: white;
  678. font-size: 24rpx;
  679. line-height: 40rpx;
  680. text-align: center;
  681. color: #17abf1;
  682. }
  683. /* animation */
  684. .animation-l, .animation-s {
  685. position: absolute;
  686. top: 382rpx;
  687. left: 50%;
  688. margin-left: -355rpx;
  689. width: 710rpx;
  690. height: 662rpx;
  691. }
  692. .animation-l {
  693. top: 530rpx;
  694. }
  695. /* 遮罩 */
  696. .animation-answer-bg {
  697. position: absolute;
  698. /* top: 382rpx; */
  699. left: 50%;
  700. margin-left: -355rpx;
  701. width: 710rpx;
  702. height: 662rpx;
  703. opacity: 0;
  704. /* background-color: red; */
  705. }
  706. /* 光 */
  707. .animation-answer-right-bg {
  708. position: absolute;
  709. top: 104rpx;
  710. width: 100%;
  711. height: 352rpx;
  712. display: flex;
  713. flex-direction: row;
  714. }
  715. .animation-answer {
  716. margin: auto auto auto;
  717. width: 0px;
  718. height: 0px;
  719. /* background-color: red; */
  720. }
  721. .animation-answer-star-bg {
  722. position: absolute;
  723. top: 214rpx;
  724. width: 100%;
  725. height: 204rpx;
  726. display: flex;
  727. flex-direction: row;
  728. }
  729. .animation-answer-hook {
  730. position: absolute;
  731. width: 112rpx;
  732. height: 88rpx;
  733. top: 240rpx;
  734. left: 50%;
  735. margin-left: -56rpx;
  736. opacity: 0;
  737. }
  738. .animation-answer-count {
  739. position: absolute;
  740. width: 100%;
  741. color: white;
  742. font-size: 36rpx;
  743. text-align: center;
  744. top: 328rpx;
  745. opacity: 0;
  746. }
  747. .animation-answer-false-bg-l, .animation-answer-false-bg-s {
  748. position: absolute;
  749. left: 50%;
  750. margin-left: -355rpx;
  751. top: 382rpx;
  752. width: 710rpx;
  753. height: 662rpx;
  754. }
  755. .animation-answer-false-bg-l {
  756. top: 530rpx;
  757. }
  758. .animation-answer-false-l, .animation-answer-false-s {
  759. position: absolute;
  760. left: 50%;
  761. margin-left: -175rpx;
  762. top: 500rpx;
  763. width: 350rpx;
  764. height: 350rpx;
  765. }
  766. .animation-answer-false-l {
  767. top: 650rpx;
  768. }