style(components): 统一导航组件样式主题配置

- 面包屑组件引入变量样式并优化悬停效果
- 汉堡菜单按钮应用主题颜色和过渡动画
- 导航栏背景改为渐变色并调整阴影效果
- 用户头像添加边框和悬停高亮效果
- 下拉箭头图标应用主题颜色并增加交互反馈
- 所有组件统一使用主题变量替换硬编码颜色值
This commit is contained in:
2026-01-25 09:17:16 +08:00
parent 2b0b81f2a7
commit 89e2eb66ec
3 changed files with 63 additions and 9 deletions
@@ -70,15 +70,38 @@ export default {
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
@import "~@/assets/styles/variables";
.app-breadcrumb.el-breadcrumb { .app-breadcrumb.el-breadcrumb {
display: inline-block; display: inline-block;
font-size: 14px; font-size: 14px;
line-height: 50px; line-height: 50px;
margin-left: 8px; margin-left: 8px;
::v-deep .el-breadcrumb__item {
.el-breadcrumb__inner {
color: $menuText;
transition: all 0.3s ease;
&:hover {
color: $menuActiveText;
filter: drop-shadow(0 0 4px rgba(102, 255, 204, 0.3));
}
&.is-link {
font-weight: 500;
}
}
.el-breadcrumb__separator {
color: rgba(102, 255, 204, 0.4);
}
}
.no-redirect { .no-redirect {
color: #97a8be; color: $menuText;
cursor: text; cursor: text;
font-weight: 500;
} }
} }
</style> </style>
@@ -32,15 +32,25 @@ export default {
} }
</script> </script>
<style scoped> <style lang="scss" scoped>
@import "~@/assets/styles/variables";
.hamburger { .hamburger {
display: inline-block; display: inline-block;
vertical-align: middle; vertical-align: middle;
width: 20px; width: 20px;
height: 20px; height: 20px;
fill: $menuText;
transition: all 0.3s ease;
} }
.hamburger.is-active { .hamburger.is-active {
transform: rotate(180deg); transform: rotate(180deg);
fill: $menuActiveText;
filter: drop-shadow(0 0 6px $menuActiveText);
}
.hamburger:hover {
fill: $menuActiveText;
} }
</style> </style>
@@ -114,19 +114,25 @@ export default {
height: 50px; height: 50px;
overflow: hidden; overflow: hidden;
position: relative; position: relative;
background: #fff; background: linear-gradient(90deg, $menuBg 0%, #162035 100%);
box-shadow: 0 1px 4px rgba(0,21,41,.08); box-shadow: 0 2px 8px rgba(74, 144, 226, 0.15);
border-bottom: 1px solid rgba(74, 144, 226, 0.2);
.hamburger-container { .hamburger-container {
line-height: 46px; line-height: 46px;
height: 100%; height: 100%;
float: left; float: left;
cursor: pointer; cursor: pointer;
transition: background .3s; transition: all 0.3s ease;
-webkit-tap-highlight-color:transparent; -webkit-tap-highlight-color:transparent;
&:hover { &:hover {
background: rgba(0, 0, 0, .025) background: rgba(74, 144, 226, 0.1);
.hamburger {
color: $menuActiveText;
filter: drop-shadow(0 0 6px $menuActiveText);
}
} }
} }
@@ -153,15 +159,17 @@ export default {
padding: 0 8px; padding: 0 8px;
height: 100%; height: 100%;
font-size: 18px; font-size: 18px;
color: #5a5e66; color: $menuText;
vertical-align: text-bottom; vertical-align: text-bottom;
&.hover-effect { &.hover-effect {
cursor: pointer; cursor: pointer;
transition: background .3s; transition: all 0.3s ease;
&:hover { &:hover {
background: rgba(0, 0, 0, .025) background: rgba(74, 144, 226, 0.1);
color: $menuActiveText;
filter: drop-shadow(0 0 8px rgba(102, 255, 204, 0.3));
} }
} }
} }
@@ -178,6 +186,13 @@ export default {
width: 40px; width: 40px;
height: 40px; height: 40px;
border-radius: 10px; border-radius: 10px;
border: 2px solid rgba(102, 255, 204, 0.3);
transition: all 0.3s ease;
&:hover {
border-color: $menuActiveText;
box-shadow: 0 0 15px rgba(102, 255, 204, 0.4);
}
} }
.el-icon-caret-bottom { .el-icon-caret-bottom {
@@ -186,6 +201,12 @@ export default {
right: -20px; right: -20px;
top: 25px; top: 25px;
font-size: 12px; font-size: 12px;
color: $menuText;
transition: all 0.3s ease;
&:hover {
color: $menuActiveText;
}
} }
} }
} }