From 43799fd3159480d75476f18645689cb100304485 Mon Sep 17 00:00:00 2001 From: Vlastimil Elias Date: Tue, 2 Jun 2015 10:47:13 +0200 Subject: [PATCH] KEYCLOAK-1362 - button CSS classes are defined by theme properties --- .../src/main/resources/theme/base/account/account.ftl | 4 ++-- .../resources/theme/base/account/applications.ftl | 2 +- .../theme/base/account/federatedIdentity.ftl | 4 ++-- .../main/resources/theme/base/account/password.ftl | 4 ++-- .../src/main/resources/theme/base/account/totp.ftl | 4 ++-- .../resources/theme/base/login/login-config-totp.ftl | 2 +- .../resources/theme/base/login/login-oauth-grant.ftl | 4 ++-- .../theme/base/login/login-reset-password.ftl | 2 +- .../main/resources/theme/base/login/login-totp.ftl | 4 ++-- .../theme/base/login/login-update-password.ftl | 2 +- .../theme/base/login/login-update-profile.ftl | 2 +- .../src/main/resources/theme/base/login/login.ftl | 4 ++-- .../src/main/resources/theme/base/login/register.ftl | 2 +- .../resources/theme/keycloak/account/theme.properties | 11 ++++++++++- .../resources/theme/keycloak/login/theme.properties | 11 ++++++++++- 15 files changed, 40 insertions(+), 22 deletions(-) diff --git a/forms/common-themes/src/main/resources/theme/base/account/account.ftl b/forms/common-themes/src/main/resources/theme/base/account/account.ftl index 7c349df4f7..922d9c522d 100755 --- a/forms/common-themes/src/main/resources/theme/base/account/account.ftl +++ b/forms/common-themes/src/main/resources/theme/base/account/account.ftl @@ -104,8 +104,8 @@
<#if url.referrerURI??>${msg("backToApplication")}/a> - - + +
diff --git a/forms/common-themes/src/main/resources/theme/base/account/applications.ftl b/forms/common-themes/src/main/resources/theme/base/account/applications.ftl index 78bde00ea8..27b916b363 100755 --- a/forms/common-themes/src/main/resources/theme/base/account/applications.ftl +++ b/forms/common-themes/src/main/resources/theme/base/account/applications.ftl @@ -77,7 +77,7 @@ <#if application.client.consentRequired> - + diff --git a/forms/common-themes/src/main/resources/theme/base/account/federatedIdentity.ftl b/forms/common-themes/src/main/resources/theme/base/account/federatedIdentity.ftl index a9cf3213b5..3a18805d78 100755 --- a/forms/common-themes/src/main/resources/theme/base/account/federatedIdentity.ftl +++ b/forms/common-themes/src/main/resources/theme/base/account/federatedIdentity.ftl @@ -19,10 +19,10 @@
<#if identity.connected> <#if federatedIdentity.removeLinkPossible> - ${msg("doRemove")} + ${msg("doRemove")} <#else> - ${msg("doAdd")} + ${msg("doAdd")}
diff --git a/forms/common-themes/src/main/resources/theme/base/account/password.ftl b/forms/common-themes/src/main/resources/theme/base/account/password.ftl index 40acc6e7e9..abea25dcfe 100755 --- a/forms/common-themes/src/main/resources/theme/base/account/password.ftl +++ b/forms/common-themes/src/main/resources/theme/base/account/password.ftl @@ -48,8 +48,8 @@
- - + +
diff --git a/forms/common-themes/src/main/resources/theme/base/account/totp.ftl b/forms/common-themes/src/main/resources/theme/base/account/totp.ftl index 96021009f3..47919926bc 100755 --- a/forms/common-themes/src/main/resources/theme/base/account/totp.ftl +++ b/forms/common-themes/src/main/resources/theme/base/account/totp.ftl @@ -56,8 +56,8 @@
- - + +
diff --git a/forms/common-themes/src/main/resources/theme/base/login/login-config-totp.ftl b/forms/common-themes/src/main/resources/theme/base/login/login-config-totp.ftl index 94f264a933..f1effe7bcb 100755 --- a/forms/common-themes/src/main/resources/theme/base/login/login-config-totp.ftl +++ b/forms/common-themes/src/main/resources/theme/base/login/login-config-totp.ftl @@ -23,7 +23,7 @@
- +
diff --git a/forms/common-themes/src/main/resources/theme/base/login/login-oauth-grant.ftl b/forms/common-themes/src/main/resources/theme/base/login/login-oauth-grant.ftl index 30d55c3568..2d596d09e4 100755 --- a/forms/common-themes/src/main/resources/theme/base/login/login-oauth-grant.ftl +++ b/forms/common-themes/src/main/resources/theme/base/login/login-oauth-grant.ftl @@ -54,8 +54,8 @@
- - + +
diff --git a/forms/common-themes/src/main/resources/theme/base/login/login-reset-password.ftl b/forms/common-themes/src/main/resources/theme/base/login/login-reset-password.ftl index ec327c24f5..90a2b6f748 100755 --- a/forms/common-themes/src/main/resources/theme/base/login/login-reset-password.ftl +++ b/forms/common-themes/src/main/resources/theme/base/login/login-reset-password.ftl @@ -23,7 +23,7 @@
- +
diff --git a/forms/common-themes/src/main/resources/theme/base/login/login-totp.ftl b/forms/common-themes/src/main/resources/theme/base/login/login-totp.ftl index ec0793562d..b696ef1fd8 100755 --- a/forms/common-themes/src/main/resources/theme/base/login/login-totp.ftl +++ b/forms/common-themes/src/main/resources/theme/base/login/login-totp.ftl @@ -27,8 +27,8 @@
- - + +
diff --git a/forms/common-themes/src/main/resources/theme/base/login/login-update-password.ftl b/forms/common-themes/src/main/resources/theme/base/login/login-update-password.ftl index d201616eb3..d13729e3f2 100755 --- a/forms/common-themes/src/main/resources/theme/base/login/login-update-password.ftl +++ b/forms/common-themes/src/main/resources/theme/base/login/login-update-password.ftl @@ -31,7 +31,7 @@
- +
diff --git a/forms/common-themes/src/main/resources/theme/base/login/login-update-profile.ftl b/forms/common-themes/src/main/resources/theme/base/login/login-update-profile.ftl index a534073f0f..f80909e96e 100755 --- a/forms/common-themes/src/main/resources/theme/base/login/login-update-profile.ftl +++ b/forms/common-themes/src/main/resources/theme/base/login/login-update-profile.ftl @@ -40,7 +40,7 @@
- +
diff --git a/forms/common-themes/src/main/resources/theme/base/login/login.ftl b/forms/common-themes/src/main/resources/theme/base/login/login.ftl index 858e0751c9..e3a3456693 100755 --- a/forms/common-themes/src/main/resources/theme/base/login/login.ftl +++ b/forms/common-themes/src/main/resources/theme/base/login/login.ftl @@ -49,8 +49,8 @@
- - + +
diff --git a/forms/common-themes/src/main/resources/theme/base/login/register.ftl b/forms/common-themes/src/main/resources/theme/base/login/register.ftl index e560cf13d7..63d8c22098 100755 --- a/forms/common-themes/src/main/resources/theme/base/login/register.ftl +++ b/forms/common-themes/src/main/resources/theme/base/login/register.ftl @@ -116,7 +116,7 @@
- +
diff --git a/forms/common-themes/src/main/resources/theme/keycloak/account/theme.properties b/forms/common-themes/src/main/resources/theme/keycloak/account/theme.properties index 971b6c0d31..69a79ec982 100644 --- a/forms/common-themes/src/main/resources/theme/keycloak/account/theme.properties +++ b/forms/common-themes/src/main/resources/theme/keycloak/account/theme.properties @@ -1,4 +1,13 @@ parent=base import=common/keycloak -styles=lib/patternfly/css/patternfly.css css/account.css \ No newline at end of file +styles=lib/patternfly/css/patternfly.css css/account.css + +##### css classes for form buttons +# main class used for all buttons +kcButtonClass=btn +# classes defining priority of the button - primary or default (there is typically only one priority button for the form) +kcButtonPrimaryClass=btn-primary +kcButtonDefaultClass=btn-default +# classes defining size of the button +kcButtonLargeClass=btn-lg diff --git a/forms/common-themes/src/main/resources/theme/keycloak/login/theme.properties b/forms/common-themes/src/main/resources/theme/keycloak/login/theme.properties index 7c83966cd7..63cd61b378 100644 --- a/forms/common-themes/src/main/resources/theme/keycloak/login/theme.properties +++ b/forms/common-themes/src/main/resources/theme/keycloak/login/theme.properties @@ -27,4 +27,13 @@ kcFormOptionsClass=col-xs-4 col-sm-5 col-md-offset-4 col-md-4 col-lg-offset-3 co kcFormButtonsClass=col-xs-8 col-sm-7 col-md-4 col-lg-4 submit kcTextareaClass=form-control -kcInfoAreaClass=col-xs-12 col-sm-4 col-md-4 col-lg-6 details \ No newline at end of file +kcInfoAreaClass=col-xs-12 col-sm-4 col-md-4 col-lg-6 details + +##### css classes for form buttons +# main class used for all buttons +kcButtonClass=btn +# classes defining priority of the button - primary or default (there is typically only one priority button for the form) +kcButtonPrimaryClass=btn-primary +kcButtonDefaultClass=btn-default +# classes defining size of the button +kcButtonLargeClass=btn-lg