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:22:05 +08:00
parent c270258b7b
commit 368e027426
18 changed files with 223 additions and 57 deletions

View File

@@ -26,7 +26,8 @@
}
.avue-logo {
background: linear-gradient(90deg, #006cff, #399efd) !important;
background: #fff !important;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.avue-tags {

View File

@@ -1,7 +1,23 @@
.theme-bule {
.avue-top, .avue-logo {
background: #004ca7;
background: #fff;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
color: rgba(0, 0, 0, 0.85);
}
.avue-top {
.top-bar__right,
.avue-breadcrumb,
.top-bar__item,
.el-dropdown,
.el-dropdown-link {
color: rgba(0, 0, 0, 0.85);
i {
color: rgba(0, 0, 0, 0.65);
}
}
}
.avue-sidebar {
@@ -12,25 +28,21 @@
}
}
.el-dropdown {
color: #fff;
}
.avue-logo {
.avue-logo_title {
color: #fff;
color: rgba(0, 0, 0, 0.85);
}
}
.avue-breadcrumb {
i {
color: #fff;
color: rgba(0, 0, 0, 0.65);
}
}
.top-bar__item {
i {
color: #fff;
color: rgba(0, 0, 0, 0.65);
}
}
@@ -39,13 +51,13 @@
.el-menu-item {
i,
span {
color: #fff;
color: rgba(0, 0, 0, 0.85);
}
&:hover {
i,
span {
color: #fff;
color: var(--el-color-primary);
}
}
}

View File

@@ -34,7 +34,8 @@
}
.avue-top {
background: linear-gradient(120deg, #25aff3, #008ad3);
background: #fff;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.avue-tags {
@@ -62,7 +63,7 @@
.avue-logo {
background: #fff;
box-shadow: none;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.avue-sidebar--tip {
@@ -71,20 +72,20 @@
}
.el-dropdown {
color: #fff;
color: rgba(0, 0, 0, 0.85);
}
.avue-logo_title {
font-weight: 400;
color: #008ad3;
color: rgba(0, 0, 0, 0.85);
}
.logo_title,
.avue-breadcrumb {
color: #fff;
color: rgba(0, 0, 0, 0.85);
i {
color: #fff;
color: rgba(0, 0, 0, 0.65);
}
}
@@ -92,13 +93,13 @@
.el-menu-item {
i,
span {
color: #fff;
color: rgba(0, 0, 0, 0.85);
}
&:hover {
i,
span {
color: #fff;
color: var(--el-color-primary);
}
}
}
@@ -169,7 +170,7 @@
.top-bar__item {
i {
color: #fff;
color: rgba(0, 0, 0, 0.65);
}
}
}

View File

@@ -1,8 +1,8 @@
.theme-d2 {
.avue-logo {
color: var(--el-color-primary);
background-color: #ebf1f6;
box-shadow: none;
color: rgba(0, 0, 0, 0.85);
background-color: #fff;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
.avue-logo_title {
font-size: 20px;
@@ -11,8 +11,8 @@
}
.avue-top {
background-color: #ebf1f6;
box-shadow: none;
background-color: #fff;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.avue-main {

View File

@@ -33,7 +33,7 @@
.avue-logo {
background-color: #fff;
box-shadow: none;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
.avue-logo_title {
color: var(--el-color-primary);

View File

@@ -47,16 +47,17 @@
.theme-cool,
.theme-beautiful {
.avue-logo {
background: var(--el-color-primary) !important;
background-color: var(--el-color-primary) !important;
color: #fff;
background: #fff !important;
background-color: #fff !important;
color: rgba(0, 0, 0, 0.85);
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
.avue-logo_title,
.avue-logo_subtitle,
.logo-title {
color: #fff;
color: rgba(0, 0, 0, 0.85);
background-image: none;
-webkit-text-fill-color: #fff;
-webkit-text-fill-color: rgba(0, 0, 0, 0.85);
}
}
}

View File

@@ -1,7 +1,7 @@
.theme-iview {
.avue-logo {
background: #001529;
box-shadow: none;
background: #fff;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
text-align: center;
.avue-logo_title {

View File

@@ -1,11 +1,12 @@
.theme-lte {
.avue-logo {
background-color: var(--el-color-primary);
background-color: #fff;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
.avue-logo_title {
font-weight: 500;
font-size: 20px;
color: #fff;
color: rgba(0, 0, 0, 0.85);
}
}

View File

@@ -36,7 +36,8 @@
.avue-top,
.avue-logo,
.tags-container {
background-color: var(--el-color-primary);
background-color: #fff;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.avue-sidebar--tip {
@@ -45,20 +46,20 @@
}
.el-dropdown {
color: #fff;
color: rgba(0, 0, 0, 0.85);
}
.avue-logo_title {
font-weight: 400;
color: #fff;
color: rgba(0, 0, 0, 0.85);
}
.logo_title,
.avue-breadcrumb {
color: #fff;
color: rgba(0, 0, 0, 0.85);
i {
color: #fff;
color: rgba(0, 0, 0, 0.65);
}
}
@@ -66,13 +67,13 @@
.el-menu-item {
i,
span {
color: #fff;
color: rgba(0, 0, 0, 0.85);
}
&:hover {
i,
span {
color: #fff;
color: var(--el-color-primary);
}
}
}
@@ -137,7 +138,7 @@
.top-bar__item {
i {
color: #fff;
color: rgba(0, 0, 0, 0.65);
}
}
}