fix: 🐛 登录背景和导航栏图标样式问题修复
This commit is contained in:
@@ -143,12 +143,12 @@ function logout() {
|
|||||||
.layout-top .navbar__right--white > *,
|
.layout-top .navbar__right--white > *,
|
||||||
.layout-mix .navbar__right--white > * {
|
.layout-mix .navbar__right--white > * {
|
||||||
color: #fff;
|
color: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
// 强制所有svg图标为白色(包括通知图标)
|
// 添加更强力的选择器,确保能影响到深层嵌套的图标
|
||||||
:deep(svg) {
|
.layout-top .navbar__right--white :deep([class^="i-svg:"]),
|
||||||
color: #fff;
|
.layout-mix .navbar__right--white :deep([class^="i-svg:"]) {
|
||||||
fill: #fff;
|
color: #fff !important;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.dark .navbar__right > *:hover {
|
.dark .navbar__right > *:hover {
|
||||||
|
|||||||
@@ -64,7 +64,21 @@ const formComponents = {
|
|||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.login {
|
.login {
|
||||||
|
position: relative;
|
||||||
|
z-index: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
// 添加伪元素作为背景层
|
||||||
|
.login::before {
|
||||||
|
position: fixed;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
z-index: -1;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
content: "";
|
||||||
background: url("@/assets/images/login-bg.svg");
|
background: url("@/assets/images/login-bg.svg");
|
||||||
|
background-position: center center;
|
||||||
background-size: cover;
|
background-size: cover;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user