globals.scss 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478
  1. @tailwind base;
  2. @tailwind components;
  3. @tailwind utilities;
  4. @import "../styles/iconfont/iconfont.css";
  5. @import "../styles/iconfontPro/iconfont.css";
  6. /* swiper */
  7. @import "swiper/css";
  8. @import "swiper/css/autoplay";
  9. @import "swiper/css/pagination";
  10. @import "swiper/css/virtual";
  11. :root {
  12. --mobile-header-height: 0.48rem;
  13. --swiper-pagination-color: #fff;
  14. --swiper-pagination-bullet-active-bg: #fff;
  15. --swiper-pagination-bullet-inactive-color: hsla(0, 0%, 100%, 0.8);
  16. //--primary-color: #ff6a01;
  17. --bg-color: #fefdee;
  18. --block-color: #1e252b;
  19. --block-foreground-color: #e2e9ef;
  20. --block-text-color: #a9b2bb;
  21. --block-text-desc-color: #5d7284;
  22. --primary-color: #11de68;
  23. --text-color: #fff;
  24. --tips-color: #dba40b;
  25. --tips-foreground-color: #1f2830;
  26. --adm-color-fill-content: #fefdee !important;
  27. --primary1: #fefdee;
  28. --primary2: #fde997;
  29. --primary3: #f9d22f;
  30. --primary4: #f5b800;
  31. --primary5: #6c6c6c;
  32. --primary6: #272932;
  33. --primary7: #3dfb9f;
  34. --primary8: #2ca446;
  35. --primary9: #fd0;
  36. --primary10: #134b1a;
  37. --primary11: #f78725;
  38. --primary12: #8ff99d;
  39. --primary13: #fff;
  40. --primary20: #ff5a00;
  41. --primary21: #24ee89;
  42. --primary22: #1a783596;
  43. --primary23: #1a7835;
  44. --primary24: #162c21;
  45. --primary-button: #0d910d;
  46. --textColor1: #272932;
  47. --textColor2: #6c6c6c;
  48. --textColor3: #fff;
  49. --textColor4: #ff383b;
  50. --textColor5: #0d910d;
  51. --textColor6: #ff5a00;
  52. --textColor7: #24ee89;
  53. --textColor8: #fd0;
  54. --textColor9: #dec38f;
  55. --textWhite: #fff;
  56. --main-background: #fde997;
  57. --gradient-left1: #fde997;
  58. --gradient-right1: #f1ca1b;
  59. --gradient-left2: #8d5314;
  60. --gradient-right2: #a75f1c;
  61. --gradient-left3: #fff;
  62. --gradient-right3: #fce896;
  63. --gradient-left4: #fde997;
  64. --gradient-right4: #f8c92d;
  65. --gradient-left5: #fff;
  66. --gradient-right5: #56c3fb;
  67. --gradient-left6: #63cd7b;
  68. --gradient-right6: #2ca446;
  69. --round-background: #a75f1c;
  70. --el-mask-color: #e3f7e3c4;
  71. --el-fill-color-light: #134b1a;
  72. --el-fill-color: #ff5a00;
  73. --el-border-color: "#ffffff";
  74. --mian-icon-color: #ff5a00;
  75. --borderRadius: 0.1rem;
  76. }
  77. .home-banner {
  78. --swiper-pagination-bullet-width: 0.23rem;
  79. --swiper-pagination-bullet-height: 0.05rem;
  80. --swiper-pagination-bullet-border-radius: 0.03rem;
  81. .swiper-pagination {
  82. position: initial;
  83. display: flex;
  84. align-items: center;
  85. justify-content: center;
  86. height: 10px;
  87. .swiper-pagination-bullet {
  88. background: var(--main-background) !important;
  89. width: 0.06rem;
  90. opacity: 1 !important;
  91. &.swiper-pagination-bullet-active {
  92. width: 0.18rem;
  93. background: var(--textColor4) !important;
  94. }
  95. }
  96. }
  97. }
  98. .promotion-swiper {
  99. --swiper-pagination-bullet-width: 0.0833rem;
  100. --swiper-pagination-bullet-height: 0.0833rem;
  101. //--swiper-pagination-bottom: 0;
  102. }
  103. .sport-banner {
  104. --swiper-wrapper-transition-timing-function: linear;
  105. }
  106. /// antd-mobile
  107. :root:root {
  108. --adm-color-background: transparent;
  109. //--adm-color-text: #fff;
  110. //--bg-color: #000000; // todo
  111. --adm-button-text-color: #fff;
  112. //--adm-color-primary: #fff;
  113. }
  114. * {
  115. box-sizing: border-box;
  116. }
  117. ::-webkit-scrollbar {
  118. width: 0;
  119. }
  120. @font-face {
  121. font-family: myFont;
  122. src:
  123. url("/font/font.otf"),
  124. url("/font/font.woff2") format("woff2");
  125. }
  126. html,
  127. body {
  128. height: 100%;
  129. position: relative;
  130. font-family: myFont !important;
  131. // font-family:
  132. // helvetica neue,
  133. // Helvetica,
  134. // apple sd gothic neo,
  135. // malgun gothic,
  136. // Arial,
  137. // sans-serif;
  138. box-sizing: border-box;
  139. }
  140. html {
  141. font-size: 144px;
  142. }
  143. body {
  144. position: relative;
  145. background: #f8f8f8;
  146. }
  147. #app {
  148. width: 100%;
  149. max-width: 4.02rem;
  150. margin: 0 auto;
  151. font-size: 0.14rem;
  152. background-color: var(--bg-color);
  153. position: relative;
  154. height: 100%;
  155. color: var(--textColor1);
  156. transform: translate(0, 0);
  157. overflow: hidden;
  158. }
  159. // dvh解决ios高度包含底部ui栏问题
  160. .main-footer-header {
  161. height: calc(calc(100% - $-header-height) - $-footer-height);
  162. overflow: scroll;
  163. }
  164. .main-footer {
  165. height: 100%; // calc(100% - $-footer-height);
  166. // overflow-y: scroll;
  167. display: flex;
  168. flex-direction: column;
  169. }
  170. .main-header {
  171. flex: 1;
  172. overflow-y: scroll;
  173. overflow-x: hidden;
  174. position: relative;
  175. &.hasFlag {
  176. &.stickyFlag {
  177. &::before {
  178. position: fixed;
  179. top: auto;
  180. }
  181. }
  182. &::before {
  183. content: "";
  184. position: absolute;
  185. left: 0;
  186. top: 0;
  187. width: 0.4rem;
  188. height: 0.5rem;
  189. background-image: url("/left_flag.webp");
  190. background-position: left top;
  191. background-size: 100% 100%;
  192. z-index: 3;
  193. }
  194. }
  195. }
  196. input {
  197. line-height: normal;
  198. }
  199. /* ant-design-ui */
  200. .adm-toast-mask .adm-toast-main-icon .adm-toast-icon svg {
  201. margin: 0 auto;
  202. }
  203. .adm-input input,
  204. .adm-text-area textarea {
  205. // color: #fff;
  206. }
  207. .adm-toast-main {
  208. word-break: keep-all !important;
  209. text-align: center !important;
  210. }
  211. .home-search {
  212. .adm-search-bar-input-box {
  213. border: none !important;
  214. }
  215. .adm-search-bar-active {
  216. border: 0.0069rem solid green;
  217. }
  218. }
  219. .layout-tabs {
  220. .adm-tabs-tab-wrapper {
  221. padding: 0 0.05rem;
  222. }
  223. .adm-tabs-header {
  224. border: none;
  225. }
  226. }
  227. .containerMask {
  228. &::before {
  229. content: "";
  230. position: absolute;
  231. top: 0;
  232. left: 0;
  233. width: 100%;
  234. height: 100%;
  235. z-index: 11;
  236. background: rgba(0, 0, 0, 0.5);
  237. }
  238. }
  239. input[type="number"]::-webkit-inner-spin-button,
  240. input[type="number"]::-webkit-outer-spin-button {
  241. -webkit-appearance: none;
  242. margin: 0;
  243. }
  244. input[type="number"] {
  245. -moz-appearance: textfield;
  246. }
  247. // 表单
  248. .custom-form {
  249. padding: 0 0.18rem;
  250. .adm-list-item-content {
  251. border-radius: 0.06rem;
  252. background-color: #191f25;
  253. margin-bottom: 0.1rem;
  254. padding: 0 0.1rem;
  255. }
  256. .adm-list-item {
  257. padding-left: 0;
  258. }
  259. .adm-form-item-child-inner {
  260. line-height: 1;
  261. }
  262. }
  263. @media (min-width: 320px) {
  264. html {
  265. font-size: 84.2667px;
  266. }
  267. }
  268. @media (min-width: 360px) {
  269. html {
  270. font-size: 96px;
  271. }
  272. }
  273. @media (min-width: 375px) {
  274. html {
  275. font-size: 100px;
  276. }
  277. }
  278. @media (min-width: 384px) {
  279. html {
  280. font-size: 102.4px;
  281. }
  282. }
  283. @media (min-width: 414px) {
  284. html {
  285. font-size: 110.4px;
  286. }
  287. }
  288. @media (min-width: 448px) {
  289. html {
  290. font-size: 119.466px;
  291. }
  292. }
  293. @media (min-width: 480px) {
  294. html {
  295. font-size: 128px;
  296. }
  297. }
  298. @media (min-width: 512px) {
  299. html {
  300. font-size: 136.53px;
  301. }
  302. }
  303. @media (min-width: 544px) {
  304. html {
  305. font-size: 144.066px;
  306. }
  307. }
  308. @media (min-width: 576px) {
  309. html {
  310. font-size: 144.6px;
  311. }
  312. }
  313. @media (min-width: 608px) {
  314. html {
  315. font-size: 144.1334px;
  316. }
  317. }
  318. @media (min-width: 640px) {
  319. html {
  320. font-size: 144.6666px;
  321. }
  322. }
  323. @media (min-width: 750px) {
  324. html {
  325. font-size: 144px;
  326. }
  327. }
  328. .customConfirm {
  329. background-color: #373737 !important;
  330. .adm-dialog-action-row {
  331. flex-direction: row-reverse;
  332. border-top: 0.5px solid #8f8f8f !important;
  333. button {
  334. color: #fff !important;
  335. &:nth-child(1) {
  336. border-right: none !important;
  337. border-left: 0.5px solid #8f8f8f !important;
  338. color: red !important;
  339. }
  340. }
  341. }
  342. .adm-dialog-footer {
  343. }
  344. }
  345. @keyframes NumberScorll {
  346. 25%,
  347. 75% {
  348. transform: translateY(-100%);
  349. }
  350. 25.1%,
  351. 75.1% {
  352. transform: translateY(100%);
  353. }
  354. 0%,
  355. 100% {
  356. transform: translateY(0);
  357. }
  358. }
  359. @keyframes Rotate {
  360. 1%,
  361. 100% {
  362. transform: rotate(0deg);
  363. }
  364. 99.9% {
  365. transform: rotate(360deg);
  366. }
  367. }
  368. @keyframes pulse {
  369. 0% {
  370. transform: rotate(-5deg) scaleZ(1);
  371. }
  372. 50% {
  373. transform: rotate(0) scale3d(1.1, 1.1, 1.1);
  374. }
  375. 100% {
  376. transform: rotate(-5deg) scaleZ(1);
  377. }
  378. }
  379. .homeTabsContainer {
  380. .adm-tabs-tab-wrapper {
  381. padding: 0 !important;
  382. }
  383. .adm-tabs-tab {
  384. padding: 0 2px;
  385. }
  386. .adm-tabs-tab-line {
  387. height: 100%;
  388. background: linear-gradient(to right, var(--gradient-left6), var(--gradient-right6));
  389. border-radius: 0.1rem;
  390. z-index: 1;
  391. }
  392. .adm-tabs-header-mask {
  393. display: none;
  394. width: 0 !important;
  395. }
  396. }
  397. // .homeNotice {
  398. // p {
  399. // display: inline-block !important;
  400. // }
  401. // }
  402. .homeNoticeSwiper {
  403. .swiper-wrapper {
  404. display: flex;
  405. transition-timing-function: linear !important;
  406. }
  407. .swiper-slide {
  408. width: auto;
  409. }
  410. .textBox {
  411. letter-spacing: 1;
  412. }
  413. }
  414. .homeHr {
  415. background: url("/home/Vector.webp");
  416. background-size: auto 100%;
  417. height: 0.15rem;
  418. background-repeat: repeat-x;
  419. margin-bottom: 0.05rem;
  420. margin-top: 0.05rem;
  421. position: relative;
  422. &::before {
  423. content: "";
  424. position: absolute;
  425. left: 0;
  426. bottom: 1px;
  427. width: 0.7rem;
  428. height: 0.7rem;
  429. background: url("/home/left_cituan_bg.webp");
  430. background-size: 100% 100%;
  431. pointer-events: none;
  432. }
  433. &::after {
  434. content: "";
  435. position: absolute;
  436. right: 0;
  437. bottom: 1px;
  438. width: 0.7rem;
  439. height: 0.7rem;
  440. background: url("/home/right_cituan_bg.webp");
  441. background-size: 100% 100%;
  442. pointer-events: none;
  443. }
  444. }
  445. .bg-none {
  446. background-color: transparent !important;
  447. }
  448. .p-0 {
  449. padding: 0 !important;
  450. }
  451. .adm-popover-inner-content {
  452. background: rgb(91, 74, 47);
  453. }