common.scss 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431
  1. $theme-color: #707bce;
  2. $theme-dark-color: rgba(#e4c491, .8);
  3. $bg-theme-color: rgba(#e4c491, .1);
  4. $blue: #03A9F4;
  5. $yellow: #f9ae3d;
  6. $yellow-text: #f9ae3d;
  7. $font-normal: #333333;
  8. $font-middle: #666666;
  9. $font-light: #333333;
  10. view {
  11. font-size: 28rpx;
  12. box-sizing: border-box;
  13. }
  14. .page {
  15. background-color: #F5F5F5;
  16. min-height: 100vh;
  17. }
  18. .page-top {
  19. padding-top: 30rpx;
  20. }
  21. .flex,
  22. .flex-box,
  23. .flex-row {
  24. display: flex;
  25. }
  26. .flex-column {
  27. flex-direction: column;
  28. }
  29. .flex-end {
  30. justify-content: flex-end;
  31. }
  32. .flex-align {
  33. align-items: center;
  34. }
  35. .flex-center {
  36. align-items: center;
  37. justify-content: center;
  38. }
  39. .flex-a-c {
  40. align-items: center;
  41. }
  42. .flex-j-c {
  43. justify-content: center;
  44. }
  45. .flex-j-e {
  46. justify-content: flex-end;
  47. }
  48. .space-between {
  49. justify-content: space-between;
  50. }
  51. .flex-wrap {
  52. flex-wrap: wrap;
  53. }
  54. .text-center {
  55. text-align: center !important;
  56. }
  57. .pad {
  58. padding-left: 30rpx;
  59. padding-right: 30rpx;
  60. }
  61. @keyframes circle {
  62. 0% {
  63. transform: rotate(0);
  64. }
  65. 100% {
  66. transform: rotate(360deg);
  67. }
  68. }
  69. .px-15 {
  70. padding-top: 15rpx;
  71. padding-bottom: 15rpx;
  72. }
  73. .input-placeholder {
  74. font-size: 26rpx;
  75. color: #999999;
  76. }
  77. .mb-20 {
  78. margin-bottom: 20rpx;
  79. }
  80. .c-4 {
  81. color: #ad2305;
  82. }
  83. .c-3 {
  84. color: #333739;
  85. }
  86. .c-5 {
  87. color: #545657;
  88. }
  89. .c-6 {
  90. color: #666769;
  91. }
  92. .c-9 {
  93. color: #999A9A;
  94. }
  95. .c-f {
  96. color: #FFFFFF;
  97. }
  98. .c-y {
  99. color: $yellow;
  100. }
  101. .text-y {
  102. color: $yellow-text;
  103. }
  104. .px-15 {
  105. padding-left: 15rpx;
  106. padding-right: 15rpx;
  107. }
  108. .bg-white {
  109. background-color: #FFFFFF;
  110. }
  111. .bg-gray {
  112. background-color: #ecf7f3;
  113. }
  114. .bg-gray-light {
  115. background-color: #FAFAFA;
  116. }
  117. .bg-gray-empha {
  118. background-color: #F1F2F3;
  119. }
  120. .border {
  121. border: 1rpx solid #EFEFEF;
  122. }
  123. .border-bottom {
  124. border-bottom: 1rpx solid #EFEFEF;
  125. }
  126. .btn {
  127. width: auto;
  128. margin-left: 0;
  129. margin-right: 0;
  130. padding-left: 30rpx;
  131. padding-right: 30rpx;
  132. font-size: 14px;
  133. background-color: transparent;
  134. &.primary {
  135. background-color: $theme-color;
  136. color: #FFFFFF;
  137. }
  138. &.info {
  139. border: 1rpx solid #DCDCDC;
  140. }
  141. }
  142. .font-bold {
  143. font-weight: bold;
  144. }
  145. .font-normal {
  146. font-weight: normal;
  147. font-style: normal;
  148. }
  149. @for $i from 0 through 30 {
  150. .ml-#{$i*2} {
  151. margin-left: #{$i * 2}rpx;
  152. }
  153. .mr-#{$i * 2} {
  154. margin-right: #{$i * 2}rpx;
  155. }
  156. .mt-#{$i * 2} {
  157. margin-top: #{$i * 2}rpx;
  158. }
  159. .mb-#{$i * 2} {
  160. margin-bottom: #{$i * 2}rpx;
  161. }
  162. .pad-#{$i * 2} {
  163. padding: #{$i * 2}rpx;
  164. box-sizing: border-box;
  165. }
  166. }
  167. @for $i from 0 through 20 {
  168. .pt-#{$i*2} {
  169. padding-top:#{$i * 2}rpx;
  170. }
  171. .px-#{$i * 2} {
  172. padding-left: #{$i* 2}rpx !important;
  173. padding-right: #{$i* 2}rpx !important;
  174. }
  175. .py-#{$i * 2} {
  176. padding-top: #{$i * 2}rpx !important;
  177. padding-bottom: #{$i * 2}rpx !important;
  178. }
  179. .pad-#{$i * 2} {
  180. padding:#{$i * 2}rpx;
  181. }
  182. .radius-#{$i * 2} {
  183. border-radius: #{$i * 2}rpx;
  184. }
  185. .font-#{20 + $i * 2} {
  186. font-size: #{22 + $i * 2}rpx;
  187. }
  188. }
  189. @for $i from 1 through 5 {
  190. .text-line#{$i} {
  191. overflow: hidden;
  192. display: -webkit-box !important;
  193. text-overflow: ellipsis;
  194. word-break: break-all;
  195. -webkit-line-clamp: #{$i};
  196. -webkit-box-orient: vertical !important;
  197. }
  198. }
  199. .operat-btns {
  200. padding: 16px;
  201. box-sizing: border-box;
  202. width: 100%;
  203. position: fixed;
  204. bottom: 20px;
  205. left: 0;
  206. right: 0;
  207. }
  208. .operat-btns .u-button+.u-button {
  209. margin-left: 14px;
  210. }
  211. // 超出省略,最多5行
  212. @for $i from 12 through 30 {
  213. .font-#{$i} {
  214. // vue下,单行和多行显示省略号需要单独处理
  215. font-size: #{$i}+'px' !important;
  216. }
  217. }
  218. .common-title {
  219. font-size: 15px;
  220. font-family: PingFang SC;
  221. font-weight: bold;
  222. color: #101010;
  223. line-height: 19px;
  224. }
  225. .flex {
  226. display: flex;
  227. }
  228. .flex-j-b {
  229. justify-content: space-between;
  230. }
  231. .flex-1 {
  232. flex: 1;
  233. }
  234. .flex-a {
  235. display: flex;
  236. align-items: center;
  237. }
  238. .flex-a-s {
  239. align-items: flex-start;
  240. }
  241. .flex-a-c {
  242. align-items: center;
  243. }
  244. .flex-a-e {
  245. align-items: flex-end;
  246. }
  247. .flex-c {
  248. display: flex;
  249. align-items: center;
  250. justify-content: center;
  251. }
  252. .flex-d {
  253. display: flex;
  254. flex-direction: column;
  255. }
  256. .common-text {
  257. font-family: PingFang SC;
  258. font-weight: 500;
  259. font-size: 13px;
  260. color: #666666;
  261. line-height: 24px;
  262. text-align: left;
  263. }
  264. .common-num-text {
  265. font-family: AlibabaSans102 V2 Num_Alipay;
  266. font-weight: normal;
  267. font-size: 18px;
  268. color: #111111;
  269. line-height: 24px;
  270. text-align: left;
  271. }
  272. .common-card {
  273. padding: 14px 12px 21px;
  274. background: #FFFFFF;
  275. border-radius: 10px;
  276. opacity: 1;
  277. }
  278. .white-bg {
  279. padding: 0;
  280. box-sizing: border-box;
  281. background-color: #ffffff;
  282. border-radius: 10px;
  283. }
  284. .common-tag {
  285. padding: 2px 4px;
  286. background: linear-gradient(180deg, #DBC4A3 0%, #D2B692 100%);
  287. border-radius: 3px 3px 3px 3px;
  288. opacity: 1;
  289. position: relative;
  290. font-size: 11px;
  291. font-family: PingFang SC;
  292. font-weight: 400;
  293. color: #FFFFFF;
  294. margin-left: 6px;
  295. }
  296. .common-number-text {
  297. font-family: AlibabaSans102 V2 Num_Alipay;
  298. font-weight: normal;
  299. font-size: 16px;
  300. color: #111111;
  301. line-height: 28px;
  302. }
  303. .common-btn {
  304. width: 100%;
  305. height: 88rpx;
  306. background: #38C148;
  307. border-radius: 10rpx;
  308. font-family: PingFang SC;
  309. font-weight: 500;
  310. font-size: 32rpx;
  311. color: #FFFFFF;
  312. &.plain {
  313. border: 2rpx solid #38C148;
  314. color: #38C148;
  315. background: #ffffff;
  316. }
  317. }
  318. .color-primary {
  319. color: #707bce !important;
  320. }
  321. .team-title {
  322. font-size: 28rpx;
  323. color: #707bce;
  324. }
  325. .common-page {
  326. padding: 30rpx;
  327. box-sizing: border-box;
  328. }
  329. .common-text-2 {
  330. font-family: PingFang SC;
  331. font-weight: 500;
  332. font-size: 28rpx;
  333. color: #333333;
  334. line-height: 1.4;
  335. }
  336. .bottom-fixed-con {
  337. padding: 16rpx 30rpx;
  338. box-sizing: border-box;
  339. background-color: #ffffff;
  340. width: 100%;
  341. position: fixed;
  342. bottom: env(safe-area-inset-bottom);
  343. left: 0;
  344. right: 0;
  345. display: flex;
  346. align-items: center;
  347. button {
  348. width: 100%;
  349. flex: 1;
  350. }
  351. }