From ac20bc05ba88e4158aa208f8e5ee1239406243ef Mon Sep 17 00:00:00 2001 From: ibuler Date: Thu, 23 Jun 2022 15:00:49 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E4=BC=98=E5=8C=96=20css?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../templates/authentication/login.html | 31 +++------ apps/authentication/views/login.py | 14 ++++ apps/jumpserver/conf.py | 2 +- config_example.yml | 68 +++---------------- 4 files changed, 35 insertions(+), 80 deletions(-) diff --git a/apps/authentication/templates/authentication/login.html b/apps/authentication/templates/authentication/login.html index 3c95332a2..2fd518462 100644 --- a/apps/authentication/templates/authentication/login.html +++ b/apps/authentication/templates/authentication/login.html @@ -33,28 +33,23 @@ } .form-group { - margin-bottom: 40px; - margin-top: 10px; + margin-bottom: 30px; + margin-top: 20px; } - .addition .form-group, .has-error .form-group { + .extra-fields-1 .form-group { + margin-bottom: 30px; + margin-top: 15px; + } + + .extra-fields-2 .form-group { margin-bottom: 20px; margin-top: 10px; } - .auth-methods.has-error .form-group, .auth-methods.addition .form-group { - margin-bottom: 15px; - margin-top: 5px; - } - - .has-error.addition .form-group { - margin-bottom: 20px; - margin-top: 5px; - } - - .auth-methods.addition.has-error .form-group { + .extra-fields-3 .form-group { margin-bottom: 10px; - margin-top: 5px; + margin-top: 10px; } .login-content { @@ -185,11 +180,7 @@ -
+