content.css 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /* 重置页面布局 - 移除全局overflow限制 */
  2. html,
  3. body {
  4. margin: 0 !important;
  5. padding: 0 !important;
  6. width: 100% !important;
  7. height: 100% !important;
  8. }
  9. /* 主内容区域 */
  10. #paiwise-main-wrapper {
  11. position: fixed !important;
  12. top: 0 !important;
  13. left: 0 !important;
  14. width: 100% !important;
  15. height: 100vh !important;
  16. overflow-y: auto !important;
  17. overflow-x: hidden !important;
  18. transition: all 0.3s ease-in-out !important;
  19. }
  20. /* 侧边栏 */
  21. #paiwise-sidebar {
  22. position: fixed !important;
  23. top: 0 !important;
  24. right: -400px !important;
  25. width: 400px !important;
  26. height: 100vh !important;
  27. background: #fff !important;
  28. border: none !important;
  29. box-shadow: -4px 0 16px rgba(0, 0, 0, 0.08) !important;
  30. z-index: 2147483647 !important;
  31. transition: transform 0.3s ease-in-out !important;
  32. }
  33. /* 侧边栏显示状态 */
  34. #paiwise-sidebar.show {
  35. transform: translateX(-400px) !important;
  36. box-shadow: -8px 0 24px rgba(0, 0, 0, 0.12) !important;
  37. }
  38. /* 主内容区域在侧边栏显示时的状态 */
  39. body.sidebar-open #paiwise-main-wrapper {
  40. width: calc(100% - 400px) !important; /* 自动计算宽度 */
  41. }
  42. /* 移除所有动画关键帧,使用transform实现动画 */