diff --git a/apps/authentication/templates/authentication/login.html b/apps/authentication/templates/authentication/login.html index aea72a6ee..c09efb911 100644 --- a/apps/authentication/templates/authentication/login.html +++ b/apps/authentication/templates/authentication/login.html @@ -69,23 +69,27 @@ } .login-content { - position: absolute; - left: 50%; - top: 50%; - transform: translate(-50%, -50%); height: 500px; width: 1000px; + margin-top: auto; + margin-bottom: auto; } body { - position: relative; + box-sizing: border-box; + min-height: 100%; + display: flex; + align-items: center; + justify-content: center; + flex-direction: column; width: 100vw; height: 100vh; background-color: #f3f3f3; - {#height: calc(100vh - (100vh - 470px) / 3);#} + {#height: calc(100vh - (100vh - 470px) / 3);#} } + .captcha { float: right; } @@ -138,7 +142,7 @@ } .jms-title { - {#padding: 22px 10px 10px;#} + {#padding: 22px 10px 10px;#} } .more-login-items { @@ -318,7 +322,7 @@
- {% trans 'Username' %}: demo {% trans 'Password' %}: jumpserver -
-+ {% trans 'Username' %}: demo {% trans 'Password' %}: jumpserver +
+