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. /// antd-mobile
  28. :root:root{
  29. --adm-color-background: transparent ;
  30. //--adm-color-text: #fff;
  31. --bg-color:#000000;
  32. --adm-button-text-color: #fff;
  33. //--adm-color-primary: #fff;
  34. }
  35. * {
  36. box-sizing: border-box;
  37. }
  38. ::-webkit-scrollbar {
  39. width: 0;
  40. }
  41. html, body {
  42. height: 100vh;
  43. min-height: 100vh;
  44. height: 100dvh;
  45. min-height:100dvh;
  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(100vh - $-header-height) - $-footer-height);
  72. height: calc(calc(100dvh - $-header-height) - $-footer-height);
  73. overflow-y: scroll;
  74. }
  75. .main-footer{
  76. height: calc(100vh - $-footer-height);
  77. height: calc(100dvh - $-footer-height);
  78. overflow-y: scroll;
  79. }
  80. .main-header{
  81. height: calc(100vh - $-header-height);
  82. height: calc(100dvh - $-header-height);
  83. overflow-y: scroll;
  84. }
  85. input {
  86. line-height: normal;
  87. }
  88. /* ant-design-ui */
  89. .adm-toast-mask .adm-toast-main-icon .adm-toast-icon svg {
  90. margin: 0 auto;
  91. }
  92. .adm-input input,.adm-text-area textarea {
  93. color: #fff;
  94. }
  95. .home-search{
  96. .adm-search-bar-input-box {
  97. border: none !important;
  98. }
  99. .adm-search-bar-active{
  100. border: 0.0069rem solid green;
  101. }
  102. }
  103. .layout-tabs{
  104. .adm-tabs-tab-wrapper{
  105. padding: 0 0.0764rem;
  106. }
  107. }
  108. .containerMask{
  109. &::before{
  110. content: "";
  111. position: absolute;
  112. top: 0;
  113. left: 0;
  114. width: 100%;
  115. height: 100%;
  116. z-index: 11;
  117. background: rgba(0,0,0,0.5);
  118. }
  119. }
  120. input[type=number]::-webkit-inner-spin-button,
  121. input[type=number]::-webkit-outer-spin-button {
  122. -webkit-appearance: none;
  123. margin: 0;
  124. }
  125. input[type=number] {
  126. -moz-appearance:textfield;
  127. }
  128. // 表单
  129. .custom-form{
  130. padding: 0 0.18rem;
  131. .adm-list-item-content {
  132. border-radius: 0.06rem;
  133. background-color: #494949;
  134. margin-bottom: 0.1rem;
  135. padding: 0.06rem 0.1rem;
  136. }
  137. .adm-list-item {
  138. padding-left: 0 ;
  139. }
  140. }
  141. @media (min-width: 320px){html{font-size: 84.2667px;} }
  142. @media (min-width: 360px){html{font-size: 96px;} }
  143. @media (min-width: 375px){html{font-size: 100px;} }
  144. @media (min-width: 384px){html{font-size: 102.4px;} }
  145. @media (min-width: 414px){html{font-size: 110.4px;} }
  146. @media (min-width: 448px){html{font-size: 119.466px;} }
  147. @media (min-width: 480px){html{font-size: 128px;} }
  148. @media (min-width: 512px){html{font-size: 136.53px;} }
  149. @media (min-width: 544px){html{font-size: 144.066px;} }
  150. @media (min-width: 576px){html{font-size: 144.6px;} }
  151. @media (min-width: 608px){html{font-size: 144.1334px;} }
  152. @media (min-width: 640px){html{font-size: 144.6666px;} }
  153. @media (min-width: 750px){html{font-size: 144px;} }