index.scss 10 KB

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