global.scss 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. $primary: #08264c;
  2. *, *::before, *::after { box-sizing: border-box; }
  3. // clip 限制横向溢出,同时保留页面纵向滚动,避免 H5 页面触底事件失效。
  4. html, body, #app, uni-app, uni-page, uni-page-wrapper, uni-page-body {
  5. width: 100%;
  6. max-width: 100%;
  7. margin: 0;
  8. overflow-x: clip;
  9. }
  10. page {
  11. min-height: 100%;
  12. background: #f3f6fa;
  13. color: #26364d;
  14. font-size: 28rpx;
  15. }
  16. view, text, input, textarea, button, scroll-view { box-sizing: border-box; }
  17. button { border-radius: 999rpx; }
  18. button::after { border: 0; }
  19. .page { min-height: 100vh; background: #f3f6fa; }
  20. .page-content { padding: 24rpx 24rpx calc(34rpx + env(safe-area-inset-bottom)); }
  21. .page-content.with-tabs { padding-top: 0; }
  22. .card {
  23. background: #fff;
  24. border-radius: 20rpx;
  25. box-shadow: 0 5rpx 22rpx rgba(37, 65, 96, 0.07);
  26. }
  27. .section-title {
  28. display: flex;
  29. align-items: center;
  30. margin: 30rpx 0 20rpx;
  31. font-size: 31rpx;
  32. font-weight: 650;
  33. color: #20324a;
  34. }
  35. .section-title::before {
  36. content: '';
  37. width: 7rpx;
  38. height: 30rpx;
  39. margin-right: 13rpx;
  40. border-radius: 7rpx;
  41. background: linear-gradient(180deg, #123f68, #08264c);
  42. }
  43. .muted { color: #8b99ab; }
  44. .link { color: $primary; }
  45. .primary-btn, .ghost-btn {
  46. height: 84rpx;
  47. border-radius: 999rpx;
  48. font-size: 30rpx;
  49. line-height: 84rpx;
  50. }
  51. .primary-btn { color: #fff; background: linear-gradient(135deg, #123f68, #08264c); box-shadow: 0 10rpx 24rpx rgba(8, 38, 76, .22); }
  52. .ghost-btn { color: #4e6075; background: #fff; border: 1rpx solid #dbe3ec; }
  53. .two-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 20rpx; margin-top: 30rpx; }
  54. .status-pill {
  55. display: inline-flex;
  56. align-items: center;
  57. justify-content: center;
  58. min-width: 90rpx;
  59. padding: 7rpx 17rpx;
  60. border-radius: 999rpx;
  61. color: #0d4c7d;
  62. background: #e8eff6;
  63. font-size: 23rpx;
  64. white-space: nowrap;
  65. }
  66. .status-pill.red { color: #d9363e; background: #fff0f0; }
  67. .status-pill.orange { color: #d66a06; background: #fff5e6; }
  68. .status-pill.teal { color: #087f8c; background: #e6f7f8; }
  69. .status-pill.green { color: #17875b; background: #e8f8ef; }
  70. .status-pill.gray { color: #718096; background: #eef2f6; }
  71. .status-pill.purple { color: #7057c7; background: #f0edff; }
  72. .empty-safe { height: env(safe-area-inset-bottom); }