global.scss 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. page {
  2. min-height: 100%;
  3. background: #f5f6f7;
  4. color: #1f2329;
  5. font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  6. font-size: 28rpx;
  7. }
  8. :root, page {
  9. --theme-color: #1677ff;
  10. --page-bg: #f5f6f7;
  11. --border-color: #e3e5e5;
  12. --tabbar-color: #908f8f;
  13. }
  14. view, text, input, textarea, button, scroll-view { box-sizing: border-box; }
  15. button { margin: 0; padding: 0; border: 0; background: none; line-height: normal; }
  16. button::after { border: 0; }
  17. .page { min-height: 100vh; background: #f5f6f7; padding-bottom: calc(120rpx + env(safe-area-inset-bottom)); }
  18. .page-no-tab { min-height: 100vh; background: #f5f6f7; padding-bottom: calc(40rpx + env(safe-area-inset-bottom)); }
  19. .card { background: #fff; border-radius: 20rpx; }
  20. .section { margin: 24rpx; }
  21. .section-title {
  22. display: flex; align-items: center; justify-content: space-between;
  23. margin: 34rpx 24rpx 18rpx; font-size: 32rpx; font-weight: 600;
  24. }
  25. .section-more { color: #8b939f; font-size: 26rpx; font-weight: 400; }
  26. .divider { height: 1rpx; background: #edf0f2; margin-left: 30rpx; }
  27. .muted { color: #8b939f; }
  28. .primary { color: #1677ff; }
  29. .success { color: #07c160; }
  30. .warning { color: #f59a23; }
  31. .danger { color: #ee4d4d; }
  32. .status-tag { display: inline-flex; padding: 6rpx 14rpx; border-radius: 999rpx; font-size: 22rpx; }
  33. .status-pending { color: #d9780b; background: #fff5e7; }
  34. .status-approved { color: #07893f; background: #eaf8ef; }
  35. .status-rejected { color: #d73a49; background: #fff0f0; }
  36. .primary-btn {
  37. height: 92rpx; border-radius: 12rpx; background: #1677ff; color: #fff;
  38. display: flex; align-items: center; justify-content: center; font-size: 32rpx; font-weight: 500;
  39. }
  40. .ghost-btn {
  41. height: 86rpx; border-radius: 12rpx; border: 1rpx solid #d8dce2; background: #fff; color: #4b5563;
  42. display: flex; align-items: center; justify-content: center; font-size: 30rpx;
  43. }
  44. .safe-bottom { padding-bottom: env(safe-area-inset-bottom); }
  45. .avatar {
  46. display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  47. border-radius: 12rpx; background: linear-gradient(145deg, #64a9ff, #1677ff); color: #fff; font-weight: 600;
  48. }
  49. .press:active { opacity: .7; }
  50. @media (min-width: 800px) {
  51. #app { max-width: 520px; margin: 0 auto; box-shadow: 0 0 30px rgba(15, 23, 42, .08); min-height: 100vh; }
  52. }