pk.wxss 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639
  1. /* pages/pk/pk.wxss */
  2. page {
  3. position: absolute;
  4. width: 100%;
  5. height: 100%;
  6. background-color: #5444a3;
  7. overflow: hidden;
  8. }
  9. .btn {
  10. display: inline-block;
  11. min-width: 280rpx;
  12. min-height: 108rpx;
  13. line-height: 108rpx;
  14. border-radius: 54rpx;
  15. color: #fff;
  16. background-color: #4a90e2;
  17. font-size: 34rpx;
  18. }
  19. .pk-bg {
  20. position: absolute;
  21. bottom: 0;
  22. width: 750rpx;
  23. height: 336rpx;
  24. }
  25. /* friend wait style */
  26. .pk-friend-wait {
  27. position: relative;
  28. height: 1052rpx;
  29. top: 50%;
  30. left: 50%;
  31. transform: translate(-50%, -50%);
  32. }
  33. .pk-friend-wait .name {
  34. display: block;
  35. width: 700rpx;
  36. margin: 0 auto;
  37. text-align: center;
  38. font-size: 32rpx;
  39. color: #bfbdff;
  40. overflow: hidden;
  41. text-overflow: ellipsis;
  42. white-space: nowrap;
  43. }
  44. .pk-friend-wait .head {
  45. position: relative;
  46. margin: 0 auto;
  47. width: 508rpx;
  48. }
  49. .pk-friend-wait .head-bg-1 {
  50. width: 508rpx;
  51. height: 208rpx;
  52. }
  53. .pk-friend-wait .head-bg-2 {
  54. position: absolute;
  55. width: 180rpx;
  56. height: 140rpx;
  57. left: 164rpx;
  58. top: 50rpx;
  59. }
  60. .pk-friend-wait .head-main {
  61. position: absolute;
  62. width: 108rpx;
  63. height: 108rpx;
  64. left: 192rpx;
  65. top: 40rpx;
  66. border: 8rpx solid #fff;
  67. border-radius: 108rpx;
  68. background-color: #fff;
  69. }
  70. .pk-friend-wait .radar, .pk-rank-wait .radar {
  71. position: relative;
  72. width: 524rpx;
  73. height: 524rpx;
  74. margin: 0 auto;
  75. text-align: center;
  76. }
  77. .pk-friend-wait .radar-1, .pk-rank-wait .radar-1 {
  78. position: absolute;
  79. opacity: 0.1;
  80. width: 524rpx;
  81. height: 524rpx;
  82. background: linear-gradient(to left, #7daae9, #ad83f1);
  83. border-radius: 524rpx;
  84. }
  85. .pk-friend-wait .radar-2, .pk-rank-wait .radar-2 {
  86. position: absolute;
  87. opacity: 0.25;
  88. width: 404rpx;
  89. height: 404rpx;
  90. left: 60rpx;
  91. top: 60rpx;
  92. background: linear-gradient(to left, #7daae9, #ad83f1);
  93. border-radius: 404rpx;
  94. }
  95. .pk-friend-wait .radar-3, .pk-rank-wait .radar-3 {
  96. position: absolute;
  97. opacity: 0.45;
  98. width: 288rpx;
  99. height: 288rpx;
  100. left: 118rpx;
  101. top: 118rpx;
  102. background: linear-gradient(to left, #7daae9, #ad83f1);
  103. border-radius: 288rpx;
  104. }
  105. .pk-friend-wait .radar-4, .pk-rank-wait .radar-4 {
  106. position: absolute;
  107. width: 160rpx;
  108. height: 160rpx;
  109. left: 182rpx;
  110. top: 182rpx;
  111. background: linear-gradient(to left, #7daae9, #ad83f1);
  112. border-radius: 144rpx;
  113. }
  114. .pk-friend-wait .radar-img, .pk-rank-wait .radar-img {
  115. position: absolute;
  116. width: 108rpx;
  117. height: 108rpx;
  118. left: 200rpx;
  119. top: 200rpx;
  120. border: 8rpx solid #fff;
  121. border-radius: 108rpx;
  122. background-color: #fff;
  123. }
  124. .pk-friend-wait .leave {
  125. height: 288rpx;
  126. padding-top: 288rpx;
  127. }
  128. .pk-friend-wait .tip {
  129. display: block;
  130. margin-top: 52rpx;
  131. text-align: center;
  132. font-size: 32rpx;
  133. color: #bfbdff;
  134. }
  135. .pk-friend-wait .footer {
  136. margin: 66rpx;
  137. }
  138. .pk-friend-wait .btn-share {
  139. margin-left: 58rpx;
  140. background: linear-gradient(to left, #625af7, #dd7fff);
  141. }
  142. .pk-rank-wait{
  143. position: relative;
  144. height: 986rpx;
  145. top: 50%;
  146. left: 50%;
  147. transform: translate(-50%, -50%);
  148. }
  149. .pk-rank-wait .bg-content{
  150. position: absolute;
  151. width: 508rpx;
  152. height: 208rpx;
  153. left: 121rpx;
  154. bottom: 100rpx;
  155. }
  156. .pk-rank-wait .content {
  157. display: block;
  158. width: 380rpx;
  159. margin: 38rpx auto 0;
  160. }
  161. .pk-rank-wait .content > text {
  162. display: block;
  163. width: 100%;
  164. height: 108rpx;
  165. line-height: 108rpx;
  166. text-align: center;
  167. font-size: 34rpx;
  168. color: #fff;
  169. border-bottom: 1px dashed rgba(255, 255, 255, 0.3);
  170. overflow: hidden;
  171. text-overflow: ellipsis;
  172. white-space: nowrap;
  173. }
  174. .pk-rank-wait .content > text:first-child {
  175. font-size: 40rpx;
  176. }
  177. .pk-rank-wait .content > view {
  178. width: 100%;
  179. height: 108rpx;
  180. line-height: 108rpx;
  181. text-align: center;
  182. }
  183. .pk-rank-wait .content > view > image {
  184. width: 40rpx;
  185. height: 40rpx;
  186. margin-right: 16rpx;
  187. vertical-align: middle;
  188. }
  189. .pk-rank-wait .content > view > text {
  190. color: #fff;
  191. font-size: 34rpx;
  192. vertical-align: middle;
  193. }
  194. /* pk into style */
  195. .pk-into {
  196. position: relative;
  197. min-height: 928rpx;
  198. top: 50%;
  199. left: 50%;
  200. transform: translate(-50%, -50%);
  201. }
  202. .pk-bg .head {
  203. position: relative;
  204. display: inline-block;
  205. }
  206. .pk-into .top {
  207. position: relative;
  208. margin: 0 60rpx;
  209. transform: translate(-100%, -100%);
  210. }
  211. .pk-into .head-bg {
  212. position: relative;
  213. width: 230rpx;
  214. height: 180rpx;
  215. margin-top: 10rpx;
  216. }
  217. .pk-into .head-main {
  218. position: absolute;
  219. width: 134rpx;
  220. height: 134rpx;
  221. top: 0;
  222. border: 8rpx solid #fff;
  223. border-radius: 134rpx;
  224. background-color: #fff;
  225. }
  226. .pk-into .top .head-main{
  227. left: 40rpx;
  228. }
  229. .pk-into .content {
  230. display: inline-block;
  231. vertical-align: top;
  232. width: 240rpx;
  233. margin: 0 40rpx;
  234. }
  235. .pk-into .content > text {
  236. display: block;
  237. width: 100%;
  238. height: 76rpx;
  239. line-height: 76rpx;
  240. text-align: center;
  241. font-size: 32rpx;
  242. color: #fff;
  243. border-bottom: 1px dashed rgba(255, 255, 255, 0.3);
  244. overflow: hidden;
  245. text-overflow: ellipsis;
  246. white-space: nowrap;
  247. }
  248. .pk-into .content > text:first-child {
  249. font-size: 36rpx;
  250. }
  251. .pk-into .content > view {
  252. width: 100%;
  253. height: 76rpx;
  254. line-height: 76rpx;
  255. text-align: center;
  256. }
  257. .pk-into .content > view > image {
  258. width: 40rpx;
  259. height: 40rpx;
  260. margin-right: 16rpx;
  261. vertical-align: middle;
  262. }
  263. .pk-into .content > view > text {
  264. color: #fff;
  265. font-size: 34rpx;
  266. vertical-align: middle;
  267. }
  268. .pk-into .mid{
  269. position: relative;
  270. margin: 40rpx 121rpx;
  271. }
  272. .pk-into .mid .bg-word {
  273. position: relative;
  274. width: 508rpx;
  275. height: 208rpx;
  276. }
  277. .pk-into .mid .word {
  278. position: absolute;
  279. width: 508rpx;
  280. height: 208rpx;
  281. left: 0;
  282. }
  283. .pk-into .bottom .content{
  284. margin: 0 45rpx 0 116rpx;
  285. }
  286. .pk-into .bottom .content > text{
  287. text-align: left;
  288. }
  289. .pk-into .bottom .content > view {
  290. text-align: left;
  291. }
  292. .pk-into .bottom {
  293. position: relative;
  294. margin: 0 60rpx;
  295. transform: translate(100%, 100%);
  296. }
  297. .pk-into .bottom .head-main {
  298. right: 40rpx;
  299. }
  300. /* pk room style */
  301. .pk-room .head-mid{
  302. position: absolute;
  303. width: 124rpx;
  304. height: 124rpx;
  305. top: 10rpx;
  306. left: 313rpx;
  307. }
  308. .pk-room .head-mid text{
  309. position: absolute;
  310. display: block;
  311. width: 124rpx;
  312. height: 124rpx;
  313. top: 0;
  314. line-height: 124rpx;
  315. font-size: 48rpx;
  316. color: #fff;
  317. text-align: center;
  318. }
  319. .pk-room .head-left, .pk-room .head-right{
  320. position: absolute;
  321. top: 10rpx;
  322. z-index: 1001;
  323. }
  324. .pk-room .head-right{
  325. right: 0;
  326. }
  327. .pk-room .head-left .head-left-bg, .pk-room .head-right .head-left-bg{
  328. position: relative;
  329. width: 208rpx;
  330. height: 144rpx;
  331. border-radius: 0 72rpx 72rpx 0;
  332. background: #6a57ba;
  333. }
  334. .pk-room .head-right .head-left-bg{
  335. border-radius: 72rpx 0 0 72rpx;
  336. }
  337. .pk-room .head-left .head-bg, .pk-room .head-right .head-bg{
  338. position: absolute;
  339. width: 180rpx;
  340. height: 140rpx;
  341. top: 22rpx;
  342. }
  343. .pk-room .head-left .head-bg{
  344. left: 42rpx;
  345. }
  346. .pk-room .head-right .head-bg{
  347. right: 42rpx;
  348. }
  349. .pk-room .head-left .head-main, .pk-room .head-right .head-main{
  350. position: absolute;
  351. width: 108rpx;
  352. height: 108rpx;
  353. top: 10rpx;
  354. border: 8rpx solid #fff;
  355. border-radius: 108rpx;
  356. background-color: #fff;
  357. }
  358. .pk-room .head-left .head-main{
  359. left: 70rpx;
  360. }
  361. .pk-room .head-right .head-main{
  362. right: 70rpx;
  363. }
  364. .pk-room .head-left .name, .pk-room .head-right .name{
  365. position: absolute;
  366. display: block;
  367. width: 180rpx;
  368. height: 36rpx;
  369. top: 176rpx;
  370. text-align: center;
  371. font-size: 26rpx;
  372. color: #bfbdff;
  373. overflow: hidden;
  374. text-overflow: ellipsis;
  375. white-space: nowrap;
  376. }
  377. .pk-room .head-left .name{
  378. left: 43rpx;
  379. }
  380. .pk-room .head-right .name{
  381. right: 43rpx;
  382. }
  383. .pk-room .qa{
  384. position: relative;
  385. margin-top: 240rpx;
  386. }
  387. .pk-room .qa .qa-body .qa-type-bg{
  388. position: relative;
  389. display: block;
  390. width: 388rpx;
  391. height: 116rpx;
  392. margin: 0 auto;
  393. }
  394. .pk-room .qa .qa-body{
  395. position: relative;
  396. height: 308rpx;
  397. line-height: 308rpx;
  398. }
  399. .pk-room .qa .qa-body .qa-type-text{
  400. position: absolute;
  401. display: block;
  402. width: 388rpx;
  403. height: 100rpx;
  404. line-height: 116rpx;
  405. left: 181rpx;
  406. top: 0;
  407. text-align: center;
  408. font-size: 40rpx;
  409. color: #fff;
  410. }
  411. .pk-room .qa .qa-body .qa-q-num{
  412. display: block;
  413. width: 100%;
  414. height: 90rpx;
  415. line-height: 90rpx;
  416. margin: 16rpx 0;
  417. font-size: 64rpx;
  418. color: #fff;
  419. letter-spacing: 1w0rpx;
  420. text-align: center;
  421. }
  422. .pk-room .qa .qa-body .qa-last{
  423. position: absolute;
  424. width: 500rpx;
  425. height: 80rpx;
  426. left: 125rpx;
  427. top: 230rpx;
  428. }
  429. .pk-room .qa .qa-body .qa-q{
  430. position: absolute;
  431. width: 100%;
  432. top: 50%;
  433. display: block;
  434. min-height: 52rpx;
  435. line-height: 52rpx;
  436. padding: 0 60rpx;
  437. font-size: 34rpx;
  438. color: #fff;
  439. text-align: center;
  440. transform: translate(0, -50%);
  441. box-sizing: border-box;
  442. }
  443. .pk-room .qa .qa-content{
  444. height: 532rpx;
  445. }
  446. .pk-room .qa .qa-content > view{
  447. display: inline-block;
  448. height: 100%;
  449. vertical-align: top;
  450. }
  451. .pk-room .qa .qa-content .qa-content-left{
  452. width: 155rpx;
  453. }
  454. .pk-room .qa .qa-content .qa-content-left .grade, .pk-room .qa .qa-content .qa-content-right .grade{
  455. display: block;
  456. opacity: 0.6rpx;
  457. height: 56rpx;
  458. line-height: 56rpx;
  459. margin: 0 12rpx 14rpx 0;
  460. font-size: 40rpx;
  461. text-align: center;
  462. color: #bfbdff;
  463. }
  464. .pk-room .qa .qa-content .qa-content-right .grade{
  465. margin: 0 0 14rpx 12rpx;
  466. }
  467. .pk-room .qa .qa-content .qa-content-left .grade-bar,
  468. .pk-room .qa .qa-content .qa-content-right .grade-bar{
  469. position: relative;
  470. width: 20rpx;
  471. height: 456rpx;
  472. margin: 0 60rpx 0;
  473. border: 4rpx solid #6855c9;
  474. border-radius: 14rpx;
  475. }
  476. .pk-room .qa .qa-content .qa-content-right .grade-bar{
  477. margin: 0 0 0 70rpx;
  478. }
  479. .pk-room .qa .qa-content .qa-content-left .grade-bar-inner,
  480. .pk-room .qa .qa-content .qa-content-right .grade-bar-inner{
  481. position: absolute;
  482. width: 16rpx;
  483. top: 456rpx;
  484. bottom: 0;
  485. left: 2rpx;
  486. border-radius: 14rpx;
  487. background: #bfbdff;
  488. }
  489. .pk-room .qa .qa-content .qa-content-mid{
  490. width: 440rpx;
  491. }
  492. .pk-room .qa .qa-content .qa-content-mid .answer{
  493. width: 440rpx;
  494. height: 108rpx;
  495. opacity: 0;
  496. line-height: 108rpx;
  497. margin: 0 0 32rpx;
  498. background: linear-gradient(to bottom, #f7fcff, #e7f7ff);
  499. border-radius: 54rpx;
  500. }
  501. .pk-room .qa .qa-content .qa-content-mid .answer-show{
  502. opacity: 1;
  503. }
  504. .pk-room .qa .qa-content .qa-content-mid .answer-ed{
  505. background: #4a90e2;
  506. }
  507. .pk-room .qa .qa-content .qa-content-mid .answer-right{
  508. background: #35c77f;
  509. }
  510. .pk-room .qa .qa-content .qa-content-mid .answer-error{
  511. background: #f57581;
  512. }
  513. .pk-room .qa .qa-content .qa-content-mid .answer image{
  514. width: 30rpx;
  515. height: 30rpx;
  516. margin: 0 24rpx;
  517. vertical-align: middle;
  518. }
  519. .pk-room .qa .qa-content .qa-content-mid .answer text{
  520. display: inline-block;
  521. width: 284rpx;
  522. text-align: center;
  523. color: #333333;
  524. font-size: 34rpx;
  525. overflow: hidden;
  526. text-overflow: ellipsis;
  527. white-space: nowrap;
  528. vertical-align: middle;
  529. }
  530. .pk-room .qa .qa-content .qa-content-mid .answer-ed text,
  531. .pk-room .qa .qa-content .qa-content-mid .answer-right text,
  532. .pk-room .qa .qa-content .qa-content-mid .answer-error text{
  533. color: #fff;
  534. }
  535. .pk-room .qa .qa-content .qa-content-right{
  536. width: 155rpx;
  537. }
  538. .pk-room .result .grade{
  539. height: 192rpx;
  540. margin-top: 147rpx;
  541. z-index: 1000;
  542. }
  543. .pk-room .result .grade-left, .pk-room .result .grade-right{
  544. position: absolute;
  545. width: 292rpx;
  546. height: 192rpx;
  547. border-radius: 0 200rpx 200rpx 0;
  548. background: #6a57ba;
  549. }
  550. .pk-room .result .grade-right{
  551. position: absolute;
  552. right: 0;
  553. width: 292rpx;
  554. border-radius: 200rpx 0 0 200rpx;
  555. }
  556. .pk-room .result .grade-win{
  557. width: 460rpx;
  558. }
  559. .pk-room .result .grade-left > text, .pk-room .result .grade-right > text{
  560. position: absolute;
  561. display: block;
  562. height: 80rpx;
  563. line-height: 240rpx;
  564. font-size: 56rpx;
  565. color: #fff;
  566. }
  567. .pk-room .result .grade-left > text text, .pk-room .result .grade-right > text text{
  568. font-size: 32rpx;
  569. }
  570. .pk-room .result .grade-left > text{
  571. left: 60rpx;
  572. }
  573. .pk-room .result .grade-right > text{
  574. right: 60rpx;
  575. }
  576. .pk-room .result .grade-win > text{
  577. font-size: 72rpx;
  578. }
  579. .pk-room .result{
  580. text-align: center;
  581. }
  582. .pk-room .result .publish{
  583. position: relative;
  584. width: 508rpx;
  585. margin: 196rpx auto 56rpx;
  586. }
  587. .pk-room .result .bg-result{
  588. width: 508rpx;
  589. height: 208rpx;
  590. }
  591. .pk-room .result .result-img{
  592. position: absolute;
  593. width: 308rpx;
  594. height: 268rpx;
  595. top: -135rpx;
  596. left: 100rpx;
  597. }
  598. .pk-room .result .brain{
  599. position: absolute;
  600. width: 316rpx;
  601. height: 92rpx;
  602. line-height: 92rpx;
  603. top: 110rpx;
  604. left: 96rpx;
  605. text-align: center;
  606. background-color: #4b3d93;
  607. border-radius: 16rpx;
  608. }
  609. .pk-room .result .brain > image{
  610. width: 52rpx;
  611. height: 52rpx;
  612. margin-right: 14rpx;
  613. vertical-align: middle;
  614. }
  615. .pk-room .result .brain > text{
  616. font-size: 38rpx;
  617. font-weight: bold;
  618. color: #fff;
  619. vertical-align: middle;
  620. }
  621. .pk-room .result .btn-result{
  622. width: 520rpx;
  623. margin: 0 auto;
  624. background: linear-gradient(to left, #625af7, #dd7fff);
  625. }
  626. .pk-room .result .btn-share{
  627. width: 520rpx;
  628. margin: 26rpx auto 20rpx;
  629. }
  630. .pk-room .result .tip{
  631. display: block;
  632. line-height: 36rpx;
  633. font-size: 26rpx;
  634. color: #bfbdff;
  635. }