common.scss 5.4 KB

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