123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309 |
- @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*/
- }
|