index.scss 10 KB

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