app.component.scss 921 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. .app-container {
  2. width: 100%;
  3. height: 100vh;
  4. position: relative;
  5. overflow-y: auto;
  6. display: flex;
  7. flex-direction: column;
  8. }
  9. // 路由内容区域
  10. router-outlet {
  11. flex: 1;
  12. display: block;
  13. width: 100%;
  14. }
  15. // 底部导航栏容器
  16. .bottom-navigation-container {
  17. position: fixed;
  18. bottom: 0;
  19. left: 0;
  20. right: 0;
  21. z-index: 1000;
  22. background: white;
  23. border-top: 1px solid rgba(0, 0, 0, 0.1);
  24. box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  25. }
  26. // 全局容器样式
  27. :host {
  28. display: block;
  29. width: 100%;
  30. height: 100vh;
  31. margin: 0;
  32. padding: 0;
  33. font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
  34. background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  35. }
  36. // 移动端适配
  37. @media (max-width: 768px) {
  38. .app-container {
  39. height: 100vh;
  40. overflow-y: auto;
  41. }
  42. .bottom-navigation-container {
  43. padding-bottom: env(safe-area-inset-bottom);
  44. }
  45. }