index.scss 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552
  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. .ellipsis {
  156. white-space: nowrap;
  157. text-overflow: ellipsis;
  158. overflow: hidden;
  159. }
  160. .head-box {
  161. .head-title {
  162. min-width: 160rpx;
  163. font-size: 36rpx;
  164. font-weight: bold;
  165. color: #333333;
  166. line-height: 36rpx;
  167. }
  168. .head-title-active {
  169. width: 160rpx;
  170. font-size: 32rpx;
  171. font-weight: 600;
  172. color: #999;
  173. line-height: 36rpx;
  174. }
  175. .head-title-animation {
  176. animation-name: title-animation;
  177. animation-duration: 0.1s;
  178. animation-timing-function: ease-out;
  179. animation-fill-mode: forwards;
  180. }
  181. .head-title-line {
  182. position: relative;
  183. &::before {
  184. content: '';
  185. width: 1rpx;
  186. height: 34rpx;
  187. background-color: #e4e7ed;
  188. position: absolute;
  189. left: -30rpx;
  190. top: 50%;
  191. transform: translateY(-50%);
  192. }
  193. }
  194. .head-subtitle {
  195. font-size: 26rpx;
  196. font-weight: 400;
  197. color: #afb6c0;
  198. text-align: left;
  199. display: flex;
  200. }
  201. }
  202. /* ==================
  203. margin padding: 内外边距
  204. ==================== */
  205. @for $i from 0 through 100 {
  206. // 只要双数和能被5除尽的数
  207. @if $i % 2==0 or $i % 5==0 {
  208. // 得出:u-margin-30或者u-m-30
  209. .ss-margin-#{$i},
  210. .ss-m-#{$i} {
  211. margin: $i + rpx;
  212. }
  213. .ss-m-x-#{$i} {
  214. margin-left: $i + rpx;
  215. margin-right: $i + rpx;
  216. }
  217. .ss-m-y-#{$i} {
  218. margin-top: $i + rpx;
  219. margin-bottom: $i + rpx;
  220. }
  221. // 得出:u-padding-30或者u-p-30
  222. .ss-padding-#{$i},
  223. .ss-p-#{$i} {
  224. padding: $i + rpx;
  225. }
  226. .ss-p-x-#{$i} {
  227. padding-left: $i + rpx;
  228. padding-right: $i + rpx;
  229. }
  230. .ss-p-y-#{$i} {
  231. padding-top: $i + rpx;
  232. padding-bottom: $i + rpx;
  233. }
  234. @each $short, $long in l left, t top, r right, b bottom {
  235. // 缩写版,结果如: u-m-l-30
  236. // 定义外边距
  237. .ss-m-#{$short}-#{$i} {
  238. margin-#{$long}: $i + rpx;
  239. }
  240. // 定义内边距
  241. .ss-p-#{$short}-#{$i} {
  242. padding-#{$long}: $i + rpx;
  243. }
  244. // 完整版,结果如:u-margin-left-30
  245. // 定义外边距
  246. .ss-margin-#{$long}-#{$i} {
  247. margin-#{$long}: $i + rpx;
  248. }
  249. // 定义内边距
  250. .ss-padding-#{$long}-#{$i} {
  251. padding-#{$long}: $i + rpx;
  252. }
  253. }
  254. }
  255. }
  256. /* ==================
  257. radius
  258. ==================== */
  259. @for $i from 0 through 100 {
  260. // 只要双数和能被5除尽的数
  261. @if $i % 2==0 or $i % 5==0 {
  262. .ss-radius-#{$i},
  263. .ss-r-#{$i} {
  264. border-radius: $i + rpx;
  265. }
  266. .ss-r-t-#{$i} {
  267. border-top-left-radius: $i + rpx;
  268. border-top-right-radius: $i + rpx;
  269. }
  270. .ss-r-b-#{$i} {
  271. border-bottom-left-radius: $i + rpx;
  272. border-bottom-right-radius: $i + rpx;
  273. }
  274. @each $short, $long in tl 'top-left', tr 'top-right', bl 'bottom-right', br 'bottom-right' {
  275. // 定义外边距
  276. .ss-r-#{$short}-#{$i} {
  277. border-#{$long}-radius: $i + rpx;
  278. }
  279. // 定义内边距
  280. .ss-radius-#{$long}-#{$i} {
  281. border-#{$long}-radius: $i + rpx;
  282. }
  283. }
  284. }
  285. }
  286. /* ==================
  287. flex布局
  288. ==================== */
  289. .ss-flex {
  290. display: flex;
  291. flex-direction: row;
  292. align-items: center;
  293. }
  294. .ss-flex-1 {
  295. flex: 1;
  296. }
  297. .ss-flex-col {
  298. display: flex;
  299. flex-direction: column;
  300. }
  301. .ss-flex-wrap {
  302. flex-wrap: wrap;
  303. }
  304. .ss-flex-nowrap {
  305. flex-wrap: nowrap;
  306. }
  307. .ss-col-center {
  308. align-items: center;
  309. }
  310. .ss-col-top {
  311. align-items: flex-start;
  312. }
  313. .ss-col-bottom {
  314. align-items: flex-end;
  315. }
  316. .ss-col-stretch {
  317. align-items: stretch;
  318. }
  319. .ss-row-center {
  320. justify-content: center;
  321. }
  322. .ss-row-left {
  323. justify-content: flex-start;
  324. }
  325. .ss-row-right {
  326. justify-content: flex-end;
  327. }
  328. .ss-row-between {
  329. justify-content: space-between;
  330. }
  331. .ss-row-around {
  332. justify-content: space-around;
  333. }
  334. .ss-self-start {
  335. align-self: flex-start;
  336. }
  337. .ss-self-end {
  338. align-self: flex-end;
  339. }
  340. .ss-self-center {
  341. align-self: center;
  342. }
  343. .ss-h-100 {
  344. height: 100%;
  345. }
  346. .ss-w-100 {
  347. width: 100%;
  348. }
  349. /* ==================
  350. 按钮
  351. ==================== */
  352. .ss-reset-button {
  353. padding: 0;
  354. margin: 0;
  355. font-size: inherit;
  356. background-color: transparent;
  357. color: inherit;
  358. position: relative;
  359. border: 0rpx;
  360. /* #ifndef APP-NVUE */
  361. display: flex;
  362. /* #endif */
  363. align-items: center;
  364. justify-content: center;
  365. box-sizing: border-box;
  366. text-align: center;
  367. text-decoration: none;
  368. white-space: nowrap;
  369. vertical-align: baseline;
  370. transform: translate(0, 0);
  371. }
  372. .ss-reset-button.button-hover {
  373. transform: translate(1px, 1px);
  374. background: none;
  375. }
  376. .ss-reset-button::after {
  377. border: none;
  378. }
  379. .login-btn-start {
  380. width: 158rpx;
  381. height: 56rpx;
  382. line-height: normal;
  383. background: #00B760;
  384. border-radius: 28rpx;
  385. font-size: 26rpx;
  386. font-weight: 500;
  387. color: #fff;
  388. }
  389. //页面底部单个按钮
  390. .recomm-button {
  391. color: #fff;
  392. width: 85%;
  393. height: 44px;
  394. line-height: 44px;
  395. margin: 20px auto;
  396. background-color: #00B760 !important;
  397. // border-radius: 25px;
  398. }
  399. //页面底部两个按钮
  400. .second-button {
  401. width: 50vw;
  402. height: 44px;
  403. margin: 15px;
  404. background-color: #00B760 !important;
  405. // border-radius: 25px;
  406. }
  407. .second-button:first-child {
  408. margin: 15px 0 15px 15px;
  409. }
  410. //底部按钮公用定位
  411. .bottom-sticky{
  412. display: flex;
  413. width:100vw;
  414. position: fixed;
  415. bottom:0;
  416. left: 0;
  417. background-image:linear-gradient(rgba(255,255,255,0.8),white);
  418. }
  419. // 主要页面大按钮用这个
  420. .send-button {
  421. width: 90vw;
  422. height:44px;
  423. line-height: 44px;
  424. margin:20px auto;
  425. background-color: #00B760 !important;
  426. // border-radius: 25px;
  427. color: #fff;
  428. }
  429. .main-button-color {
  430. background-color: #00B760 !important;
  431. color: #fff;
  432. }
  433. .commonBtnStyle {
  434. width: 45vw;
  435. height: 44px;
  436. line-height: 44px;
  437. color: #fff;
  438. }
  439. .save-button {
  440. margin: 20px 0 20px 20px;
  441. background-color: #00B760 !important;
  442. }
  443. .delete-button {
  444. margin: 20px auto;
  445. color: #FE574A !important;
  446. background-color: #fff !important;
  447. border: 1px solid #FE574A;
  448. }
  449. //禁用按钮
  450. .disabled-button {
  451. width: 85%;
  452. height: 44px;
  453. line-height: 44px;
  454. margin: 20px auto;
  455. background-color: grey !important;
  456. // border-radius: 25px;
  457. }
  458. .big-cancel-button {
  459. width: 90vw;
  460. height:44px;
  461. line-height: 44px;
  462. margin:20px auto;
  463. background-color: #fff !important;
  464. color: #b3aeae;
  465. font-size: 28rpx;
  466. }
  467. // 头像
  468. .r-avatar {
  469. width: 40px;
  470. height: 40px;
  471. border-radius: 50%;
  472. // margin: 25rpx;
  473. }
  474. .avatar{
  475. width: 80px;
  476. height: 80px;
  477. border-radius: 50%;
  478. margin: auto;
  479. }
  480. .r-avatar-small {
  481. width: 25px;
  482. height: 25px;
  483. border-radius: 50%;
  484. margin: 20rpx;
  485. }
  486. .title-des {
  487. color: #3f424f;
  488. font-size: 19px;
  489. margin: 10px 0;
  490. }
  491. .scrollBox{
  492. height: 100%;
  493. }