index.scss 10.0 KB

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