From afdb893dcda349502b528812a1ba25795dd12baa Mon Sep 17 00:00:00 2001 From: Pan Date: Mon, 24 Dec 2018 17:51:05 +0800 Subject: [PATCH] refactor[login]: refactor login page style --- src/views/login/index.vue | 39 ++++++++++++++++++++------------------- 1 file changed, 20 insertions(+), 19 deletions(-) diff --git a/src/views/login/index.vue b/src/views/login/index.vue index bbd3287b..5e872595 100644 --- a/src/views/login/index.vue +++ b/src/views/login/index.vue @@ -39,19 +39,21 @@ {{ $t('login.logIn') }} -
- {{ $t('login.username') }} : admin - {{ $t('login.password') }} : {{ $t('login.any') }} -
-
- {{ $t('login.username') }} : editor - {{ $t('login.password') }} : {{ $t('login.any') }} -
+
+
+ {{ $t('login.username') }} : admin + {{ $t('login.password') }} : {{ $t('login.any') }} +
+
+ {{ $t('login.username') }} : editor + {{ $t('login.password') }} : {{ $t('login.any') }} +
- {{ $t('login.thirdparty') }} + {{ $t('login.thirdparty') }} +
- + {{ $t('login.thirdpartyTips') }}

@@ -213,18 +215,17 @@ $dark_gray:#889aa4; $light_gray:#eee; .login-container { - position: fixed; - height: 100%; + min-height: 100%; width: 100%; background-color: $bg; + overflow: hidden; .login-form { - position: absolute; - left: 0; - right: 0; + position: relative; width: 520px; max-width: 100%; - padding: 35px 35px 15px 35px; - margin: 120px auto; + padding: 160px 35px 0; + margin: 0 auto; + overflow: hidden; } .tips { font-size: 14px; @@ -270,8 +271,8 @@ $light_gray:#eee; } .thirdparty-button { position: absolute; - right: 35px; - bottom: 28px; + right: 0; + bottom: 6px; } }