globals.scss 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  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%, .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, body {
  45. height: 100%;
  46. position: relative;
  47. font-family: helvetica neue, Helvetica, apple sd gothic neo, malgun gothic, Arial, sans-serif;
  48. box-sizing: border-box;
  49. }
  50. html {
  51. font-size: 104px;
  52. }
  53. body{
  54. position: relative;
  55. background: #f8f8f8;
  56. }
  57. #app {
  58. width: 100%;
  59. max-width: 4.02rem;
  60. margin: 0 auto;
  61. font-size: 0.14rem;
  62. background-color: var(--bg-color);
  63. position: relative;
  64. height: 100%;
  65. color: #fff;
  66. transform: translate(0,0);
  67. overflow: hidden;
  68. }
  69. // dvh解决ios高度包含底部ui栏问题
  70. .main-footer-header{
  71. height: calc(calc(100% - $-header-height) - $-footer-height);
  72. overflow: scroll;
  73. }
  74. .main-footer{
  75. height: calc(100% - $-footer-height);
  76. overflow-y: scroll;
  77. }
  78. .main-header{
  79. height: calc(100% - $-header-height);
  80. overflow-y: scroll;
  81. }
  82. input {
  83. line-height: normal;
  84. }
  85. /* ant-design-ui */
  86. .adm-toast-mask .adm-toast-main-icon .adm-toast-icon svg {
  87. margin: 0 auto;
  88. }
  89. .adm-input input,.adm-text-area textarea {
  90. color: #fff;
  91. }
  92. .adm-toast-main{
  93. word-break: keep-all!important;
  94. text-align: center!important;
  95. }
  96. .home-search{
  97. .adm-search-bar-input-box {
  98. border: none !important;
  99. }
  100. .adm-search-bar-active{
  101. border: 0.0069rem solid green;
  102. }
  103. }
  104. .layout-tabs{
  105. .adm-tabs-tab-wrapper{
  106. padding: 0 0.05rem;
  107. }
  108. }
  109. .containerMask{
  110. &::before{
  111. content: "";
  112. position: absolute;
  113. top: 0;
  114. left: 0;
  115. width: 100%;
  116. height: 100%;
  117. z-index: 11;
  118. background: rgba(0,0,0,0.5);
  119. }
  120. }
  121. input[type=number]::-webkit-inner-spin-button,
  122. input[type=number]::-webkit-outer-spin-button {
  123. -webkit-appearance: none;
  124. margin: 0;
  125. }
  126. input[type=number] {
  127. -moz-appearance:textfield;
  128. }
  129. // 表单
  130. .custom-form{
  131. padding: 0 0.18rem;
  132. .adm-list-item-content {
  133. border-radius: 0.06rem;
  134. background-color: #494949;
  135. margin-bottom: 0.1rem;
  136. padding: 0.06rem 0.1rem;
  137. }
  138. .adm-list-item {
  139. padding-left: 0 ;
  140. }
  141. }
  142. @media (min-width: 320px){html{font-size: 84.2667px;} }
  143. @media (min-width: 360px){html{font-size: 96px;} }
  144. @media (min-width: 375px){html{font-size: 100px;} }
  145. @media (min-width: 384px){html{font-size: 102.4px;} }
  146. @media (min-width: 414px){html{font-size: 110.4px;} }
  147. @media (min-width: 448px){html{font-size: 119.466px;} }
  148. @media (min-width: 480px){html{font-size: 128px;} }
  149. @media (min-width: 512px){html{font-size: 136.53px;} }
  150. @media (min-width: 544px){html{font-size: 144.066px;} }
  151. @media (min-width: 576px){html{font-size: 144.6px;} }
  152. @media (min-width: 608px){html{font-size: 144.1334px;} }
  153. @media (min-width: 640px){html{font-size: 144.6666px;} }
  154. @media (min-width: 750px){html{font-size: 144px;} }