common.scss 5.0 KB

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