globals.scss 4.2 KB

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