Files
tms-erp-web/src/styles/top.scss
赵忠林 4383e9956e style(top-bar): 给顶部状态栏标题区添加背景条以区分视觉层次
- 顶部状态栏 `.top-bar__title` 增加品牌色淡底背景和左侧主色竖条
- 文字颜色调整为深色,保持搜索框可读性
- 调整主题相关样式,处理 light 主题和 dark 主题下背景条效果差异
- 优化多个主题下 Logo 背景和文字颜色,提升整体视觉一致性
- 修改欢迎页背景颜色及相关元素颜色,增强视觉层次感
- 调整部分组件和布局的内边距与边框颜色,提升界面细节表现
- 隐藏顶部主题切换项,调整 hover 背景颜色以适应新视觉风格
2026-07-31 20:50:18 +08:00

172 lines
2.7 KiB
SCSS

@use './variables.scss' as variables;
.avue-top {
position: relative;
background-color: #fff;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
color: rgba(0, 0, 0, 0.85);
font-size: 28px;
height: variables.$top_height;
line-height: variables.$top_height;
box-sizing: border-box;
white-space: nowrap;
.el-menu-item {
i, span {
font-size: 13px;
}
}
}
.avue-breadcrumb {
height: 100%;
color: #fff;
i {
color: #fff;
font-size: 30px !important;
}
&--active {
transform: rotate(90deg);
}
}
.top-user {
margin-left: 20px;
display: flex;
align-items: center;
cursor: pointer;
}
.top-menu {
.el-menu-item {
padding: 0 10px;
border: none;
}
}
.top-search {
line-height: variables.$top_height;
position: absolute !important;
right: 200px;
top: 0;
width: 300px;
.el-input__wrapper {
font-size: 13px;
border: none;
box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
background-color: #fff;
border-radius: 4px;
}
.el-input__inner {
color: #303133;
}
}
.top-bar__img {
margin: 0 5px;
padding: 2px;
width: 30px;
height: 30px;
border-radius: 100%;
box-sizing: border-box;
border: 1px solid rgba(255, 255, 255, 0.5);
vertical-align: middle;
}
.top-bar__left,
.top-bar__right {
height: variables.$top_height;
position: absolute;
top: 0;
i {
line-height: variables.$top_height;
}
}
.top-bar__left {
left: 10px;
}
.top-bar__right {
right: 10px;
display: flex;
align-items: center;
color: #fff;
i,
.el-icon,
.el-dropdown,
.el-dropdown-link {
color: inherit;
}
.el-color-picker__trigger {
border-color: rgba(255, 255, 255, 0.4);
}
.el-color-picker__icon {
color: inherit;
}
}
.top-bar__item {
position: relative;
display: inline-block;
height: variables.$top_height;
margin: 0 7px;
font-size: 16px;
top: -4px;
.el-badge__content.is-fixed {
top: 12px;
right: 5px;
}
}
.top-bar__title {
height: 100%;
padding-left: 50px;
box-sizing: border-box;
// 顶部状态栏背景条:品牌色淡底 + 左侧主色竖条,与白色头部区分
background: #419eff;
//border-left: 4px solid #409eff;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-size: inherit;
font-weight: 500;
color: #fff;
}
.avue-logo {
height: variables.$top_height;
line-height: variables.$top_height;
background-color: #419eff;
font-size: 20px;
overflow: hidden;
box-sizing: border-box;
box-shadow: none;
color: #fff;
&_title {
display: block;
text-align: center;
font-weight: bold;
font-size: 20px;
color: inherit;
}
&_subtitle {
display: block;
text-align: center;
font-size: 18px;
font-weight: bold;
color: inherit;
}
}