common.scss 5.1 KB

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