style.scss 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795
  1. .game-main-wrap{
  2. position: relative;
  3. width: px2rem(1300);
  4. margin: 0 auto;
  5. }
  6. .game-desktop{
  7. height: px2rem(460);
  8. background: url('./img/desk.png') no-repeat;
  9. background-size: 100%;
  10. position: relative;
  11. .game-cell-wrap{
  12. position: absolute;
  13. left: 0;
  14. right: 0;
  15. width: px2rem(1300);
  16. height: px2rem(460);
  17. }
  18. .game-desk-bg{
  19. position: absolute;
  20. left: 0;
  21. right: 0;
  22. width: px2rem(1300);
  23. height: px2rem(460);
  24. z-index: 5;
  25. pointer-events: none;
  26. &.en-lang-bg{
  27. background: url('./img/desk_word_e.png') no-repeat;
  28. background-size: 100%;
  29. }
  30. &.zh-lang-bg{
  31. background: url('./img/desk_word_c.png') no-repeat;
  32. background-size: 100%;
  33. }
  34. &.kr-lang-bg{
  35. background: url('./img/desk_word_k.png') no-repeat;
  36. background-size: 100%;
  37. }
  38. }
  39. }
  40. .game-cell-item {
  41. cursor: pointer;
  42. position: absolute;
  43. height: px2rem(160);
  44. &.checked {
  45. &::before{
  46. content: '';
  47. position: absolute;
  48. z-index: 1;
  49. top: 0;
  50. left: 0;
  51. right: 0;
  52. bottom: 0;
  53. background: url('./img/choose_c.png') center center no-repeat;
  54. background-size: cover;
  55. }
  56. }
  57. &.opened {
  58. &::before{
  59. content: '';
  60. position: absolute;
  61. z-index: 1;
  62. top: 0;
  63. left: 0;
  64. right: 0;
  65. bottom: 0;
  66. background: url('./img/choose_win.png');
  67. background-size: cover;
  68. }
  69. }
  70. }
  71. .game-cell-0{
  72. width: px2rem(140);
  73. right: px2rem(20);
  74. top: px2rem(37);
  75. border-top-right-radius: 4px;
  76. overflow: hidden;
  77. }
  78. .game-cell-1{
  79. width: px2rem(140);
  80. right: px2rem(162);
  81. top: px2rem(37);
  82. }
  83. .game-cell-2{
  84. width: px2rem(140);
  85. right: px2rem(20);
  86. top: px2rem(199);
  87. border-bottom-right-radius: 4px;
  88. overflow: hidden;
  89. }
  90. .game-cell-3{
  91. width: px2rem(140);
  92. right: px2rem(162);
  93. top: px2rem(199);
  94. }
  95. // 总和 114
  96. $space: 114;
  97. @for $i from 4 through 11 {
  98. .game-cell-#{$i} {
  99. height: px2rem(155);
  100. width: px2rem(112);
  101. left: px2rem(78 + $space * ($i - 4));
  102. top: px2rem(42);
  103. }
  104. }
  105. @for $i from 12 through 19 {
  106. .game-cell-#{$i} {
  107. height: px2rem(155);
  108. width: px2rem(112);
  109. left: px2rem(78 + $space * ($i - 12));
  110. top: px2rem(199);
  111. }
  112. }
  113. // 下注
  114. .game-bet{
  115. font-size: 0;
  116. margin: 0 auto;
  117. position: absolute;
  118. left: px2rem(10);
  119. bottom: px2rem(10);
  120. width: px2rem(1280);
  121. .bet-tips{
  122. display: inline-block;
  123. margin-left: px2rem(4);
  124. color: #21083b;
  125. font-size: px2rem(16);
  126. }
  127. .bet-center-box{
  128. display: inline-block;
  129. vertical-align: top;
  130. position: relative;
  131. &::after{
  132. content: '';
  133. position: absolute;
  134. top: px2rem(38);
  135. left: 0;
  136. background: url('./img/line.png');
  137. background-size: 100%;
  138. width: px2rem(258);
  139. height: px2rem(5);
  140. }
  141. }
  142. .bet-input-wrap{
  143. display: inline-block;
  144. text-align: center;
  145. }
  146. .bet-input{
  147. margin-top: px2rem(10);
  148. width: px2rem(178);
  149. height: px2rem(30);
  150. line-height: px2rem(30);
  151. font-size: px2rem(20);
  152. color: #bdb9ce;
  153. border-radius: 4px;
  154. outline: none;
  155. border: none;
  156. padding-left: px2rem(12);
  157. background-color: #514391;
  158. &::-webkit-input-placeholder {
  159. color: #bdb9ce;
  160. }
  161. }
  162. .counter-target-wrap{
  163. position: absolute;
  164. top: 14px;
  165. width: px2rem(540);
  166. left: px2rem(370);
  167. .counter-target{
  168. width: px2rem(50);
  169. height: px2rem(50);
  170. line-height: px2rem(50);
  171. visibility: hidden;
  172. position: absolute;
  173. top: 0;
  174. z-index: 30;
  175. &.counter{
  176. margin-left: 0;
  177. }
  178. &.counter-red{
  179. left: px2rem(28);
  180. }
  181. &.counter-blue{
  182. left: px2rem(118);
  183. }
  184. &.counter-pur{
  185. left: px2rem(208);
  186. }
  187. &.counter-green{
  188. left: px2rem(298);
  189. }
  190. &.counter-yellow{
  191. left: px2rem(388);
  192. }
  193. &.counter-orange{
  194. left: px2rem(478);
  195. }
  196. }
  197. }
  198. .counter-item-wrap{
  199. position: absolute;
  200. z-index: 10;
  201. top: px2rem(10);
  202. width: px2rem(550);
  203. left: px2rem(370);
  204. }
  205. .bet-btn-wrap{
  206. position: absolute;
  207. right: 0;
  208. top: px2rem(22);
  209. .pub-btn{
  210. display: inline-block;
  211. vertical-align: top;
  212. cursor: pointer;
  213. width: px2rem(112);
  214. height: px2rem(51);
  215. text-align: center;
  216. padding-top: px2rem(14);
  217. font-size: px2rem(20);
  218. box-sizing: border-box;
  219. font-weight: bold;
  220. margin-left: px2rem(10);
  221. &.loading{
  222. background: url('./img/but_clear_x.png') center center no-repeat;
  223. background-size: 100%;
  224. color: #646363;
  225. }
  226. &.en-btn{
  227. padding-top: px2rem(4);
  228. font-size: px2rem(18);
  229. }
  230. }
  231. }
  232. .continute-btn{
  233. background: url('./img/but_ten_u.png') no-repeat;
  234. background-size: 100%;
  235. color: #8523b6;
  236. &:hover{
  237. background: url('./img/but_ten_d.png') no-repeat;
  238. background-size: 100%;
  239. }
  240. }
  241. .clear-btn{
  242. background: url('./img/but_clear_u.png') no-repeat;
  243. background-size: 100%;
  244. color: #115983;
  245. &:hover{
  246. background: url('./img/but_clear_d.png') no-repeat;
  247. background-size: 100%;
  248. }
  249. &.disabled{
  250. background: url('./img/but_clear_x.png') no-repeat;
  251. color: #777a7c;
  252. background-size: 100%;
  253. pointer-events: none;
  254. }
  255. }
  256. .confirm-btn{
  257. color: #d64100;
  258. background: url('./img/but_sure_u.png') no-repeat;
  259. background-size: 100%;
  260. &:hover{
  261. background: url('./img/but_sure_d.png') no-repeat;
  262. background-size: 100%;
  263. }
  264. }
  265. .ten-beting-btn{
  266. background: url('./img/but_ten_x.png') no-repeat;
  267. background-size: 100%;
  268. color: #ffffff;
  269. span{
  270. display: inline-block;
  271. vertical-align: middle;
  272. margin-left: px2rem(4);
  273. font-size: px2rem(14);
  274. }
  275. }
  276. .counter-change{
  277. display: inline-block;
  278. width: px2rem(90);
  279. // padding-right: 28px;
  280. margin-top: px2rem(12);
  281. margin-left: px2rem(10);
  282. .balance-item{
  283. width: px2rem(77);
  284. height: px2rem(30);
  285. display: flex;
  286. justify-content: center;
  287. align-items: center;
  288. background-color: #5550a1;
  289. font-size: px2rem(16);
  290. color: #fff;
  291. margin-bottom: px2rem(8);
  292. border-radius: px2rem(8);
  293. cursor: pointer;
  294. }
  295. }
  296. .counter-change-bg{
  297. background-size: 100%;
  298. width: px2rem(982);
  299. height: px2rem(92);
  300. }
  301. .animate-counter-wrap{
  302. position: absolute;
  303. left: px2rem(40);
  304. top: px2rem(40);
  305. }
  306. .animate-counter{
  307. position: absolute;
  308. z-index: 30;
  309. top: 0;
  310. left: px2rem(40);
  311. width: px2rem(50);
  312. height: px2rem(50);
  313. line-height: px2rem(50);
  314. text-align: center;
  315. font-size: px2rem(16);
  316. font-weight: bold;
  317. visibility: hidden;
  318. font-style: normal;
  319. }
  320. }
  321. .gt-tips{
  322. margin: px2rem(4) auto;
  323. font-size: px2rem(16);
  324. color: #21083b;
  325. display: flex;
  326. align-items: center;
  327. position: relative;
  328. padding-left: px2rem(4);
  329. }
  330. .gt-help-icon{
  331. display: inline-block;
  332. vertical-align: middle;
  333. background: url('../../assets/icon_question2.png') no-repeat;
  334. margin-left: px2rem(10);
  335. background-size: 100%;
  336. width: px2rem(30);
  337. height: px2rem(30);
  338. cursor: pointer;
  339. }
  340. .gt-times-icon{
  341. display: inline-block;
  342. vertical-align: middle;
  343. background: url('./img/bei.png') no-repeat;
  344. margin-left: px2rem(6);
  345. background-size: 100%;
  346. font-size: px2rem(16);
  347. width: px2rem(32);
  348. height: px2rem(32);
  349. line-height: px2rem(32);
  350. text-align: center;
  351. font-style: normal;
  352. color: #ffffff;
  353. }
  354. .counter{
  355. width: px2rem(70);
  356. height: px2rem(70);
  357. line-height: px2rem(70);
  358. display: inline-block;
  359. cursor: pointer;
  360. text-align: center;
  361. position: relative;
  362. top: 0;
  363. transition: top .3s ease-in-out;
  364. font-size: px2rem(18);
  365. font-weight: bold;
  366. margin-left: px2rem(20);
  367. user-select: none;
  368. &:first-child{
  369. margin-left: 0;
  370. }
  371. &.current{
  372. &:after{
  373. content: '';
  374. position: absolute;
  375. top: -px2rem(12);
  376. left: -px2rem(12);
  377. right: -px2rem(12);
  378. bottom: -px2rem(12);
  379. background: url('./img/counter-border.png') no-repeat;
  380. background-size: 100%;
  381. }
  382. top: -px2rem(20);
  383. }
  384. }
  385. .counter-red{
  386. background: url('./img/counter-red.png') no-repeat;
  387. background-size: 100%;
  388. color: #cd0400;
  389. }
  390. .counter-blue{
  391. background: url('./img/counter-blue.png') no-repeat;
  392. background-size: 100%;
  393. color: #126ae4;
  394. }
  395. .counter-pur{
  396. background: url('./img/counter-pur.png') no-repeat;
  397. background-size: 100%;
  398. color: #9b40d8;
  399. }
  400. .counter-green{
  401. background: url('./img/counter-green.png') no-repeat;
  402. background-size: 100%;
  403. color: #23b14d;
  404. }
  405. .counter-yellow{
  406. background: url('./img/counter-yellow.png') no-repeat;
  407. background-size: 100%;
  408. color: #c4b600;
  409. }
  410. .counter-orange{
  411. background: url('./img/counter-orange.png') no-repeat;
  412. background-size: 100%;
  413. color: #f28900;
  414. }
  415. .cell-counter{
  416. position: absolute;
  417. z-index: 20;
  418. width: px2rem(50);
  419. height: px2rem(50);
  420. left: 50%;
  421. top: 50%;
  422. margin-left: -px2rem(25);
  423. margin-top: -px2rem(25);
  424. line-height: px2rem(50);
  425. font-size: px2rem(16);
  426. text-align: center;
  427. user-select: none;
  428. }
  429. .bet-sum{
  430. float: right;
  431. margin-top: px2rem(10);
  432. width: px2rem(320);
  433. font-size: px2rem(18);
  434. color: #ffffff;
  435. line-height: px2rem(46);
  436. height: px2rem(46);
  437. border-radius: px2rem(23);
  438. background-color: rgba($color: #362353, $alpha: .8);
  439. text-align: center;
  440. i{
  441. margin-left: px2rem(10);
  442. }
  443. }
  444. .bet-limit{
  445. display: inline-block;
  446. color: #21083b;
  447. font-size: px2rem(16);
  448. width: px2rem(94);
  449. height: px2rem(69);
  450. text-align: center;
  451. padding-top: px2rem(14);
  452. margin-left: px2rem(16);
  453. margin-top: px2rem(12);
  454. box-sizing: border-box;
  455. position: relative;
  456. &::after{
  457. content: '';
  458. position: absolute;
  459. left: 0;
  460. top: 0;
  461. background: url('../game/img/line2.png') no-repeat;
  462. background-size: 100%;
  463. width: px2rem(2);
  464. height: px2rem(69);
  465. }
  466. p{
  467. margin-bottom: px2rem(6);
  468. }
  469. }
  470. .game-result-show{
  471. position: absolute;
  472. width: px2rem(600);
  473. height: px2rem(120);
  474. right: 0;
  475. top: -px2rem(124);
  476. z-index: 30;
  477. background-color: rgba($color: #fff, $alpha: .5);
  478. border-radius: 10px;
  479. text-align: center;
  480. font-size: px2rem(30);
  481. color: #fff;
  482. .game-reuslt-content{
  483. position: absolute;
  484. top: px2rem(8);
  485. left: px2rem(8);
  486. right: px2rem(8);
  487. bottom: px2rem(8);
  488. line-height: px2rem(104);
  489. background-color: #583e93;
  490. border-radius: 10px;
  491. }
  492. .bet-amount{
  493. color: #42ed75;
  494. }
  495. .win-amount{
  496. color: #ffe954;
  497. }
  498. .closeResultModal{
  499. position: absolute;
  500. font-size: px2rem(20);
  501. bottom: px2rem(6);
  502. right: px2rem(6);
  503. line-height: 1.4;
  504. cursor: pointer;
  505. }
  506. }
  507. @media #{$phone} {
  508. .game-desktop{
  509. background: url('./img/h5/desktop.png') no-repeat;
  510. background-size: 100%;
  511. height: px2rem(837);
  512. }
  513. .game-main-wrap{
  514. width: px2rem(706);
  515. .game-bet{
  516. width: 100%;
  517. left: 0;
  518. padding-top: px2rem(98);
  519. bottom: px2rem(62);
  520. .bet-btn-wrap{
  521. top: auto;
  522. bottom: 0;
  523. right: px2rem(14);
  524. }
  525. .bet-input{
  526. width: px2rem(220);
  527. height: px2rem(58);
  528. line-height: px2rem(58);
  529. margin-left: px2rem(16);
  530. font-size: px2rem(24);
  531. }
  532. .bet-tips{
  533. display: none;
  534. }
  535. .animate-counter-wrap {
  536. bottom: px2rem(50);
  537. top: auto;
  538. }
  539. .bet-btn-wrap{
  540. .continute-btn{
  541. background: url('./img/h5/3@2x.png') no-repeat;
  542. background-size: 100%;
  543. &:hover{
  544. background: url('./img/h5/3_b@2x.png') no-repeat;
  545. background-size: 100%;
  546. }
  547. }
  548. .ten-beting-btn{
  549. background: url('./img/h5/3_a@2x.png') no-repeat;
  550. background-size: 100%;
  551. font-size: px2rem(12);
  552. span{
  553. vertical-align: top;
  554. }
  555. }
  556. .clear-btn{
  557. background: url('./img/h5/1@2x.png') no-repeat;
  558. background-size: 100%;
  559. &:hover{
  560. background: url('./img/h5/1_a@2x.png') no-repeat;
  561. background-size: 100%;
  562. }
  563. &.disabled{
  564. background: url('./img/h5/4@2x.png') no-repeat;
  565. color: #777a7c;
  566. background-size: 100%;
  567. pointer-events: none;
  568. }
  569. }
  570. .confirm-btn{
  571. background: url('./img/h5/2@2x.png') no-repeat;
  572. background-size: 100%;
  573. &:hover{
  574. background: url('./img/h5/2_a@2x.png') no-repeat;
  575. background-size: 100%;
  576. }
  577. }
  578. .pub-btn{
  579. width: px2rem(132);
  580. height: px2rem(64);
  581. padding-top: 0;
  582. line-height: px2rem(64);
  583. &.loading{
  584. background: url('./img/h5/4@2x.png') center center no-repeat;
  585. background-size: 100%;
  586. color: #646363;
  587. }
  588. &.en-btn{
  589. padding-top: px2rem(10);
  590. line-height: 1;
  591. }
  592. }
  593. }
  594. }
  595. .bet-center-box{
  596. &::after{
  597. display: none;
  598. }
  599. .gt-tips{
  600. display: none;
  601. }
  602. }
  603. .bet-limit{
  604. display: none;
  605. }
  606. .game-cell-wrap{
  607. width: 100%;
  608. }
  609. .game-desk-bg{
  610. width: 100%;
  611. }
  612. .counter-item-wrap{
  613. left: 0;
  614. width: px2rem(700);
  615. }
  616. .counter-target-wrap{
  617. left: 0;
  618. width: px2rem(700);
  619. .counter-target{
  620. width: px2rem(50);
  621. height: px2rem(50);
  622. line-height: px2rem(50);
  623. visibility: hidden;
  624. position: absolute;
  625. top: 0;
  626. z-index: 30;
  627. &.counter{
  628. margin-left: 0;
  629. }
  630. &.counter-red{
  631. left: px2rem(28);
  632. }
  633. &.counter-blue{
  634. left: px2rem(142);
  635. }
  636. &.counter-pur{
  637. left: px2rem(258);
  638. }
  639. &.counter-green{
  640. left: px2rem(378);
  641. }
  642. &.counter-yellow{
  643. left: px2rem(488);
  644. }
  645. &.counter-orange{
  646. left: px2rem(608);
  647. }
  648. }
  649. }
  650. .counter{
  651. width: px2rem(76);
  652. height: px2rem(76);
  653. line-height: px2rem(76);
  654. margin: 0 px2rem(20);
  655. font-size: px2rem(28);
  656. }
  657. .game-cell-wrap{
  658. height: px2rem(597);
  659. }
  660. .game-desk-bg{
  661. height: px2rem(597);
  662. &.zh-lang-bg{
  663. background: url('./img/h5/desk_c.png') no-repeat;
  664. background-size: 100%;
  665. }
  666. &.en-lang-bg{
  667. background: url('./img/h5/desk_e.png') no-repeat;
  668. background-size: 100%;
  669. }
  670. &.kr-lang-bg{
  671. background: url('./img/h5/desk_k.png') no-repeat;
  672. background-size: 100%;
  673. }
  674. }
  675. }
  676. .bet-sum{
  677. display: none;
  678. }
  679. // 总和 114
  680. $mspace: 162;
  681. @for $i from 0 through 3 {
  682. .game-cell-#{$i} {
  683. height: px2rem(170);
  684. width: px2rem(160);
  685. left: auto;
  686. top: auto;
  687. right: px2rem(30 + $mspace * $i);
  688. bottom: px2rem(16);
  689. }
  690. }
  691. $kspace: 108;
  692. @for $i from 4 through 9 {
  693. .game-cell-#{$i} {
  694. height: px2rem(106);
  695. width: px2rem(106);
  696. left: px2rem(30 + $kspace * ($i - 4));
  697. top: px2rem(78);
  698. }
  699. }
  700. @for $i from 10 through 11 {
  701. .game-cell-#{$i} {
  702. height: px2rem(106);
  703. width: px2rem(106);
  704. left: px2rem(30 + $kspace * ($i - 10));
  705. top: px2rem(186);
  706. }
  707. }
  708. @for $i from 12 through 13 {
  709. .game-cell-#{$i} {
  710. height: px2rem(106);
  711. width: px2rem(106);
  712. right: px2rem(30 + $kspace * (13 - $i));
  713. top: px2rem(186);
  714. left: auto;
  715. }
  716. }
  717. @for $i from 14 through 19 {
  718. .game-cell-#{$i} {
  719. height: px2rem(106);
  720. width: px2rem(106);
  721. left: px2rem(30 + $kspace * ($i - 14));
  722. top: px2rem(296);
  723. }
  724. }
  725. }
  726. .m-bet-sum{
  727. display: none;
  728. }
  729. .moblie-rule-cell{
  730. display: none;
  731. position: absolute;
  732. width: px2rem(214);
  733. height: px2rem(104);
  734. left: px2rem(246);
  735. top: px2rem(186);
  736. .game-question-icon{
  737. position: absolute;
  738. right: px2rem(20);
  739. top: px2rem(30);
  740. }
  741. }
  742. @media #{$phone}{
  743. .moblie-rule-cell{
  744. display: block;
  745. }
  746. .m-bet-sum{
  747. display: block;
  748. position: absolute;
  749. left: 0;
  750. right: 0;
  751. bottom: px2rem(10);
  752. height: px2rem(40);
  753. line-height: px2rem(40);
  754. padding: 0 px2rem(16);
  755. color: #21083b;
  756. font-size: px2rem(24);
  757. .gt-times-icon{
  758. width: px2rem(36);
  759. height: px2rem(36);
  760. line-height: px2rem(36);
  761. vertical-align: top;
  762. }
  763. .gt-help-icon{
  764. width: px2rem(36);
  765. height: px2rem(36);
  766. vertical-align: top;
  767. }
  768. .right{
  769. float: right;
  770. i{
  771. margin: 0 px2rem(8);
  772. }
  773. .game-eos-icon{
  774. transform: scale(1.3);
  775. }
  776. .game-gt-icon{
  777. transform: scale(1.3);
  778. }
  779. }
  780. }
  781. }