@tailwind base; @tailwind components; @tailwind utilities; @import "../styles/iconfont/iconfont.css"; @import "../styles/iconfontPro/iconfont.css"; /* swiper */ @import "swiper/css"; @import "swiper/css/autoplay"; @import "swiper/css/pagination"; @import "swiper/css/virtual"; :root{ --swiper-pagination-color: #fff; --swiper-pagination-bullet-active-bg: #fff; --swiper-pagination-bullet-inactive-color: hsla(0, 0%, 100%, .8); --primary-color: #ff6a01; } .home-banner{ --swiper-pagination-bullet-width: 0.23rem; --swiper-pagination-bullet-height: 0.05rem; --swiper-pagination-bullet-border-radius: 0.03rem; } .promotion-swiper{ --swiper-pagination-bullet-width: 0.0833rem; --swiper-pagination-bullet-height: 0.0833rem; //--swiper-pagination-bottom: 0; } /// antd-mobile :root:root{ --adm-color-background: transparent ; //--adm-color-text: #fff; --bg-color:#000000; --adm-button-text-color: #fff; //--adm-color-primary: #fff; } * { box-sizing: border-box; } ::-webkit-scrollbar { width: 0; } html, body { height: 100vh; min-height: 100vh; height: 100dvh; min-height:100dvh; position: relative; font-family: helvetica neue, Helvetica, apple sd gothic neo, malgun gothic, Arial, sans-serif; box-sizing: border-box; } html { font-size: 104px; } body{ position: relative; background: #f8f8f8; } #app { width: 100%; max-width: 4.02rem; margin: 0 auto; font-size: 0.14rem; background-color: var(--bg-color); position: relative; height: 100%; color: #fff; transform: translate(0,0); overflow: hidden; } // dvh解决ios高度包含底部ui栏问题 .main-footer-header{ height: calc(calc(100vh - $-header-height) - $-footer-height); height: calc(calc(100dvh - $-header-height) - $-footer-height); overflow-y: scroll; } .main-footer{ height: calc(100vh - $-footer-height); height: calc(100dvh - $-footer-height); overflow-y: scroll; } .main-header{ height: calc(100vh - $-header-height); height: calc(100dvh - $-header-height); overflow-y: scroll; } input { line-height: normal; } /* ant-design-ui */ .adm-toast-mask .adm-toast-main-icon .adm-toast-icon svg { margin: 0 auto; } .adm-input input,.adm-text-area textarea { color: #fff; } .home-search{ .adm-search-bar-input-box { border: none !important; } .adm-search-bar-active{ border: 0.0069rem solid green; } } .layout-tabs{ .adm-tabs-tab-wrapper{ padding: 0 0.0764rem; } } .containerMask{ &::before{ content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 11; background: rgba(0,0,0,0.5); } } input[type=number]::-webkit-inner-spin-button, input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; } input[type=number] { -moz-appearance:textfield; } // 表单 .custom-form{ padding: 0 0.18rem; .adm-list-item-content { border-radius: 0.06rem; background-color: #494949; margin-bottom: 0.1rem; padding: 0.06rem 0.1rem; } .adm-list-item { padding-left: 0 ; } } @media (min-width: 320px){html{font-size: 84.2667px;} } @media (min-width: 360px){html{font-size: 96px;} } @media (min-width: 375px){html{font-size: 100px;} } @media (min-width: 384px){html{font-size: 102.4px;} } @media (min-width: 414px){html{font-size: 110.4px;} } @media (min-width: 448px){html{font-size: 119.466px;} } @media (min-width: 480px){html{font-size: 128px;} } @media (min-width: 512px){html{font-size: 136.53px;} } @media (min-width: 544px){html{font-size: 144.066px;} } @media (min-width: 576px){html{font-size: 144.6px;} } @media (min-width: 608px){html{font-size: 144.1334px;} } @media (min-width: 640px){html{font-size: 144.6666px;} } @media (min-width: 750px){html{font-size: 144px;} }