|
@@ -1,4 +1,13 @@
|
|
|
-/* 创建一个包装器来控制主页面内容 */
|
|
|
+/* 重置页面布局 - 移除全局overflow限制 */
|
|
|
+html,
|
|
|
+body {
|
|
|
+ margin: 0 !important;
|
|
|
+ padding: 0 !important;
|
|
|
+ width: 100% !important;
|
|
|
+ height: 100% !important;
|
|
|
+}
|
|
|
+
|
|
|
+/* 主内容区域 */
|
|
|
#paiwise-main-wrapper {
|
|
|
position: fixed !important;
|
|
|
top: 0 !important;
|
|
@@ -7,67 +16,32 @@
|
|
|
height: 100vh !important;
|
|
|
overflow-y: auto !important;
|
|
|
overflow-x: hidden !important;
|
|
|
- transition: width 0.3s ease-in-out !important;
|
|
|
-}
|
|
|
-
|
|
|
-/* 当侧边栏打开时的主内容样式 */
|
|
|
-#paiwise-main-wrapper.sidebar-open {
|
|
|
- width: 75% !important;
|
|
|
+ transition: all 0.3s ease-in-out !important;
|
|
|
}
|
|
|
|
|
|
+/* 侧边栏 */
|
|
|
#paiwise-sidebar {
|
|
|
position: fixed !important;
|
|
|
top: 0 !important;
|
|
|
- right: -25% !important; /* 初始位置在屏幕外 */
|
|
|
- width: 25% !important;
|
|
|
+ right: -400px !important;
|
|
|
+ width: 400px !important;
|
|
|
height: 100vh !important;
|
|
|
- z-index: 2147483647 !important;
|
|
|
- border: none !important;
|
|
|
background: #fff !important;
|
|
|
- box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1) !important;
|
|
|
- transition: right 0.3s ease-in-out !important;
|
|
|
- opacity: 0;
|
|
|
- transform: translateX(20px);
|
|
|
+ border: none !important;
|
|
|
+ box-shadow: -4px 0 16px rgba(0, 0, 0, 0.08) !important;
|
|
|
+ z-index: 2147483647 !important;
|
|
|
+ transition: transform 0.3s ease-in-out !important;
|
|
|
}
|
|
|
|
|
|
-/* 当侧边栏显示时的样式 */
|
|
|
+/* 侧边栏显示状态 */
|
|
|
#paiwise-sidebar.show {
|
|
|
- right: 0 !important;
|
|
|
- opacity: 1;
|
|
|
- transform: translateX(0);
|
|
|
-}
|
|
|
-
|
|
|
-/* 隐藏原始滚动条 */
|
|
|
-body::-webkit-scrollbar {
|
|
|
- display: none !important;
|
|
|
-}
|
|
|
-
|
|
|
-body {
|
|
|
- margin: 0 !important;
|
|
|
- padding: 0 !important;
|
|
|
- overflow: hidden !important;
|
|
|
- height: 100vh !important;
|
|
|
+ transform: translateX(-400px) !important;
|
|
|
+ box-shadow: -8px 0 24px rgba(0, 0, 0, 0.12) !important;
|
|
|
}
|
|
|
|
|
|
-/* 添加动画关键帧 */
|
|
|
-@keyframes slideIn {
|
|
|
- from {
|
|
|
- opacity: 0;
|
|
|
- transform: translateX(20px);
|
|
|
- }
|
|
|
- to {
|
|
|
- opacity: 1;
|
|
|
- transform: translateX(0);
|
|
|
- }
|
|
|
+/* 主内容区域在侧边栏显示时的状态 */
|
|
|
+body.sidebar-open #paiwise-main-wrapper {
|
|
|
+ width: calc(100% - 400px) !important; /* 自动计算宽度 */
|
|
|
}
|
|
|
|
|
|
-@keyframes slideOut {
|
|
|
- from {
|
|
|
- opacity: 1;
|
|
|
- transform: translateX(0);
|
|
|
- }
|
|
|
- to {
|
|
|
- opacity: 0;
|
|
|
- transform: translateX(20px);
|
|
|
- }
|
|
|
-}
|
|
|
+/* 移除所有动画关键帧,使用transform实现动画 */
|