diff --git a/src/styles/index.scss b/src/styles/index.scss index fbe76f23..766f983e 100644 --- a/src/styles/index.scss +++ b/src/styles/index.scss @@ -1,5 +1,6 @@ @import './var.css'; @import './FormCreate/index.scss'; +@import './theme.scss'; @import 'element-plus/theme-chalk/dark/css-vars.css'; .reset-margin [class*='el-icon'] + span { diff --git a/src/styles/theme.scss b/src/styles/theme.scss index 39b03b3d..149002cf 100644 --- a/src/styles/theme.scss +++ b/src/styles/theme.scss @@ -4,3 +4,14 @@ // .dark .dark\:text-color { // color: rgba(255, 255, 255, var(--dark-text-color)); // } + +// 登录页 +.dark .login-form { + .el-divider__text { + background-color: var(--login-bg-color); + } + + .el-card { + background-color: var(--login-bg-color); + } +} diff --git a/src/views/Login/Login.vue b/src/views/Login/Login.vue index 5d349ce3..e1245757 100644 --- a/src/views/Login/Login.vue +++ b/src/views/Login/Login.vue @@ -5,7 +5,7 @@ >
@@ -27,7 +27,9 @@
-
+