@import 'tailwindcss/base'; @import 'tailwindcss/components'; @import 'tailwindcss/utilities'; @import './styles/iconfont.less'; @import './styles/_vars.less'; :root{ // 主题色 --color-primary: #317CFA; --color-primary-light: rgba(49, 124, 250, 0.1); --color-primary-dark: #1E6FF8; --color-text-primary: #262626; --color-bg-primary: #F6F6F6; --color-bg-gray: #F6F6F6; } /* 在线链接服务仅供平台体验和调试使用,平台不承诺服务的稳定性,企业客户需下载字体包自行发布使用并做好备份。 */ @font-face { font-family: 'font_family'; /* Project id 4668063 */ src: url('//at.alicdn.com/t/c/font_4668063_9cn2cmbc63i.woff2?t=1725011811061') format('woff2'), url('//at.alicdn.com/t/c/font_4668063_9cn2cmbc63i.woff?t=1725011811061') format('woff'), url('//at.alicdn.com/t/c/font_4668063_9cn2cmbc63i.ttf?t=1725011811061') format('truetype'); } .w-full{ box-sizing: border-box; } .global-color{ font-family: PingFang SC; font-weight: 400; font-size: 14px; line-height: 22px; } .global-color-new{ .global-color{ color: yellowgreen; } } .primary-color{ color: var(--color-primary, #317CFA); } .primary-color-dark{ color: var(--color-primary-dark); } .text-primary-color{ color: var(--color-primary, #317CFA); } .bg-primary-color { background-color: var(--color-bg-primary, #317CFA); } .global-page-bg{ min-height: 100vh; background: var(--color-bg-gray); } .global-linear-gradient-bg{ position: relative; min-height: 100vh; background: linear-gradient(176.35deg, #E6F1FF 18.69%, rgba(255, 255, 255, 0) 113.37%); background-size: 100% 600px; background-repeat: no-repeat; } .global-gray-bg{ background-color: var(--color-bg-gray); } .bg-primary-color{ background-color: var(--color-bg-primary); } // buttons .rounded-button-big{ display: flex; width: 100%; height: 48px; justify-content: center; align-items: center; background-color: var(--color-primary); border-radius: 8px; overflow: hidden; color: white; } .pressed-button{ &:active{ background-color: #F3F706; } } .rounded-button-big-normal{ .rounded-button-big(); background-color: white; &:active{ background-color: #F3F706; } } .wemeta-button{ .rounded-button-big(); border-radius: 12px; } .icon-24{ .iconfont(); width: 24px; height: 24px; font-size: 24px; } .icon-24-fill{ .iconfont(); width: 24px; height: 24px; font-size: 24px; .bg-primary-color(); border-radius: 4px; } .icon-box{ display: flex; align-items: center; justify-content: center; border-radius: 4px; background-color: var(--color-primary); } .rounded-button-mini{ display: flex; padding: 2px 14px; justify-content: center; align-items: center; border-radius: 40px; border: 1px solid #000; color: #000; text-align: center; font-family: "PingFang SC"; font-size: 12px; font-style: normal; font-weight: 400; line-height: 20px; } .rounded-button-mini.disabled{ opacity: .2; } .rounded-button{ display: flex; padding: 8px 30px; align-items: center; border-radius: 20px; background-color: white; color: rgba(#000, .45); text-align: center; font-size: 12px; font-style: normal; font-weight: 500; line-height: 22px; transition: background-color .2s; } .rounded-button.actived{ background-color: #000; color: #FFF; } .social-media-icon{ width: 24px; height: 24px; background-size: 100%; } .social-media-link{ .social-media-icon(); background-image: url(@linkUrl); } .social-media-wechat{ .social-media-icon(); background-image: url(@wechatUrl); } .social-media-shiping{ .social-media-icon(); background-image: url(@shipingLinkUrl); } .social-media-tiktok{ .social-media-icon(); background-image: url(@tiktokUrl); } .social-media-xiaohongshu{ .social-media-icon(); background-image: url(@xiaohongshuUrl); } .social-media-kwai{ .social-media-icon(); background-image: url(@kwaiUrl); } .social-media-bilibili{ .social-media-icon(); background-image: url(@bilibiliUrl); } .social-media-qq{ .social-media-icon(); background-image: url(@qqUrl); } .social-media-sina{ .social-media-icon(); background-image: url(@sinaUrl); } .social-media-shipingVideo{ .social-media-icon(); background-image: url(@shipingUrl); } // 空气按钮分享 .share-button{ position: absolute; left: 0; right: 0; top: 0; width: 100%; height: 100%; opacity: 0; background-color: transparent; } .full-rounded-button{ display: flex; width: 100%; padding: 17px 10px; border-radius: 50px; justify-content: center; align-items: center; background-color: var(--color-primary); } .popup-close-button{ width: 36px; height: 36px; background: url(https://cdn.wehome.cn/cmn/png/116/META-H8UKVHWU-K4SOR0KW954A0B7Q6JXJ2-5SZANE1M-H8.png) no-repeat; background-size: 36px 36px; } .data-empty{ width: 134px; height: 72px; background: url(https://cdn.wehome.cn/cmn/png/6/META-H8UK1IWU-R9EPMWD4CDA7Y5NKEQSM2-QE2IP82M-39.png) no-repeat; background-size: 100%; } .tab-buttons{ display: flex; align-items: center; width: 100%; color: #999; font-size: 14px; height: 56px; font-weight: 400; } .tab-button{ position: relative; flex: 1; display: flex; align-items: center; height: 32px; justify-content: center; &::after{ display: none; content: ''; position: absolute; bottom: 0; left: 50%; width: 24px; transform: translateX(-50%); border-radius: 2px; height: 3px; background-color: var(--color-primary-dark); } } .tabButton-actived{ .tab-button(); font-weight: 500; color: var(--color-primary-dark); &::after{ display: block; } } // 居正中 .flex-center{ display: flex; align-items: center; justify-content: center; } // ios 底部安全区 .bottom-bar{ position: fixed; z-index: 100; left: 0; bottom: 0; right: 0; width: 100%; background-color: var(--color-bg-primary); padding-bottom: constant(safe-area-inset-bottom); /*兼容 IOS<11.2*/ padding-bottom: env(safe-area-inset-bottom); /*兼容 IOS>11.2*/ }