globals.scss 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281
  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. --swiper-pagination-color: #fff;
  13. --swiper-pagination-bullet-active-bg: #fff;
  14. --swiper-pagination-bullet-inactive-color: hsla(0, 0%, 100%, 0.8);
  15. //--primary-color: #ff6a01;
  16. --bg-color: #0b0e10;
  17. --block-color: #1e252b;
  18. --block-foreground-color: #e2e9ef;
  19. --block-text-color: #a9b2bb;
  20. --block-text-desc-color: #5d7284;
  21. --primary-color: #11de68;
  22. --text-color: #fff;
  23. --tips-color: #dba40b;
  24. --tips-foreground-color: #1f2830;
  25. }
  26. .home-banner {
  27. --swiper-pagination-bullet-width: 0.23rem;
  28. --swiper-pagination-bullet-height: 0.05rem;
  29. --swiper-pagination-bullet-border-radius: 0.03rem;
  30. }
  31. .promotion-swiper {
  32. --swiper-pagination-bullet-width: 0.0833rem;
  33. --swiper-pagination-bullet-height: 0.0833rem;
  34. //--swiper-pagination-bottom: 0;
  35. }
  36. .sport-banner {
  37. --swiper-wrapper-transition-timing-function: linear;
  38. }
  39. /// antd-mobile
  40. :root:root {
  41. --adm-color-background: transparent;
  42. //--adm-color-text: #fff;
  43. //--bg-color: #000000; // todo
  44. --adm-button-text-color: #fff;
  45. //--adm-color-primary: #fff;
  46. }
  47. * {
  48. box-sizing: border-box;
  49. }
  50. ::-webkit-scrollbar {
  51. width: 0;
  52. }
  53. html,
  54. body {
  55. height: 100%;
  56. position: relative;
  57. font-family:
  58. helvetica neue,
  59. Helvetica,
  60. apple sd gothic neo,
  61. malgun gothic,
  62. Arial,
  63. sans-serif;
  64. box-sizing: border-box;
  65. }
  66. html {
  67. font-size: 144px;
  68. }
  69. body {
  70. position: relative;
  71. background: #f8f8f8;
  72. }
  73. #app {
  74. width: 100%;
  75. max-width: 4.02rem;
  76. margin: 0 auto;
  77. font-size: 0.14rem;
  78. background-color: var(--bg-color);
  79. position: relative;
  80. height: 100%;
  81. color: #fff;
  82. transform: translate(0, 0);
  83. overflow: hidden;
  84. }
  85. // dvh解决ios高度包含底部ui栏问题
  86. .main-footer-header {
  87. height: calc(calc(100% - $-header-height) - $-footer-height);
  88. overflow: scroll;
  89. }
  90. .main-footer {
  91. height: 100%; // calc(100% - $-footer-height);
  92. overflow-y: scroll;
  93. }
  94. .main-header {
  95. height: calc(100% - $-header-height);
  96. overflow-y: scroll;
  97. overflow-x: hidden;
  98. }
  99. input {
  100. line-height: normal;
  101. }
  102. /* ant-design-ui */
  103. .adm-toast-mask .adm-toast-main-icon .adm-toast-icon svg {
  104. margin: 0 auto;
  105. }
  106. .adm-input input,
  107. .adm-text-area textarea {
  108. color: #fff;
  109. }
  110. .adm-toast-main {
  111. word-break: keep-all !important;
  112. text-align: center !important;
  113. }
  114. .home-search {
  115. .adm-search-bar-input-box {
  116. border: none !important;
  117. }
  118. .adm-search-bar-active {
  119. border: 0.0069rem solid green;
  120. }
  121. }
  122. .layout-tabs {
  123. .adm-tabs-tab-wrapper {
  124. padding: 0 0.05rem;
  125. }
  126. .adm-tabs-header {
  127. border: none;
  128. }
  129. }
  130. .containerMask {
  131. &::before {
  132. content: "";
  133. position: absolute;
  134. top: 0;
  135. left: 0;
  136. width: 100%;
  137. height: 100%;
  138. z-index: 11;
  139. background: rgba(0, 0, 0, 0.5);
  140. }
  141. }
  142. input[type="number"]::-webkit-inner-spin-button,
  143. input[type="number"]::-webkit-outer-spin-button {
  144. -webkit-appearance: none;
  145. margin: 0;
  146. }
  147. input[type="number"] {
  148. -moz-appearance: textfield;
  149. }
  150. // 表单
  151. .custom-form {
  152. padding: 0 0.18rem;
  153. .adm-list-item-content {
  154. border-radius: 0.06rem;
  155. background-color: #191f25;
  156. margin-bottom: 0.1rem;
  157. padding: 0 0.1rem;
  158. }
  159. .adm-list-item {
  160. padding-left: 0;
  161. }
  162. .adm-form-item-child-inner {
  163. line-height: 1;
  164. }
  165. }
  166. @media (min-width: 320px) {
  167. html {
  168. font-size: 84.2667px;
  169. }
  170. }
  171. @media (min-width: 360px) {
  172. html {
  173. font-size: 96px;
  174. }
  175. }
  176. @media (min-width: 375px) {
  177. html {
  178. font-size: 100px;
  179. }
  180. }
  181. @media (min-width: 384px) {
  182. html {
  183. font-size: 102.4px;
  184. }
  185. }
  186. @media (min-width: 414px) {
  187. html {
  188. font-size: 110.4px;
  189. }
  190. }
  191. @media (min-width: 448px) {
  192. html {
  193. font-size: 119.466px;
  194. }
  195. }
  196. @media (min-width: 480px) {
  197. html {
  198. font-size: 128px;
  199. }
  200. }
  201. @media (min-width: 512px) {
  202. html {
  203. font-size: 136.53px;
  204. }
  205. }
  206. @media (min-width: 544px) {
  207. html {
  208. font-size: 144.066px;
  209. }
  210. }
  211. @media (min-width: 576px) {
  212. html {
  213. font-size: 144.6px;
  214. }
  215. }
  216. @media (min-width: 608px) {
  217. html {
  218. font-size: 144.1334px;
  219. }
  220. }
  221. @media (min-width: 640px) {
  222. html {
  223. font-size: 144.6666px;
  224. }
  225. }
  226. @media (min-width: 750px) {
  227. html {
  228. font-size: 144px;
  229. }
  230. }
  231. .customConfirm {
  232. background-color: #373737 !important;
  233. .adm-dialog-action-row {
  234. flex-direction: row-reverse;
  235. border-top: 0.5px solid #8f8f8f !important;
  236. button {
  237. color: #fff !important;
  238. &:nth-child(1) {
  239. border-right: none !important;
  240. border-left: 0.5px solid #8f8f8f !important;
  241. color: red !important;
  242. }
  243. }
  244. }
  245. .adm-dialog-footer {
  246. }
  247. }
  248. @keyframes NumberScorll {
  249. 25%,
  250. 75% {
  251. transform: translateY(-100%);
  252. }
  253. 25.1%,
  254. 75.1% {
  255. transform: translateY(100%);
  256. }
  257. 0%,
  258. 100% {
  259. transform: translateY(0);
  260. }
  261. }