globals.scss 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  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. }
  16. .home-banner{
  17. --swiper-pagination-bullet-width: 0.23rem;
  18. --swiper-pagination-bullet-height: 0.05rem;
  19. --swiper-pagination-bullet-border-radius: 0.03rem;
  20. }
  21. .promotion-swiper{
  22. --swiper-pagination-bullet-width: 0.0833rem;
  23. --swiper-pagination-bullet-height: 0.0833rem;
  24. //--swiper-pagination-bottom: 0;
  25. }
  26. /// antd-mobile
  27. :root:root{
  28. --adm-color-background: transparent ;
  29. //--adm-color-text: #fff;
  30. --bg-color:#000000;
  31. --adm-button-text-color: #fff;
  32. //--adm-color-primary: #fff;
  33. }
  34. * {
  35. box-sizing: border-box;
  36. }
  37. ::-webkit-scrollbar {
  38. width: 0;
  39. }
  40. html, body {
  41. height: 100vh;
  42. min-height: 100vh;
  43. height: 100dvh;
  44. min-height:100dvh;
  45. position: relative;
  46. font-family: helvetica neue, Helvetica, apple sd gothic neo, malgun gothic, Arial, sans-serif;
  47. box-sizing: border-box;
  48. }
  49. html {
  50. font-size: 104px;
  51. }
  52. body{
  53. position: relative;
  54. background: #f8f8f8;
  55. }
  56. #app {
  57. width: 100%;
  58. max-width: 4.02rem;
  59. margin: 0 auto;
  60. font-size: 0.14rem;
  61. background-color: var(--bg-color);
  62. position: relative;
  63. height: 100%;
  64. color: #fff;
  65. transform: translate(0,0);
  66. overflow: hidden;
  67. }
  68. // dvh解决ios高度包含底部ui栏问题
  69. .main-footer-header{
  70. height: calc(calc(100vh - $-header-height) - $-footer-height);
  71. height: calc(calc(100dvh - $-header-height) - $-footer-height);
  72. overflow-y: scroll;
  73. }
  74. .main-footer{
  75. height: calc(100vh - $-footer-height);
  76. height: calc(100dvh - $-footer-height);
  77. overflow-y: scroll;
  78. }
  79. .main-header{
  80. height: calc(100vh - $-header-height);
  81. height: calc(100dvh - $-header-height);
  82. overflow-y: scroll;
  83. }
  84. input {
  85. line-height: normal;
  86. }
  87. /* ant-design-ui */
  88. .adm-toast-mask .adm-toast-main-icon .adm-toast-icon svg {
  89. margin: 0 auto;
  90. }
  91. .adm-input input{
  92. color: #fff;
  93. }
  94. .home-search{
  95. .adm-search-bar-input-box {
  96. border: none !important;
  97. }
  98. .adm-search-bar-active{
  99. border: 0.0069rem solid green;
  100. }
  101. }
  102. .layout-tabs{
  103. .adm-tabs-tab-wrapper{
  104. padding: 0 0.0764rem;
  105. }
  106. }
  107. @media (min-width: 320px){html{font-size: 84.2667px;} }
  108. @media (min-width: 360px){html{font-size: 96px;} }
  109. @media (min-width: 375px){html{font-size: 100px;} }
  110. @media (min-width: 384px){html{font-size: 102.4px;} }
  111. @media (min-width: 414px){html{font-size: 110.4px;} }
  112. @media (min-width: 448px){html{font-size: 119.466px;} }
  113. @media (min-width: 480px){html{font-size: 128px;} }
  114. @media (min-width: 512px){html{font-size: 136.53px;} }
  115. @media (min-width: 544px){html{font-size: 144.066px;} }
  116. @media (min-width: 576px){html{font-size: 144.6px;} }
  117. @media (min-width: 608px){html{font-size: 144.1334px;} }
  118. @media (min-width: 640px){html{font-size: 144.6666px;} }
  119. @media (min-width: 750px){html{font-size: 144px;} }