index.scss 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557
  1. :root {
  2. --v-primary-base: #00B760;
  3. --v-error-base: #fe574a;
  4. --v-primary-lighten1: #26A69A;
  5. --v-primary-lighten2: #4DB6AC;
  6. --v-primary-lighten3: #80CBC4;
  7. --v-primary-lighten4: #B2DFDB;
  8. --color-222: #222;
  9. --color-333: #333;
  10. --color-666: #666;
  11. --color-777: #777;
  12. --color-999: #999;
  13. --color-ccc: #ccc;
  14. --color-f3: #f3f3f3;
  15. --color-f2f4f742: #f2f4f742;
  16. --color-f8: #f8f8f8;
  17. --color-f2f4f7: #f2f4f7;
  18. --color-d5e6e8: #d5e6e8;
  19. --zIndex-breadcrumbs: 999;
  20. }
  21. .mt-5 { margin-top: 30rpx; }
  22. .mt-10 { margin-top: 60rpx; }
  23. .cursor-pointer { cursor: pointer; }
  24. .font-weight-bold { font-weight: bold; }
  25. .text-center { text-align: center; }
  26. .vertical80-center { text-align: center; line-height: 80vh; } // 左右居中,高度80居中
  27. .vertical-center { text-align: center; line-height: 80vh; } // 左右居中,高度80居中
  28. .d-flex { display: flex; }
  29. .flex-column { flex-direction: column; }
  30. .align-center { align-items: center; }
  31. .justify-center { justify-content: center; }
  32. .justify-space-between { justify-content: space-between; }
  33. .justify-space-around { justify-content: space-around; }
  34. .justify-end { justify-content: flex-end; }
  35. .color-222 { color: #222; }
  36. .color-333 { color: #333; }
  37. .color-666 { color: #666; }
  38. .color-777 { color: #777; }
  39. .color-999 { color: #999; }
  40. .color-ccc { color: #ccc; }
  41. .color-f3f3f3 { color: #f3f3f3; }
  42. .color-f2f4f742 { color: #f2f4f742; }
  43. .color-f8f8f8 { color: #f8f8f8; }
  44. .color-f2f4f7 { color: #f2f4f7; }
  45. .color-d5e6e8 { color: #d5e6e8; }
  46. .color-error { color: #fe574a; }
  47. .color-primary { color: #00B760; }
  48. .color-warning { color: #fb8c00; }
  49. .font-size-12 { font-size: 24rpx; }
  50. .font-size-13 { font-size: 26rpx; }
  51. .font-size-14 { font-size: 28rpx; }
  52. .font-size-15 { font-size: 30rpx; }
  53. .font-size-16 { font-size: 32rpx; }
  54. .font-size-17 { font-size: 34rpx; }
  55. .font-size-18 { font-size: 36rpx; }
  56. .font-size-19 { font-size: 38rpx; }
  57. .font-size-20 { font-size: 40rpx; }
  58. .MiSans-Semibold {
  59. font-family: MiSans-Semibold;
  60. }
  61. .MiSans-Normal {
  62. font-family: MiSans-Normal;
  63. }
  64. .MiSans-Bold {
  65. font-family: MiSans-Bold;
  66. }
  67. .MiSans-Medium {
  68. font-family: MiSans-Medium;
  69. }
  70. .defaultLink {
  71. color:#00B760;
  72. cursor:pointer;
  73. // text-decoration: underline;
  74. }
  75. .default-radius { border-radius: 10rpx; }
  76. .list-item-bgc { background-color: #fbfbfb; }
  77. .default-border { border: 1rpx solid #E1E4E9; }
  78. .defaultBgc {
  79. // height: 100vh;
  80. background-color: #f7f8fa;
  81. }
  82. // 公共渐变样式
  83. .commonBackground {
  84. position: relative;
  85. &::before {
  86. content: '';
  87. position: absolute;
  88. top: 0;
  89. left: 0;
  90. width: 100%;
  91. height: 160px;
  92. background: linear-gradient(180deg, #BCFEDE, #F7F8FA);
  93. }
  94. }
  95. // 表单文字样式设置
  96. .uni-forms-item__label {
  97. font-family: MiSans-Normal;
  98. }
  99. .uni-forms-item__content {
  100. font-family: MiSans-Normal;
  101. }
  102. .nodata-img-parent{
  103. height: 90vh;
  104. display: flex;
  105. align-items: center;
  106. justify-content: center;
  107. }
  108. // 火苗
  109. // 水平左右分
  110. .f-horizon {
  111. display: flex;
  112. justify-content: space-between;
  113. align-items: center;
  114. flex-direction: row;
  115. // margin:15rpx;
  116. }
  117. // 水平居中
  118. .f-horizon-center{
  119. display: flex;
  120. justify-content: center;
  121. align-items: center;
  122. flex-direction: row;
  123. margin: 5rpx;
  124. }
  125. .salary {
  126. color: var(--v-error-base);
  127. line-height: 41px;
  128. font-weight: 600;
  129. height: auto;
  130. display: inline-block;
  131. vertical-align: sub;
  132. }
  133. .bold {font-weight: bold;}
  134. .w-600 {font-weight: 600;}
  135. .horizontalDividingLine {
  136. height: 1px;
  137. color: #EDEDED;
  138. width: 100%;
  139. }
  140. // 高亮
  141. .default-active {
  142. color: var(--v-primary-base) !important;
  143. }
  144. .border-bottom-dashed {
  145. border-bottom: 1px dashed var(--color-ccc);
  146. }
  147. .white-bgc {
  148. background-color: #fff;
  149. }
  150. .ellipsis {
  151. white-space: nowrap;
  152. text-overflow: ellipsis;
  153. overflow: hidden;
  154. }
  155. .head-box {
  156. .head-title {
  157. min-width: 160rpx;
  158. font-size: 36rpx;
  159. font-weight: bold;
  160. color: #333333;
  161. line-height: 36rpx;
  162. }
  163. .head-title-active {
  164. width: 160rpx;
  165. font-size: 32rpx;
  166. font-weight: 600;
  167. color: #999;
  168. line-height: 36rpx;
  169. }
  170. .head-title-animation {
  171. animation-name: title-animation;
  172. animation-duration: 0.1s;
  173. animation-timing-function: ease-out;
  174. animation-fill-mode: forwards;
  175. }
  176. .head-title-line {
  177. position: relative;
  178. &::before {
  179. content: '';
  180. width: 1rpx;
  181. height: 34rpx;
  182. background-color: #e4e7ed;
  183. position: absolute;
  184. left: -30rpx;
  185. top: 50%;
  186. transform: translateY(-50%);
  187. }
  188. }
  189. .head-subtitle {
  190. font-size: 26rpx;
  191. font-weight: 400;
  192. color: #afb6c0;
  193. text-align: left;
  194. display: flex;
  195. }
  196. }
  197. /* ==================
  198. margin padding: 内外边距
  199. ==================== */
  200. @for $i from 0 through 100 {
  201. // 只要双数和能被5除尽的数
  202. @if $i % 2==0 or $i % 5==0 {
  203. // 得出:u-margin-30或者u-m-30
  204. .ss-margin-#{$i},
  205. .ss-m-#{$i} {
  206. margin: $i + rpx;
  207. }
  208. .ss-m-x-#{$i} {
  209. margin-left: $i + rpx;
  210. margin-right: $i + rpx;
  211. }
  212. .ss-m-y-#{$i} {
  213. margin-top: $i + rpx;
  214. margin-bottom: $i + rpx;
  215. }
  216. // 得出:u-padding-30或者u-p-30
  217. .ss-padding-#{$i},
  218. .ss-p-#{$i} {
  219. padding: $i + rpx;
  220. }
  221. .ss-p-x-#{$i} {
  222. padding-left: $i + rpx;
  223. padding-right: $i + rpx;
  224. }
  225. .ss-p-y-#{$i} {
  226. padding-top: $i + rpx;
  227. padding-bottom: $i + rpx;
  228. }
  229. @each $short, $long in l left, t top, r right, b bottom {
  230. // 缩写版,结果如: u-m-l-30
  231. // 定义外边距
  232. .ss-m-#{$short}-#{$i} {
  233. margin-#{$long}: $i + rpx;
  234. }
  235. // 定义内边距
  236. .ss-p-#{$short}-#{$i} {
  237. padding-#{$long}: $i + rpx;
  238. }
  239. // 完整版,结果如:u-margin-left-30
  240. // 定义外边距
  241. .ss-margin-#{$long}-#{$i} {
  242. margin-#{$long}: $i + rpx;
  243. }
  244. // 定义内边距
  245. .ss-padding-#{$long}-#{$i} {
  246. padding-#{$long}: $i + rpx;
  247. }
  248. }
  249. }
  250. }
  251. /* ==================
  252. radius
  253. ==================== */
  254. @for $i from 0 through 100 {
  255. // 只要双数和能被5除尽的数
  256. @if $i % 2==0 or $i % 5==0 {
  257. .ss-radius-#{$i},
  258. .ss-r-#{$i} {
  259. border-radius: $i + rpx;
  260. }
  261. .ss-r-t-#{$i} {
  262. border-top-left-radius: $i + rpx;
  263. border-top-right-radius: $i + rpx;
  264. }
  265. .ss-r-b-#{$i} {
  266. border-bottom-left-radius: $i + rpx;
  267. border-bottom-right-radius: $i + rpx;
  268. }
  269. @each $short, $long in tl 'top-left', tr 'top-right', bl 'bottom-right', br 'bottom-right' {
  270. // 定义外边距
  271. .ss-r-#{$short}-#{$i} {
  272. border-#{$long}-radius: $i + rpx;
  273. }
  274. // 定义内边距
  275. .ss-radius-#{$long}-#{$i} {
  276. border-#{$long}-radius: $i + rpx;
  277. }
  278. }
  279. }
  280. }
  281. /* ==================
  282. flex布局
  283. ==================== */
  284. .ss-flex {
  285. display: flex;
  286. flex-direction: row;
  287. align-items: center;
  288. }
  289. .ss-flex-1 {
  290. flex: 1;
  291. }
  292. .ss-flex-col {
  293. display: flex;
  294. flex-direction: column;
  295. }
  296. .ss-flex-wrap {
  297. flex-wrap: wrap;
  298. }
  299. .ss-flex-nowrap {
  300. flex-wrap: nowrap;
  301. }
  302. .ss-col-center {
  303. align-items: center;
  304. }
  305. .ss-col-top {
  306. align-items: flex-start;
  307. }
  308. .ss-col-bottom {
  309. align-items: flex-end;
  310. }
  311. .ss-col-stretch {
  312. align-items: stretch;
  313. }
  314. .ss-row-center {
  315. justify-content: center;
  316. }
  317. .ss-row-left {
  318. justify-content: flex-start;
  319. }
  320. .ss-row-right {
  321. justify-content: flex-end;
  322. }
  323. .ss-row-between {
  324. justify-content: space-between;
  325. }
  326. .ss-row-around {
  327. justify-content: space-around;
  328. }
  329. .ss-self-start {
  330. align-self: flex-start;
  331. }
  332. .ss-self-end {
  333. align-self: flex-end;
  334. }
  335. .ss-self-center {
  336. align-self: center;
  337. }
  338. .ss-h-100 {
  339. height: 100%;
  340. }
  341. .ss-w-100 {
  342. width: 100%;
  343. }
  344. /* ==================
  345. 按钮
  346. ==================== */
  347. .ss-reset-button {
  348. padding: 0;
  349. margin: 0;
  350. font-size: inherit;
  351. background-color: transparent;
  352. color: inherit;
  353. position: relative;
  354. border: 0rpx;
  355. /* #ifndef APP-NVUE */
  356. display: flex;
  357. /* #endif */
  358. align-items: center;
  359. justify-content: center;
  360. box-sizing: border-box;
  361. text-align: center;
  362. text-decoration: none;
  363. white-space: nowrap;
  364. vertical-align: baseline;
  365. transform: translate(0, 0);
  366. }
  367. .ss-reset-button.button-hover {
  368. transform: translate(1px, 1px);
  369. background: none;
  370. }
  371. .ss-reset-button::after {
  372. border: none;
  373. }
  374. .login-btn-start {
  375. width: 158rpx;
  376. height: 56rpx;
  377. line-height: normal;
  378. background: #00B760;
  379. border-radius: 28rpx;
  380. font-size: 26rpx;
  381. font-weight: 500;
  382. color: #fff;
  383. }
  384. //页面底部单个按钮
  385. .recomm-button {
  386. color: #fff;
  387. width: 85%;
  388. height: 44px;
  389. line-height: 44px;
  390. margin: 20px auto;
  391. background-color: #00B760 !important;
  392. // border-radius: 25px;
  393. }
  394. //页面底部两个按钮
  395. .second-button {
  396. width: 50vw;
  397. height: 44px;
  398. margin: 15px;
  399. color: #fff;
  400. background-color: #00B760 !important;
  401. // border-radius: 25px;
  402. }
  403. .second-button:first-child {
  404. margin: 15px 0 15px 15px;
  405. }
  406. //底部按钮公用定位
  407. .bottom-sticky{
  408. display: flex;
  409. width:100vw;
  410. position: fixed;
  411. bottom:0;
  412. left: 0;
  413. background-color: #fff;
  414. // background-image:linear-gradient(rgba(255,255,255,0.8),white);
  415. }
  416. // 主要页面大按钮用这个
  417. .send-button {
  418. width: 90vw;
  419. height:44px;
  420. line-height: 44px;
  421. margin:20px auto;
  422. background-color: #00B760 !important;
  423. // border-radius: 25px;
  424. color: #fff;
  425. }
  426. .main-button-color {
  427. background-color: #00B760 !important;
  428. color: #fff;
  429. }
  430. .commonBtnStyle {
  431. width: 45vw;
  432. height: 44px;
  433. line-height: 44px;
  434. color: #fff;
  435. }
  436. .save-button {
  437. margin: 20px 0 20px 20px;
  438. background-color: #00B760 !important;
  439. }
  440. .delete-button {
  441. margin: 20px auto;
  442. color: #FE574A !important;
  443. background-color: #fff !important;
  444. border: 1px solid #FE574A;
  445. }
  446. //禁用按钮
  447. .disabled-button {
  448. width: 85%;
  449. height: 44px;
  450. line-height: 44px;
  451. margin: 20px auto;
  452. background-color: grey !important;
  453. // border-radius: 25px;
  454. }
  455. .big-cancel-button {
  456. width: 90vw;
  457. height:44px;
  458. line-height: 44px;
  459. margin:20px auto;
  460. background-color: #fff !important;
  461. color: #b3aeae;
  462. font-size: 28rpx;
  463. }
  464. // 头像
  465. .r-avatar {
  466. width: 40px;
  467. height: 40px;
  468. border-radius: 50%;
  469. // margin: 25rpx;
  470. }
  471. .avatar{
  472. width: 80px;
  473. height: 80px;
  474. border-radius: 50%;
  475. margin: auto;
  476. }
  477. .r-avatar-small {
  478. width: 25px;
  479. height: 25px;
  480. border-radius: 50%;
  481. margin: 20rpx;
  482. }
  483. .title-des {
  484. color: #3f424f;
  485. font-size: 19px;
  486. margin: 10px 0;
  487. }
  488. .scrollBox{
  489. height: 100%;
  490. }
  491. .uni-forms-item__content {
  492. max-width: 100% !important;
  493. // overflow: hidden !important;
  494. }
  495. .uni-select__input-box {
  496. width: 100%;
  497. }