content.css 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /* 基础样式 */
  2. html,
  3. body {
  4. margin: 0 !important;
  5. padding: 0 !important;
  6. overflow-x: hidden !important;
  7. }
  8. /* 页面包装器 */
  9. .page-wrapper {
  10. position: relative !important;
  11. width: 100% !important;
  12. transition: width 0.3s ease, margin-right 0.3s ease !important;
  13. }
  14. /* 当侧边栏打开时的页面包装器样式 */
  15. body.sidebar-open .page-wrapper {
  16. width: calc(100% - 400px) !important;
  17. margin-right: 400px !important;
  18. }
  19. /* 侧边栏 */
  20. #paiwise-sidebar {
  21. position: fixed !important;
  22. top: 0 !important;
  23. right: -400px !important;
  24. width: 400px !important;
  25. height: 100vh !important;
  26. background: #fff !important;
  27. box-shadow: -2px 0 8px rgba(0, 0, 0, 0.15) !important;
  28. z-index: 2147483647 !important;
  29. border: none !important;
  30. transition: right 0.3s ease !important;
  31. }
  32. /* 侧边栏显示状态 */
  33. #paiwise-sidebar.show {
  34. right: 0 !important;
  35. }
  36. /* 确保页面内容不会被侧边栏覆盖 */
  37. body.sidebar-open {
  38. overflow-x: hidden !important;
  39. }
  40. /* 确保所有页面元素都在包装器内部正确显示 */
  41. .page-wrapper > * {
  42. max-width: 100% !important;
  43. box-sizing: border-box !important;
  44. }