From 42150877a3b44080c145710610f5ca9f79c688ca Mon Sep 17 00:00:00 2001 From: ray <1490493387@qq.com> Date: Fri, 18 Oct 2024 21:49:51 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20:recycle:=20=E7=99=BB=E5=BD=95?= =?UTF-8?q?=E9=A1=B5=E6=A0=B7=E5=BC=8F=E5=86=99=E6=B3=95=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/styles/login.scss | 103 ------------- src/views/login/index.vue | 296 +++++++++++++++++++++++++++----------- 2 files changed, 215 insertions(+), 184 deletions(-) delete mode 100644 src/styles/login.scss diff --git a/src/styles/login.scss b/src/styles/login.scss deleted file mode 100644 index 3f4f382c..00000000 --- a/src/styles/login.scss +++ /dev/null @@ -1,103 +0,0 @@ -.login-container { - display: flex; - align-items: center; - justify-content: center; - width: 100%; - height: 100%; - overflow-y: auto; - background: url("@/assets/images/login-background-light.jpg") no-repeat center - right; - - .login-content { - display: flex; - width: 100%; - min-width: 400px; - max-width: 850px; - overflow: hidden; - background-color: #fff; - border-radius: 5px; - box-shadow: var(--el-box-shadow-light); - - @media (width <= 768px) { - flex-direction: column; - max-width: 100%; - height: 100vh; - border-radius: 0; - box-shadow: none; - } - - .login-image { - display: flex; - flex: 3; - align-items: center; - justify-content: center; - background: linear-gradient(60deg, #165dff, #6aa1ff); - - @media (width <= 768px) { - display: none; - } - } - - .login-box { - display: flex; - flex: 2; - flex-direction: column; - justify-content: center; - min-width: 400px; - padding: 30px; - - @media (width <= 768px) { - width: 100%; - } - } - - .input-wrapper { - display: flex; - align-items: center; - width: 100%; - } - - .captcha-image { - height: 48px; - cursor: pointer; - border-top-right-radius: 6px; - border-bottom-right-radius: 6px; - } - } - - .el-form-item { - background: var(--el-input-bg-color); - border: 1px solid var(--el-border-color); - border-radius: 5px; - } - - .el-input { - .el-input__wrapper { - padding: 0; - background-color: transparent; - box-shadow: none; - - &.is-focus, - &:hover { - box-shadow: none !important; - } - - input:-webkit-autofill { - /* 通过延时渲染背景色变相去除背景颜色 */ - transition: background-color 1000s ease-in-out 0s; - } - } - } -} - -html.dark { - .login-container { - background: url("@/assets/images/login-background-dark.jpg") no-repeat - center right; - - .login-content { - background: transparent; - box-shadow: var(--el-box-shadow); - } - } -} diff --git a/src/views/login/index.vue b/src/views/login/index.vue index 0dd4ff9d..ecb49c83 100644 --- a/src/views/login/index.vue +++ b/src/views/login/index.vue @@ -1,11 +1,10 @@ - + @@ -125,7 +119,7 @@ @@ -152,79 +146,62 @@ {{ $t("login.login") }} - - {{ $t("login.otherLoginMethods") }} - - -
- - - - + + {{ $t("login.otherLoginMethods") }} + +
- -
-

+ +

- +