common.scss 5.6 KB

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