app.scss 2.7 KB

1234567891011121314151617181920212223242526272829303132
  1. page, body { margin: 0; background: #fff; color: #1b1d30; font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif; -webkit-font-smoothing: antialiased; }
  2. view, button, input, scroll-view, taro-view-core, taro-button-core, taro-input-core { box-sizing: border-box; }
  3. button::after, taro-button-core::after { border: 0; }
  4. .workbench-card::after, .settings-row::after, .notification-button::after,
  5. .sheet-close::after, .primary-button::after, .logout-button::after { border: 0; pointer-events: none; }
  6. .workbench-card, .settings-row { margin: 0; }
  7. button, taro-button-core { -webkit-tap-highlight-color: transparent; }
  8. .home-page, .profile-page { min-height: 100%; background: #fff; }
  9. .safe-top { background: white; }
  10. .purple-header { position: relative; overflow: hidden; color: white; background: linear-gradient(112deg, #7d2cef 0%, #9155f3 55%, #ab88fa 100%); }
  11. .purple-header::before, .purple-header::after { content: ''; position: absolute; border-radius: 50%; pointer-events: none; background: rgba(255, 255, 255, .055); }
  12. .purple-header::before { width: 300px; height: 300px; left: -120px; top: 10px; }
  13. .purple-header::after { width: 410px; height: 410px; right: -150px; top: -145px; }
  14. .sheet-layer { position: fixed; inset: 0; z-index: 9999; }
  15. .sheet-backdrop { position: absolute; inset: 0; background: rgba(25, 16, 44, .36); }
  16. .sheet-panel { position: absolute; bottom: 0; left: 0; right: 0; max-height: 85vh; border-radius: 36px 36px 0 0; background: #fff; padding: 18px 36px calc(36px + env(safe-area-inset-bottom)); }
  17. .sheet-handle { width: 62px; height: 7px; margin: 0 auto 24px; border-radius: 7px; background: #e8e3ee; }
  18. .sheet-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
  19. .sheet-title { font-weight: 700; font-size: 34px; }
  20. .sheet-close { margin: 0; padding: 0; width: 60px; height: 60px; display: flex; align-items: center; justify-content: center; color: #8d8599; font-size: 46px; background: #f7f4fb; border-radius: 50%; line-height: 1; }
  21. .sheet-body { max-height: 62vh; }
  22. .detail-title { font-size: 27px; font-weight: 600; line-height: 1.5; }
  23. .muted-copy { font-size: 24px; color: #92909b; line-height: 1.6; }
  24. .demo-note { font-size: 22px; line-height: 1.7; color: #a39aaa; }
  25. .primary-button { width: 100%; padding: 23px; border-radius: 20px; background: linear-gradient(110deg, #8436f3, #a371fa); color: white; font-size: 28px; line-height: 1.5; }
  26. /* Keep the H5 preview useful on a desktop without adding a phone frame. */
  27. @media (min-width: 600px) {
  28. body { background: #f1eef7; }
  29. #app { max-width: 480px; min-height: 100vh; margin: 0 auto; background: #fff; }
  30. .taro-tabbar__tabbar { max-width: 480px; margin: 0 auto; left: 0; right: 0; }
  31. .sheet-panel { max-width: 480px; margin: 0 auto; }
  32. }