From 9816fdd842d3bd4143ece61e61d5950a5a4030fe Mon Sep 17 00:00:00 2001 From: Stian Thorgersen Date: Tue, 4 Mar 2014 09:54:30 +0000 Subject: [PATCH] Improvements to login forms for small screen --- .../login/patternfly/resources/css/login.css | 28 +++++++++++-------- .../theme/login/patternfly/theme.properties | 4 +-- 2 files changed, 18 insertions(+), 14 deletions(-) diff --git a/forms/common-themes/src/main/resources/theme/login/patternfly/resources/css/login.css b/forms/common-themes/src/main/resources/theme/login/patternfly/resources/css/login.css index f84516d035..e4f64c8716 100644 --- a/forms/common-themes/src/main/resources/theme/login/patternfly/resources/css/login.css +++ b/forms/common-themes/src/main/resources/theme/login/patternfly/resources/css/login.css @@ -47,7 +47,6 @@ #kc-login { float: right; margin-left: 10px; - margin-bottom: 10px; } #kc-feedback-wrapper { @@ -210,19 +209,19 @@ ol#kc-totp-settings li:first-of-type { height: 37px; - margin: 20px; + margin: 15px; } #kc-header { - padding-left: 40px; - padding-right: 40px; + padding-left: 15px; + padding-right: 15px; white-space: normal; float: none; } #kc-feedback { - padding-left: 40px; - padding-right: 40px; + padding-left: 15px; + padding-right: 15px; float: none; } @@ -232,21 +231,26 @@ ol#kc-totp-settings li:first-of-type { } #kc-form { - padding-left: 40px; - padding-right: 40px; + padding-left: 15px; + padding-right: 15px; float: none; } #kc-info-wrapper { border-top: 1px solid rgba(255, 255, 255, 0.1); - margin-top: 20px; - padding-top: 20px; - padding-left: 20px; - padding-right: 40px; + margin-top: 15px; + padding-top: 15px; + padding-left: 0px; + padding-right: 15px; } #kc-social-providers li { display: inline-block; margin-right: 5px; } + + .login-pf .container { + padding-top: 15px; + padding-bottom: 15px; + } } \ No newline at end of file diff --git a/forms/common-themes/src/main/resources/theme/login/patternfly/theme.properties b/forms/common-themes/src/main/resources/theme/login/patternfly/theme.properties index aba1e9bf25..720d4eab88 100644 --- a/forms/common-themes/src/main/resources/theme/login/patternfly/theme.properties +++ b/forms/common-themes/src/main/resources/theme/login/patternfly/theme.properties @@ -19,7 +19,7 @@ kcLabelClass=control-label kcLabelWrapperClass=col-xs-12 col-sm-12 col-md-4 col-lg-3 kcInputClass=form-control kcInputWrapperClass=col-xs-12 col-sm-12 col-md-8 col-lg-9 -kcFormOptionsClass=col-xs-5 col-sm-5 col-md-offset-4 col-md-4 col-lg-offset-3 col-lg-5 -kcFormButtonsClass=col-xs-7 col-sm-7 col-md-4 col-lg-4 submit +kcFormOptionsClass=col-xs-4 col-sm-5 col-md-offset-4 col-md-4 col-lg-offset-3 col-lg-5 +kcFormButtonsClass=col-xs-8 col-sm-7 col-md-4 col-lg-4 submit kcInfoAreaClass=col-xs-12 col-sm-4 col-md-4 col-lg-6 details \ No newline at end of file