common.scss 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492
  1. * {
  2. margin: 0;
  3. padding: 0;
  4. border: 0;
  5. box-sizing: border-box;
  6. }
  7. @import "./var.scss";
  8. ol, ul {
  9. list-style: none;
  10. }
  11. .mb5 {
  12. margin-bottom: 10rpx;
  13. }
  14. .mb5r {
  15. margin-bottom: 5rpx;
  16. }
  17. .mbr11{
  18. margin-bottom: 11rpx;
  19. }
  20. .mb8 {
  21. margin-bottom: 16rpx;
  22. }
  23. .mb6 {
  24. margin-bottom: 6px;
  25. }
  26. .mb10 {
  27. margin-bottom: 20rpx;
  28. }
  29. .mb12 {
  30. margin-bottom: 24rpx;
  31. }
  32. .mb15 {
  33. margin-bottom: 30rpx;
  34. }
  35. .mb20 {
  36. margin-bottom: 40rpx;
  37. }
  38. .mb30 {
  39. margin-bottom: 60rpx;
  40. }
  41. .mr5 {
  42. margin-right: 5px;
  43. }
  44. .mr8 {
  45. margin-right: 8px;
  46. }
  47. .mr9 {
  48. margin-right: 9px;
  49. }
  50. .mr10 {
  51. margin-right: 10px;
  52. }
  53. .mr12 {
  54. margin-right: 12px;
  55. }
  56. .mrr5 {
  57. margin-right: 5rpx;
  58. }
  59. .mr15 {
  60. margin-right: 15px;
  61. }
  62. .mr20 {
  63. margin-right: 40rpx;
  64. }
  65. .mt10 {
  66. margin-top: 10px;
  67. }
  68. .mt20 {
  69. margin-top: 20px;
  70. }
  71. .mt15 {
  72. margin-top: 15px;
  73. }
  74. .mt12 {
  75. margin-top: 12px;
  76. }
  77. .mt9 {
  78. margin-top: 18rpx;
  79. }
  80. .mt6 {
  81. margin-top: 12rpx;
  82. }
  83. .mt8 {
  84. margin-top: 16rpx;
  85. }
  86. .mtr20 {
  87. margin-top: 20rpx;
  88. }
  89. .mt5 {
  90. margin-top: 5px;
  91. }
  92. .ml10{
  93. margin-left: 10px;
  94. }
  95. .ml5{
  96. margin-left: 10rpx;
  97. }
  98. .ml8{
  99. margin-left: 16rpx;
  100. }
  101. .ml15{
  102. margin-left: 30rpx;
  103. }
  104. .ml28{
  105. margin-left: 56rpx;
  106. }
  107. .pd10 {
  108. padding: 0 20rpx;
  109. }
  110. .pdt0 {
  111. padding-top: 0 !important;
  112. }
  113. .display-flex {
  114. display: flex;
  115. align-items: center;
  116. flex-wrap: wrap;
  117. }
  118. .display-flex-common {
  119. display: flex;
  120. }
  121. .flex-center-column {
  122. display: flex;
  123. flex-direction: column;
  124. justify-content: center;
  125. align-items: center;
  126. height: 100%; /* 确保高度占满父元素 */
  127. }
  128. .display-flex-center {
  129. display: flex;
  130. align-items: center;
  131. }
  132. .flex-auto-left {
  133. margin-left: auto;
  134. }
  135. .flex-shrink {
  136. flex-shrink: 0;
  137. }
  138. .display-flex-end{
  139. display: flex;
  140. align-items: center;
  141. justify-content: flex-end;
  142. }
  143. .display-flex-between {
  144. display: flex;
  145. align-items: center;
  146. justify-content: space-between;
  147. }
  148. .display-flex-content-center {
  149. display: flex;
  150. align-items: center;
  151. justify-content: center
  152. }
  153. .clearfix:after {
  154. display: block;
  155. clear: both;
  156. content: '';
  157. visibility: hidden;
  158. height: 0;
  159. }
  160. .clearfix {
  161. zoom: 1;
  162. }
  163. .text-center {
  164. text-align: center;
  165. }
  166. .float-right {
  167. float: right;
  168. }
  169. .text-overflow {
  170. overflow : hidden;
  171. text-overflow: ellipsis;
  172. display: -webkit-box;
  173. -webkit-line-clamp: 2;
  174. -webkit-box-orient: vertical;
  175. word-wrap: break-word;
  176. word-break: normal;
  177. }
  178. .text-overflow-single {
  179. overflow : hidden;
  180. text-overflow: ellipsis;
  181. display: -webkit-box;
  182. -webkit-line-clamp: 1;
  183. -webkit-box-orient: vertical;
  184. word-wrap: break-word;
  185. word-break: normal;
  186. }
  187. .text-through {
  188. text-decoration: line-through;
  189. }
  190. .text-inline {
  191. // display: inline-flex;
  192. }
  193. // 文字相关
  194. .bg-white {
  195. background-color: #fff;
  196. }
  197. .fs9 {
  198. font-size: 18rpx;
  199. }
  200. .fs10 {
  201. font-size: 20rpx;
  202. }
  203. .fs11 {
  204. font-size: 22rpx;
  205. }
  206. .fs12 {
  207. font-size: 24rpx;
  208. }
  209. .fs13 {
  210. font-size: 26rpx;
  211. }
  212. .fs14 {
  213. font-size: 28rpx;
  214. }
  215. .fs15 {
  216. font-size: 30rpx;
  217. }
  218. .fs16 {
  219. font-size: 32rpx;
  220. }
  221. .fs18 {
  222. font-size: 36rpx;
  223. }
  224. .fs20 {
  225. font-size: 40rpx;
  226. }
  227. .fs24 {
  228. font-size: 48rpx;
  229. }
  230. .fs26 {
  231. font-size: 52rpx;
  232. }
  233. .fs30 {
  234. font-size: 60rpx;
  235. }
  236. .fw700 {
  237. font-weight: 700 !important;
  238. }
  239. .fw600 {
  240. font-weight: 600!important;
  241. }
  242. .fw500 {
  243. font-weight: 500!important;
  244. }
  245. .fw400 {
  246. font-weight: 400!important;
  247. }
  248. .fw300 {
  249. font-weight: 300!important;
  250. }
  251. .lh15{
  252. line-height: 30rpx;
  253. }
  254. .lh16{
  255. line-height: 32rpx;
  256. }
  257. .lh18{
  258. line-height: 36rpx;
  259. }
  260. .lh20{
  261. line-height: 40rpx;
  262. }
  263. .color-black {
  264. color: #000;
  265. }
  266. .color-white {
  267. color: #fff;
  268. }
  269. .color-main-gray {
  270. color: #1D161F;
  271. }
  272. .color-2c {
  273. color: #2C2C2C;
  274. }
  275. .color-23 {
  276. color: #232323;
  277. }
  278. .color-3E3D44 {
  279. color: #3E3D44;
  280. }
  281. .color-9 {
  282. color: #999;
  283. }
  284. .color-orange {
  285. color: #FF7400;
  286. }
  287. .color-71 {
  288. color: #717171;
  289. }
  290. .color-7a {
  291. color: #7a7a7a;
  292. }
  293. .color-5f {
  294. color: #5F5F5F;
  295. }
  296. .color-del {
  297. color: #FF4E4A;
  298. }
  299. .color-red {
  300. color: #FF424F;
  301. }
  302. .color-556 {
  303. color: #C29556;
  304. }
  305. .color-666 {
  306. color: #666666;
  307. }
  308. .color-333 {
  309. color: #333333;
  310. }
  311. .color-777 {
  312. color: #777777;
  313. }
  314. .color-888 {
  315. color: #888888;
  316. }
  317. .color-ca{
  318. color: #CACACA;
  319. }
  320. .color-c8{
  321. color: #c8c8c8;
  322. }
  323. .color-d9{
  324. color: #9D9D9D;
  325. }
  326. .color-4a {
  327. color: #4A4A4A;
  328. }
  329. .color-3 {
  330. color: #333;
  331. }
  332. .common-card{
  333. background: #FFFFFF;
  334. border-radius: 24rpx;
  335. padding: 30rpx;
  336. margin-bottom: 20rpx;
  337. }
  338. .common-btn {
  339. height: 78rpx;
  340. line-height: 78rpx;
  341. padding: 0 29rpx;
  342. color: #fff;
  343. background: linear-gradient( 315deg, #CA9359 0%, #E2B98E 100%);
  344. border-radius: 292rpx 292rpx 292rpx 292rpx;
  345. text-align: center;
  346. border: 2rpx solid #E2B98E;
  347. &-gray{
  348. background: #EEEFF1;
  349. color: #1D161F;
  350. }
  351. &-border {
  352. background-color: #fff;
  353. color: #F39800;
  354. border-color: #E2B98E;
  355. }
  356. &-disabled{
  357. background: #EEEFF1;
  358. color: #1D161F;
  359. border-color: #EEEFF1;
  360. }
  361. }
  362. .btn-gray-border {
  363. height: 78rpx;
  364. line-height: 78rpx;
  365. padding: 0 29rpx;
  366. color: #1D161F;
  367. background: #fff;
  368. border: 2rpx solid #D0D0D0;
  369. border-radius: 292rpx 292rpx 292rpx 292rpx;
  370. font-size: 28rpx;
  371. text-align: center;
  372. }
  373. .btn-gray {
  374. height: 78rpx;
  375. line-height: 78rpx;
  376. color: #767983;
  377. background: #F5F7FB;
  378. border-radius: 39rpx 39rpx 39rpx 39rpx;
  379. font-size: 32rpx;
  380. text-align: center;
  381. }
  382. .u-btn--default {
  383. color: #1D161F;
  384. background-color: #EEEFF1;
  385. border-color: #EEEFF1;
  386. }
  387. .new-goods-tag {
  388. display: inline-block;
  389. padding: 0 6rpx;
  390. height: 32rpx;
  391. line-height: 32rpx;
  392. background-color: #77E2BE;
  393. color: #fff;
  394. font-size: 22rpx;
  395. border-radius: 5rpx;
  396. }
  397. .search-box {
  398. margin: 0 auto 20rpx;
  399. height: 61rpx;
  400. background: #FDFDFD;
  401. border-radius: 30rpx;
  402. opacity: 1;
  403. display: flex;
  404. align-items: center;
  405. flex-direction: row;
  406. text {
  407. font-size: 24rpx;
  408. font-family: PingFang SC-Regular, PingFang SC;
  409. font-weight: 400;
  410. color: #9D9D9D;
  411. line-height: 61rpx;
  412. margin-left: 11rpx;
  413. }
  414. }
  415. // tag
  416. .gray-tag {
  417. display: inline-flex;
  418. height: 32rpx;
  419. line-height: 32rpx;
  420. border-radius: 4rpx;
  421. color: #888888;
  422. font-size: 24rpx;
  423. }
  424. .common-card-box {
  425. width: 710rpx;
  426. background: #FFFFFF;
  427. border-radius: 24rpx 24rpx 24rpx 24rpx;
  428. margin: 0 auto 20rpx auto;
  429. display: flex;
  430. flex-direction: column;
  431. }
  432. .bottom-box {
  433. position: fixed;
  434. bottom: 0;
  435. width: 100%;
  436. height: 170rpx;
  437. left: 0;
  438. right: 0;
  439. box-sizing: border-box;
  440. padding: 27rpx 20rpx;
  441. background-color: #fff;
  442. z-index: 1000;
  443. border-radius: 24rpx 24rpx 0rpx 0rpx;
  444. }
  445. .tag-red {
  446. padding: 4rpx 6rpx;
  447. font-size: 22rpx;
  448. color: #C9161E;
  449. background-color: rgba(#C9161E, 0.08);
  450. }