index.scss 10 KB

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