app.less 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309
  1. @import 'tailwindcss/base';
  2. @import 'tailwindcss/components';
  3. @import 'tailwindcss/utilities';
  4. @import './styles/iconfont.less';
  5. @import './styles/_vars.less';
  6. :root{
  7. // 主题色
  8. --color-primary: #317CFA;
  9. --color-primary-light: rgba(49, 124, 250, 0.1);
  10. --color-primary-dark: #1E6FF8;
  11. --color-text-primary: #262626;
  12. --color-bg-primary: #F6F6F6;
  13. --color-bg-gray: #F6F6F6;
  14. }
  15. /* 在线链接服务仅供平台体验和调试使用,平台不承诺服务的稳定性,企业客户需下载字体包自行发布使用并做好备份。 */
  16. @font-face {
  17. font-family: 'font_family'; /* Project id 4668063 */
  18. src: url('//at.alicdn.com/t/c/font_4668063_9cn2cmbc63i.woff2?t=1725011811061') format('woff2'),
  19. url('//at.alicdn.com/t/c/font_4668063_9cn2cmbc63i.woff?t=1725011811061') format('woff'),
  20. url('//at.alicdn.com/t/c/font_4668063_9cn2cmbc63i.ttf?t=1725011811061') format('truetype');
  21. }
  22. .w-full{
  23. box-sizing: border-box;
  24. }
  25. .global-color{
  26. font-family: PingFang SC;
  27. font-weight: 400;
  28. font-size: 14px;
  29. line-height: 22px;
  30. }
  31. .global-color-new{
  32. .global-color{
  33. color: yellowgreen;
  34. }
  35. }
  36. .primary-color{
  37. color: var(--color-primary, #317CFA);
  38. }
  39. .primary-color-dark{
  40. color: var(--color-primary-dark);
  41. }
  42. .text-primary-color{
  43. color: var(--color-primary, #317CFA);
  44. }
  45. .bg-primary-color {
  46. background-color: var(--color-bg-primary, #317CFA);
  47. }
  48. .global-page-bg{
  49. min-height: 100vh;
  50. background: var(--color-bg-gray);
  51. }
  52. .global-linear-gradient-bg{
  53. position: relative;
  54. min-height: 100vh;
  55. background: linear-gradient(176.35deg, #E6F1FF 18.69%, rgba(255, 255, 255, 0) 113.37%);
  56. background-size: 100% 600px;
  57. background-repeat: no-repeat;
  58. }
  59. .global-gray-bg{
  60. background-color: var(--color-bg-gray);
  61. }
  62. .bg-primary-color{
  63. background-color: var(--color-bg-primary);
  64. }
  65. // buttons
  66. .rounded-button-big{
  67. display: flex;
  68. width: 100%;
  69. height: 48px;
  70. justify-content: center;
  71. align-items: center;
  72. background-color: var(--color-primary);
  73. border-radius: 8px;
  74. overflow: hidden;
  75. color: white;
  76. }
  77. .pressed-button{
  78. &:active{
  79. background-color: #F3F706;
  80. }
  81. }
  82. .rounded-button-big-normal{
  83. .rounded-button-big();
  84. background-color: white;
  85. &:active{
  86. background-color: #F3F706;
  87. }
  88. }
  89. .wemeta-button{
  90. .rounded-button-big();
  91. border-radius: 12px;
  92. }
  93. .icon-24{
  94. .iconfont();
  95. width: 24px;
  96. height: 24px;
  97. font-size: 24px;
  98. }
  99. .icon-24-fill{
  100. .iconfont();
  101. width: 24px;
  102. height: 24px;
  103. font-size: 24px;
  104. .bg-primary-color();
  105. border-radius: 4px;
  106. }
  107. .icon-box{
  108. display: flex;
  109. align-items: center;
  110. justify-content: center;
  111. border-radius: 4px;
  112. background-color: var(--color-primary);
  113. }
  114. .rounded-button-mini{
  115. display: flex;
  116. padding: 2px 14px;
  117. justify-content: center;
  118. align-items: center;
  119. border-radius: 40px;
  120. border: 1px solid #000;
  121. color: #000;
  122. text-align: center;
  123. font-family: "PingFang SC";
  124. font-size: 12px;
  125. font-style: normal;
  126. font-weight: 400;
  127. line-height: 20px;
  128. }
  129. .rounded-button-mini.disabled{
  130. opacity: .2;
  131. }
  132. .rounded-button{
  133. display: flex;
  134. padding: 8px 30px;
  135. align-items: center;
  136. border-radius: 20px;
  137. background-color: white;
  138. color: rgba(#000, .45);
  139. text-align: center;
  140. font-size: 12px;
  141. font-style: normal;
  142. font-weight: 500;
  143. line-height: 22px;
  144. transition: background-color .2s;
  145. }
  146. .rounded-button.actived{
  147. background-color: #000;
  148. color: #FFF;
  149. }
  150. .social-media-icon{
  151. width: 24px;
  152. height: 24px;
  153. background-size: 100%;
  154. }
  155. .social-media-link{
  156. .social-media-icon();
  157. background-image: url(@linkUrl);
  158. }
  159. .social-media-wechat{
  160. .social-media-icon();
  161. background-image: url(@wechatUrl);
  162. }
  163. .social-media-shiping{
  164. .social-media-icon();
  165. background-image: url(@shipingLinkUrl);
  166. }
  167. .social-media-tiktok{
  168. .social-media-icon();
  169. background-image: url(@tiktokUrl);
  170. }
  171. .social-media-xiaohongshu{
  172. .social-media-icon();
  173. background-image: url(@xiaohongshuUrl);
  174. }
  175. .social-media-kwai{
  176. .social-media-icon();
  177. background-image: url(@kwaiUrl);
  178. }
  179. .social-media-bilibili{
  180. .social-media-icon();
  181. background-image: url(@bilibiliUrl);
  182. }
  183. .social-media-qq{
  184. .social-media-icon();
  185. background-image: url(@qqUrl);
  186. }
  187. .social-media-sina{
  188. .social-media-icon();
  189. background-image: url(@sinaUrl);
  190. }
  191. .social-media-shipingVideo{
  192. .social-media-icon();
  193. background-image: url(@shipingUrl);
  194. }
  195. // 空气按钮分享
  196. .share-button{
  197. position: absolute;
  198. left: 0;
  199. right: 0;
  200. top: 0;
  201. width: 100%;
  202. height: 100%;
  203. opacity: 0;
  204. background-color: transparent;
  205. }
  206. .full-rounded-button{
  207. display: flex;
  208. width: 100%;
  209. padding: 17px 10px;
  210. border-radius: 50px;
  211. justify-content: center;
  212. align-items: center;
  213. background-color: var(--color-primary);
  214. }
  215. .popup-close-button{
  216. width: 36px;
  217. height: 36px;
  218. background: url(https://cdn.wehome.cn/cmn/png/116/META-H8UKVHWU-K4SOR0KW954A0B7Q6JXJ2-5SZANE1M-H8.png) no-repeat;
  219. background-size: 36px 36px;
  220. }
  221. .data-empty{
  222. width: 134px;
  223. height: 72px;
  224. background: url(https://cdn.wehome.cn/cmn/png/6/META-H8UK1IWU-R9EPMWD4CDA7Y5NKEQSM2-QE2IP82M-39.png) no-repeat;
  225. background-size: 100%;
  226. }
  227. .tab-buttons{
  228. display: flex;
  229. align-items: center;
  230. width: 100%;
  231. color: #999;
  232. font-size: 14px;
  233. height: 56px;
  234. font-weight: 400;
  235. }
  236. .tab-button{
  237. position: relative;
  238. flex: 1;
  239. display: flex;
  240. align-items: center;
  241. height: 32px;
  242. justify-content: center;
  243. &::after{
  244. display: none;
  245. content: '';
  246. position: absolute;
  247. bottom: 0;
  248. left: 50%;
  249. width: 24px;
  250. transform: translateX(-50%);
  251. border-radius: 2px;
  252. height: 3px;
  253. background-color: var(--color-primary-dark);
  254. }
  255. }
  256. .tabButton-actived{
  257. .tab-button();
  258. font-weight: 500;
  259. color: var(--color-primary-dark);
  260. &::after{
  261. display: block;
  262. }
  263. }
  264. // 居正中
  265. .flex-center{
  266. display: flex;
  267. align-items: center;
  268. justify-content: center;
  269. }
  270. // ios 底部安全区
  271. .bottom-bar{
  272. position: fixed;
  273. z-index: 100;
  274. left: 0;
  275. bottom: 0;
  276. right: 0;
  277. width: 100%;
  278. background-color: var(--color-bg-primary);
  279. padding-bottom: constant(safe-area-inset-bottom); /*兼容 IOS<11.2*/
  280. padding-bottom: env(safe-area-inset-bottom); /*兼容 IOS>11.2*/
  281. }