12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- /* 重置页面布局 - 移除全局overflow限制 */
- html,
- body {
- margin: 0 !important;
- padding: 0 !important;
- width: 100% !important;
- height: 100% !important;
- }
- /* 动画中状态 - 禁用页面滚动 */
- body.sidebar-animating {
- overflow: hidden !important;
- }
- /* 主内容区域 */
- #paiwise-main-wrapper {
- position: fixed !important;
- top: 0 !important;
- left: 0 !important;
- width: 100% !important;
- height: 100vh !important;
- overflow-y: auto !important;
- overflow-x: hidden !important;
- transition: width 0.3s ease-out !important;
- backface-visibility: hidden !important; /* 优化动画性能 */
- -webkit-font-smoothing: antialiased !important;
- }
- /* 侧边栏 */
- #paiwise-sidebar {
- position: fixed !important;
- top: 0 !important;
- right: 0 !important;
- width: 400px !important;
- height: 100vh !important;
- background: #fff !important;
- border: none !important;
- box-shadow: -4px 0 16px rgba(0, 0, 0, 0.08) !important;
- z-index: 2147483647 !important;
- transform: translateX(100%) !important;
- visibility: hidden !important;
- opacity: 0 !important;
- transition: transform 0.3s ease-out, visibility 0.3s, opacity 0.3s !important;
- }
- /* 侧边栏显示状态 */
- #paiwise-sidebar.show {
- transform: translateX(0) !important;
- visibility: visible !important;
- opacity: 1 !important;
- }
- /* 主内容区域在侧边栏显示时的状态 */
- body.sidebar-open #paiwise-main-wrapper {
- width: calc(100% - 400px) !important;
- }
- /* 移除所有动画关键帧,使用transform实现动画 */
|