taptapstar.scss 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403
  1. @import "../../sass/base/mixins";
  2. .page-taptapstar{
  3. position: fixed;
  4. top: 0;
  5. right: 0;
  6. bottom: 0;
  7. left: 0;
  8. .bg-mask{
  9. position: fixed;
  10. width: 100%;
  11. height: 100%;
  12. top: 0;
  13. left: 0;
  14. background: rgba(#000, 0.6);
  15. }
  16. .box-shop-wrap{
  17. position: absolute;
  18. z-index: 2;
  19. top: px2rem(150);
  20. left: px2rem(24);
  21. right: px2rem(24);
  22. bottom: px2rem(45);
  23. border-radius: 6px;
  24. background: #f9e3bd;
  25. border-radius: px2rem(15);
  26. &:before{
  27. content: "";
  28. position: absolute;
  29. top: px2rem(-120);
  30. left: 50%;
  31. z-index: 2;
  32. margin-left: px2rem(-368);
  33. width: px2rem(736);
  34. height: px2rem(198);
  35. background: url(../../img/taptapstar/shop_mask.png) 0 0 / 100% no-repeat;
  36. }
  37. }
  38. .box-shop{
  39. position: absolute;
  40. top: px2rem(15);
  41. right: px2rem(15);
  42. bottom: px2rem(15);
  43. left: px2rem(15);
  44. border-radius: 6px;
  45. background: #fff6ed;
  46. .box-hd{
  47. ul{
  48. display: flex;
  49. padding: px2rem(60) 0 0 px2rem(30);
  50. }
  51. li{
  52. width: px2rem(150);
  53. height: px2rem(96);
  54. margin-right: px2rem(10);
  55. text-align: center;
  56. font-size: px2rem(30);
  57. font-weight: 700;
  58. color: #b6896b;
  59. line-height: px2rem(90);
  60. background: url(../../img/taptapstar/bg_tab.png) 0 px2rem(6) / 100% no-repeat;
  61. &.active{
  62. line-height: px2rem(84);
  63. color: #fff3ce;
  64. text-shadow: 0 0 2px #ffae00;
  65. background: url(../../img/taptapstar/bg_tab_active.png) 0 0 / 100% no-repeat;
  66. }
  67. }
  68. }
  69. .box-bd{
  70. position: absolute;
  71. top: px2rem(170);
  72. bottom: 0;
  73. width: 100%;
  74. overflow: auto;
  75. .tab-panel{
  76. display: none;
  77. &.active{
  78. display: block;
  79. }
  80. }
  81. }
  82. }
  83. .list-recommend{
  84. width: px2rem(630);
  85. margin: 0 auto;
  86. }
  87. .recommend-item{
  88. display: flex;
  89. align-items: center;
  90. justify-content: space-between;
  91. height: px2rem(160);
  92. margin-bottom: px2rem(10);
  93. padding: 0 px2rem(18) 0 px2rem(21);
  94. background: url(../../img/taptapstar/bg_item_purple.png) 0 0 / 100% no-repeat;
  95. &.bg0,&.bg1{
  96. background: url(../../img/taptapstar/bg_item_yellow.png) 0 0 / 100% no-repeat;
  97. }
  98. &.bg2{
  99. background: url(../../img/taptapstar/bg_item_green.png) 0 0 / 100% no-repeat;
  100. }
  101. &.bg3{
  102. background: url(../../img/taptapstar/bg_item_blue.png) 0 0 / 100% no-repeat;
  103. }
  104. &.bg4{
  105. background: url(../../img/taptapstar/bg_item_purple.png) 0 0 / 100% no-repeat;
  106. }
  107. .item-fl{
  108. display: flex;
  109. font-weight: 700;
  110. flex: 1;
  111. align-items: center;
  112. }
  113. .item-pic{
  114. width: px2rem(120);
  115. height: px2rem(120);
  116. margin-right: px2rem(15);
  117. }
  118. .item-cont{
  119. font-size: px2rem(18);
  120. color: #2e2e2e;
  121. line-height: px2rem(30);
  122. flex: 1;
  123. }
  124. h3{
  125. font-size: px2rem(21);
  126. margin: px2rem(12) 0 ;
  127. color: #FFFFFF;
  128. text-shadow: 0 2px px2rem(4) #612716;
  129. }
  130. .item-btn{
  131. display: flex;
  132. justify-content: center;
  133. align-items: center;
  134. width: px2rem(170);
  135. height: px2rem(66);
  136. line-height: px2rem(27);
  137. font-size: px2rem(21);
  138. font-weight: bold;
  139. color: #FFFFFF;
  140. text-align: center;
  141. background: url(../../img/taptapstar/btn_buy.png) 0 0 / 100% no-repeat;
  142. &.ext-buy{
  143. font-size: px2rem(30);
  144. }
  145. &:hover{
  146. opacity: 0.8;
  147. }
  148. }
  149. }
  150. .list-gold{
  151. display: flex;
  152. text-align: center;
  153. font-weight: 700;
  154. margin-left: px2rem(60);
  155. flex-wrap: wrap;
  156. .gold-item{
  157. position: relative;
  158. width: px2rem(280);
  159. height: px2rem(306);
  160. margin: 0 px2rem(15) px2rem(21) 0;
  161. background: url(../../img/taptapstar/bg_gold.png) 0 0 / auto 100% no-repeat;
  162. }
  163. h3{
  164. font-size: px2rem(21);
  165. color: #a1201b;
  166. }
  167. p{
  168. font-size: px2rem(18);
  169. color: #4a190a;
  170. width: 70%;
  171. margin: px2rem(-12) auto px2rem(6);
  172. line-height: px2rem(24);
  173. }
  174. .item-pic{
  175. width: 80%;
  176. margin: px2rem(12) auto 0 auto;
  177. }
  178. button{
  179. width: px2rem(170);
  180. height: px2rem(66);
  181. font-size: px2rem(30);
  182. color: #FFFFFF;
  183. -webkit-appearance: none;
  184. background: url(../../img/taptapstar/btn_buy.png) 0 0 / 100% 100% no-repeat;
  185. &:hover{
  186. opacity: 0.8;
  187. }
  188. }
  189. .icon-double{
  190. position: absolute;
  191. top: px2rem(-9);
  192. left: px2rem(-9);
  193. width: px2rem(154);
  194. height: px2rem(145);
  195. background: url(../../img/taptapstar/icon_double.png) 0 0 / 100% 100% no-repeat;
  196. }
  197. }
  198. .popup{
  199. position: absolute;
  200. top: 0;
  201. left: 0;
  202. z-index: 10;
  203. width: 100%;
  204. height: 100%;
  205. display: none;
  206. &.active{
  207. display: block;
  208. }
  209. .box-pop-wrap{
  210. position: absolute;
  211. top: 50%;
  212. left: 50%;
  213. transform: translate(-50%,-50%);
  214. z-index: 2;
  215. width: px2rem(600);
  216. height: px2rem(930);
  217. background: #f9e3bd;
  218. border-radius: px2rem(15);
  219. }
  220. .box-pop{
  221. position: absolute;
  222. top: px2rem(15);
  223. right: px2rem(15);
  224. bottom: px2rem(15);
  225. left: px2rem(15);
  226. background: #fff6ed;
  227. text-align: center;
  228. border-radius: px2rem(9);
  229. font-weight: 700;
  230. box-shadow: 0 0 px2rem(15) 1px #d5d5d5;
  231. }
  232. .box-pop_title{
  233. color: #fff;
  234. text-shadow: 0 0 4px #612716;
  235. height: px2rem(90);
  236. line-height: px2rem(90);
  237. margin: px2rem(36) 0;
  238. font-size: px2rem(36);
  239. background: url(../../img/taptapstar/popup_bg_title.png) center 0 / auto 100% no-repeat;
  240. img{
  241. height: px2rem(51);
  242. vertical-align: middle;
  243. }
  244. }
  245. .box-pop_close{
  246. position: absolute;
  247. top: px2rem(-6);
  248. right: px2rem(-6);
  249. width: px2rem(66);
  250. height: px2rem(71);
  251. background: url(../../img/taptapstar/icon-close.png) center 0 / auto 100% no-repeat;
  252. &:hover{
  253. opacity: 0.8;
  254. }
  255. }
  256. .btn-buy{
  257. -webkit-appearance: none;
  258. width: px2rem(420);
  259. height: px2rem(90);
  260. color: #FFFFFF;
  261. font-size: px2rem(30);
  262. background: url(../../img/taptapstar/btn_buy_xl.png) 0 0 / auto 100% no-repeat;
  263. }
  264. }
  265. .popup-book{
  266. .book-pic{
  267. width: px2rem(490);
  268. }
  269. .book-desc{
  270. font-size: px2rem(21);
  271. color: rgb(84,9,4);
  272. line-height: px2rem(30);
  273. margin: px2rem(18) 0 px2rem(21);
  274. }
  275. .list-book{
  276. display: flex;
  277. margin: 0 0 px2rem(30) px2rem(30);
  278. }
  279. .book-item{
  280. position: relative;
  281. width: px2rem(160);
  282. height: px2rem(185);
  283. color: rgb(84,9,4);
  284. margin-right: px2rem(15);
  285. background: url(../../img/taptapstar/popup_cont.png) 0 0 / auto 100% no-repeat;
  286. &:hover{
  287. opacity: 0.8;
  288. }
  289. &.ext-recommend{
  290. &:before{
  291. content: "";
  292. position: absolute;
  293. top: px2rem(-6);
  294. left: px2rem(-6);
  295. width: px2rem(94);
  296. height: px2rem(89);
  297. background: url(../../img/taptapstar/icon_recommend.png) 0 0 / auto 100% no-repeat;
  298. }
  299. }
  300. h3{
  301. font-size: px2rem(21);
  302. margin-top: px2rem(24);
  303. }
  304. p{
  305. position: absolute;
  306. width: 100%;
  307. bottom: px2rem(18);
  308. }
  309. }
  310. .btn-close{
  311. width: px2rem(420);
  312. height: px2rem(90);
  313. background: url(../../img/taptapstar/btn-close.png) 0 0 / 100% 100% no-repeat;
  314. &:hover{
  315. opacity: 0.8;
  316. }
  317. }
  318. }
  319. .popup-first{
  320. .box-pop-wrap{
  321. width: px2rem(700);
  322. height: px2rem(1020);
  323. }
  324. h2{
  325. margin: px2rem(51) 0;
  326. height: px2rem(45);
  327. background: url(../../img/taptapstar/first_diamond_title.png) center 0 / auto 100% no-repeat;
  328. }
  329. p{
  330. font-size: px2rem(24);
  331. color: rgb(97, 39, 22);
  332. margin: px2rem(21) 0;
  333. span{
  334. color: rgb(255, 54, 0);
  335. }
  336. }
  337. .list-first{
  338. display: flex;
  339. flex-wrap: wrap;
  340. margin-left: px2rem(50);
  341. }
  342. .first-item{
  343. position: relative;
  344. width: px2rem(280);
  345. height: px2rem(306);
  346. margin: 0 px2rem(15) px2rem(21) 0;
  347. background: url(../../img/taptapstar/bg_gold.png) center 0 / auto 100% no-repeat;
  348. &.active{
  349. &:before{
  350. content: "";
  351. position: absolute;
  352. width: px2rem(264);
  353. height: px2rem(289);
  354. top: 0;
  355. left: 0;
  356. border-radius: px2rem(9);
  357. border: px2rem(7) solid #ff3600;
  358. }
  359. }
  360. img{
  361. margin: 0 auto;
  362. display: block;
  363. width: 86%;
  364. }
  365. }
  366. }
  367. .popup-gift{
  368. .box-pop-wrap{
  369. height: px2rem(900);
  370. }
  371. .star-wrap{
  372. position: relative;
  373. margin: px2rem(66) auto px2rem(57) px2rem(102);
  374. width: px2rem(386);
  375. height: px2rem(302);
  376. background: url(../../img/taptapstar/bg-star.png) 0 0 / auto 100% no-repeat;
  377. }
  378. p{
  379. width: 50%;
  380. font-size: px2rem(21);
  381. color: rgb(84,9,4);
  382. line-height: px2rem(27);
  383. margin: 0 auto px2rem(39) auto;
  384. }
  385. img{
  386. position: absolute;
  387. bottom: 0;
  388. left: 20%;
  389. width: 60%;
  390. }
  391. }
  392. @for $i from 1 through 2{
  393. .recommend-title#{$i}{
  394. background: url(../../img/taptapstar/recommend_title#{$i}.png) 0 0 / auto 100% no-repeat;
  395. }
  396. }
  397. @for $i from 1 through 4{
  398. .gift-title#{$i}{
  399. background: url(../../img/taptapstar/gift-title#{$i}.png) 0 0 / auto 100% no-repeat;
  400. }
  401. }
  402. }