fix: 🐛 顶部模式滚动条,设置iconhover背景颜色优化

Former-commit-id: 8acf71d81560645ff0200109210b1fbe88183328
This commit is contained in:
hxr
2023-08-12 13:24:18 +08:00
parent 67e049bfcc
commit 1093c40e22
2 changed files with 12 additions and 6 deletions

View File

@@ -94,12 +94,12 @@ function logout() {
width: 30px; width: 30px;
height: 50px; height: 50px;
line-height: 50px; line-height: 50px;
color: #5a5e66; color: var(--el-text-color-regular);
text-align: center; text-align: center;
cursor: pointer; cursor: pointer;
&:hover { &:hover {
background: rgb(249 250 251 / 100%); background: var(--el-color-info-light-3);
} }
} }
} }

View File

@@ -131,22 +131,28 @@ function handleOutsideClick() {
// 导航栏顶部显示 // 导航栏顶部显示
.isTop { .isTop {
.sidebar-container { .sidebar-container {
z-index: 800;
display: flex;
width: 100% !important; width: 100% !important;
height: 50px; height: 50px;
display: flex;
z-index: 800;
:deep(.logo-wrap) { :deep(.logo-wrap) {
width: 210px; width: 210px;
} }
:deep(.el-scrollbar) { :deep(.el-scrollbar) {
flex: 1; flex: 1;
min-width: 0px; min-width: 0;
height: 50px; height: 50px;
} }
} }
.main-container { .main-container {
margin-left: 0px;
padding-top: 50px; padding-top: 50px;
margin-left: 0;
} }
// 顶部模式全局变量修改
--el-menu-item-height: 50px;
} }
</style> </style>