style(theme): 更新各主题logo及顶部栏样式,统一白底阴影效果

- 所有主题的 avue-logo 背景改为白色,并添加 0 2px 8px rgba(0,0,0,0.06) 阴影效果
- 各主题顶部栏背景及文字颜色调整,提升整体对比度与视觉统一性
- 统一调整下拉菜单、面包屑、图标等元素颜色为 rgba(0,0,0,0.85) 或 0.65,增强易读性
- 修正部分输入框和色彩选择器的边框及背景颜色,增强一致性
- index.html 添加 favicon.ico 作为页面图标
- 新增图标悬停显示浅灰圆形背景效果示例页面 icon-hover-demo.html
- icon-hover-demo.html 包含核心 CSS 代码和 Element Plus 的示例用法,方便复用和参考
This commit is contained in:
2026-07-31 19:51:25 +08:00
parent 7f01b119b5
commit 71dd52c650
3 changed files with 34 additions and 5 deletions

View File

@@ -33,9 +33,9 @@
<top-logs></top-logs>
</div>
<div class="top-user">
<img class="top-bar__img" :src="userInfo.avatar" alt=""/>
<el-dropdown :hide-on-click="false">
<span class="el-dropdown-link">
<el-dropdown :hide-on-click="false" trigger="hover">
<span class="el-dropdown-link top-user__trigger">
<img class="top-bar__img" :src="userInfo.avatar" alt="" />
{{ userInfo.real_name }}
<el-icon class="el-icon--right">
<arrow-down />
@@ -361,4 +361,22 @@ export default {
};
</script>
<style lang="scss" scoped></style>
<style lang="scss" scoped>
.top-user__trigger {
display: inline-flex;
align-items: center;
outline: none;
padding: 4px 8px;
border-radius: 4px;
transition: background-color 0.2s;
&:hover,
&:focus {
background-color: rgba(0, 0, 0, 0.04);
}
.top-bar__img {
margin: 0 5px 0 0;
}
}
</style>

View File

@@ -120,7 +120,7 @@
height: variables.$top_height;
margin: 0 7px;
font-size: 16px;
top: -2px;
top: -4px;
.el-badge__content.is-fixed {
top: 12px;