index.scss 9.3 KB

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