diff --git a/web/pages/main.html b/web/pages/main.html index cc6dee9..45016f6 100644 --- a/web/pages/main.html +++ b/web/pages/main.html @@ -139,6 +139,30 @@ --danger: #f5222d; --success: #52c41a; } + + /* 侧边栏滑块动画 */ + .sidebar-slider { + position: absolute; + width: 4px; + height: 0; + background-color: var(--primary); + border-radius: 0 2px 2px 0; + transition: top 0.3s cubic-bezier(0.4, 0, 0.2, 1), + height 0.3s cubic-bezier(0.4, 0, 0.2, 1); + pointer-events: none; + z-index: 10; + } + + /* 菜单项相对定位 */ + .nav-item-wrapper { + position: relative; + } + + /* 选中项背景动画 */ + .nav-link { + position: relative; + z-index: 1; + } @@ -151,47 +175,66 @@ -