1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- /* 基础样式 */
- html,
- body {
- margin: 0 !important;
- padding: 0 !important;
- overflow-x: hidden !important;
- }
- /* 页面包装器 */
- .page-wrapper {
- position: relative !important;
- width: 100% !important;
- transition: width 0.3s ease, margin-right 0.3s ease !important;
- }
- /* 当侧边栏打开时的页面包装器样式 */
- body.sidebar-open .page-wrapper {
- width: calc(100% - 400px) !important;
- margin-right: 400px !important;
- }
- /* 侧边栏 */
- #paiwise-sidebar {
- position: fixed !important;
- top: 0 !important;
- right: -400px !important;
- width: 400px !important;
- height: 100vh !important;
- background: #fff !important;
- box-shadow: -2px 0 8px rgba(0, 0, 0, 0.15) !important;
- z-index: 2147483647 !important;
- border: none !important;
- transition: right 0.3s ease !important;
- }
- /* 侧边栏显示状态 */
- #paiwise-sidebar.show {
- right: 0 !important;
- }
- /* 确保页面内容不会被侧边栏覆盖 */
- body.sidebar-open {
- overflow-x: hidden !important;
- }
- /* 确保所有页面元素都在包装器内部正确显示 */
- .page-wrapper > * {
- max-width: 100% !important;
- box-sizing: border-box !important;
- }
|