style: 优化UI过渡效果与主题样式
This commit is contained in:
@@ -162,24 +162,18 @@ const renderMenu = (item) => {
|
||||
|
||||
<style scoped>
|
||||
.sidebar {
|
||||
background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.98) 100%);
|
||||
backdrop-filter: blur(24px);
|
||||
border-right: 1px solid rgba(0, 0, 0, 0.06);
|
||||
transition: width 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
|
||||
background: #ffffff;
|
||||
border-right: 1px solid #e4e7ed;
|
||||
transition: width 0.25s ease;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
box-shadow: 2px 0 12px rgba(0, 0, 0, 0.03);
|
||||
position: relative;
|
||||
z-index: 10;
|
||||
}
|
||||
|
||||
.sidebar.is-collapsed {
|
||||
box-shadow: 4px 0 16px rgba(0, 0, 0, 0.04);
|
||||
}
|
||||
|
||||
.dark-theme .sidebar {
|
||||
background: linear-gradient(180deg, rgba(23, 23, 39, 0.98) 0%, rgba(18, 18, 32, 0.98) 100%);
|
||||
border-right: 1px solid rgba(255, 255, 255, 0.08);
|
||||
background: #1e1e2f;
|
||||
border-right: 1px solid #2c2c3d;
|
||||
}
|
||||
|
||||
.sidebar-header {
|
||||
@@ -188,9 +182,9 @@ const renderMenu = (item) => {
|
||||
justify-content: space-between;
|
||||
padding: 1rem;
|
||||
flex-shrink: 0;
|
||||
border-bottom: 1px solid rgba(0, 0, 0, 0.04);
|
||||
border-bottom: 1px solid #e4e7ed;
|
||||
min-height: 64px;
|
||||
transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
|
||||
transition: padding 0.25s ease;
|
||||
}
|
||||
|
||||
.sidebar.is-collapsed .sidebar-header {
|
||||
@@ -236,7 +230,7 @@ const renderMenu = (item) => {
|
||||
}
|
||||
|
||||
.action-btn {
|
||||
transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
|
||||
transition: transform 0.2s ease, color 0.2s ease;
|
||||
}
|
||||
|
||||
.toggle-btn .el-icon {
|
||||
@@ -248,7 +242,7 @@ const renderMenu = (item) => {
|
||||
}
|
||||
|
||||
.fade-enter-active, .fade-leave-active {
|
||||
transition: opacity 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
|
||||
transition: opacity 0.2s ease, transform 0.2s ease;
|
||||
}
|
||||
|
||||
.fade-enter-from, .fade-leave-to {
|
||||
@@ -270,7 +264,6 @@ const renderMenu = (item) => {
|
||||
overflow-y: auto;
|
||||
overflow-x: hidden;
|
||||
padding: 0.75rem 0.25rem;
|
||||
transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
|
||||
}
|
||||
|
||||
.el-menu::-webkit-scrollbar {
|
||||
@@ -299,7 +292,6 @@ const renderMenu = (item) => {
|
||||
letter-spacing: 1.2px;
|
||||
padding: 0.75rem 1rem 0.5rem;
|
||||
opacity: 0.6;
|
||||
transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
|
||||
}
|
||||
|
||||
.sidebar.is-collapsed .section-title {
|
||||
@@ -308,9 +300,8 @@ const renderMenu = (item) => {
|
||||
|
||||
.menu-footer {
|
||||
margin-top: auto;
|
||||
border-top: 1px solid rgba(0, 0, 0, 0.04);
|
||||
border-top: 1px solid #e4e7ed;
|
||||
padding-top: 0.75rem;
|
||||
transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
|
||||
}
|
||||
|
||||
.dark-theme .menu-footer {
|
||||
@@ -323,7 +314,7 @@ const renderMenu = (item) => {
|
||||
border-radius: 12px;
|
||||
margin: 2px 0.5rem;
|
||||
color: var(--text-color-secondary);
|
||||
transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
|
||||
transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
@@ -389,13 +380,12 @@ const renderMenu = (item) => {
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
padding: 4px;
|
||||
background: rgba(0, 0, 0, 0.04);
|
||||
background: #f5f7fa;
|
||||
border-radius: 8px;
|
||||
backdrop-filter: blur(8px);
|
||||
}
|
||||
|
||||
.dark-theme .menu-item-actions {
|
||||
background: rgba(255, 255, 255, 0.08);
|
||||
background: #2c2c3d;
|
||||
}
|
||||
|
||||
.el-menu:not(.el-menu--collapse) .el-menu-item:hover .menu-item-actions,
|
||||
@@ -414,7 +404,7 @@ const renderMenu = (item) => {
|
||||
color: var(--text-color-secondary);
|
||||
padding: 6px;
|
||||
border-radius: 6px;
|
||||
transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
|
||||
transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
|
||||
}
|
||||
|
||||
.edit-icon:hover {
|
||||
|
||||
Reference in New Issue
Block a user