index.scss 9.6 KB

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