index.scss 10 KB

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