diff --git a/forms/common-themes/src/main/resources/theme/login/base/error.ftl b/forms/common-themes/src/main/resources/theme/login/base/error.ftl index 78b8284cbe..220d2d8954 100755 --- a/forms/common-themes/src/main/resources/theme/login/base/error.ftl +++ b/forms/common-themes/src/main/resources/theme/login/base/error.ftl @@ -2,22 +2,15 @@ <#import "template.ftl" as layout> <@layout.registrationLayout bodyClass=""; section> <#if section = "title"> - - We're sorry... + ${rb.errorTitle} <#elseif section = "header"> - - We're sorry ... + ${rb.errorTitleHtml} <#elseif section = "form"> - -

Something happened and we could not process your request.

+
+

${rb.errorGenericMsg}

${message.summary}

- - <#elseif section = "info" > - -
- \ No newline at end of file diff --git a/forms/common-themes/src/main/resources/theme/login/base/login-config-totp.ftl b/forms/common-themes/src/main/resources/theme/login/base/login-config-totp.ftl index a3872aed8c..f978824246 100755 --- a/forms/common-themes/src/main/resources/theme/login/base/login-config-totp.ftl +++ b/forms/common-themes/src/main/resources/theme/login/base/login-config-totp.ftl @@ -1,38 +1,31 @@ <#import "template.ftl" as layout> <@layout.registrationLayout bodyClass=""; section> <#if section = "title"> - - Google Authenticator Setup + ${rb.loginTotpTitle} <#elseif section = "header"> - - Google Authenticator Setup + ${rb.loginTotpTitle} <#elseif section = "form"> - -
-
    -
  1. -

    1Download the Google Authenticator app in your device.

    -
  2. -
  3. -

    2Create an account in Google Authenticator and scan the barcode or the provided key below.

    - Figure: Barcode - ${totp.totpSecretEncoded} -
  4. -
  5. -

    3Enter the one-time-password provided by Google Authenticator below and click Submit to finish the setup.

    -
    -
    - - -
    - -
    -
  6. -
-
- - <#elseif section = "info" > +
    +
  1. +

    1${rb.loginTotpStep1_1} ${rb.loginTotpStep1_2} ${rb.loginTotpStep1_3}

    +
  2. +
  3. +

    2${rb.loginTotpStep2}

    + Figure: Barcode + ${totp.totpSecretEncoded} +
  4. +
  5. +

    3${rb.loginTotpStep3}

    +
    +
    + + +
    + +
    +
  6. +
\ No newline at end of file diff --git a/forms/common-themes/src/main/resources/theme/login/base/login-oauth-grant.ftl b/forms/common-themes/src/main/resources/theme/login/base/login-oauth-grant.ftl index 389a934886..9204893b65 100755 --- a/forms/common-themes/src/main/resources/theme/login/base/login-oauth-grant.ftl +++ b/forms/common-themes/src/main/resources/theme/login/base/login-oauth-grant.ftl @@ -2,17 +2,15 @@ <#import "template.ftl" as layout> <@layout.registrationLayout bodyClass="oauth"; section> <#if section = "title"> - - OAuth Grant + ${rb.oauthGrantTitle} <#elseif section = "header"> - - Keycloak Central Login + ${rb.oauthGrantTitleHtml} <#elseif section = "form"> -
-

${oauth.client} requests access to:

-
-
<#nested "info">
-

${rb.poweredByKeycloak}

- - <#nested "content"> - \ No newline at end of file diff --git a/forms/common-themes/src/main/resources/theme/login/keycloak/resources/css/styles.css b/forms/common-themes/src/main/resources/theme/login/keycloak/resources/css/styles.css index 5988a486ae..f767d53699 100644 --- a/forms/common-themes/src/main/resources/theme/login/keycloak/resources/css/styles.css +++ b/forms/common-themes/src/main/resources/theme/login/keycloak/resources/css/styles.css @@ -1,4 +1,5 @@ -body.rcue-login-register { - background: #083556; - background-image: none; +@IMPORT url("../../rcue/css/styles.css"); + +body { + xbackground: #083556 !important; } diff --git a/forms/common-themes/src/main/resources/theme/login/rcue/resources/css/forms.css b/forms/common-themes/src/main/resources/theme/login/rcue/resources/css/forms.css index c51693c4cf..e2c1999aba 100644 --- a/forms/common-themes/src/main/resources/theme/login/rcue/resources/css/forms.css +++ b/forms/common-themes/src/main/resources/theme/login/rcue/resources/css/forms.css @@ -189,11 +189,11 @@ button.primary:enabled:active { box-shadow: inset 0 0 5px 3px #0074ae; } /* Code from Gabriel */ -.rcue-login-register.register .two-fields input[type="text"] { +.kc-login-register.register .two-fields input[type="text"] { width: 121px; min-width: 0; } -.rcue-login-register.register .two-fields input + input { +.kc-login-register.register .two-fields input + input { margin-left: 10px; } .search-comp { diff --git a/forms/common-themes/src/main/resources/theme/login/rcue/resources/css/login-register.css b/forms/common-themes/src/main/resources/theme/login/rcue/resources/css/login-register.css index 89222dbf73..64786a3df5 100644 --- a/forms/common-themes/src/main/resources/theme/login/rcue/resources/css/login-register.css +++ b/forms/common-themes/src/main/resources/theme/login/rcue/resources/css/login-register.css @@ -4,13 +4,14 @@ body { min-width: 120em; } -body.rcue-login-register { +body.kc-login-register { background-image: url("../img/login-screen-background.jpg"); } -div.rcue-logo { +.kc-title { background-image: url("../img/keycloak-logo.png"); background-repeat: no-repeat; + text-indent: -9999px; height: 37px; width: 150px; position: absolute; @@ -18,7 +19,7 @@ div.rcue-logo { right: 6.4em; } -.rcue-login-register { +.kc-login-register { background-color: #1D2226; background-position: top left; background-size: auto; @@ -32,18 +33,18 @@ div.rcue-logo { } -.rcue-login-register h1 a { +.kc-login-register h1 a { position: absolute; top: 5em; right: 6.4em; } -.rcue-login-register .content { +.kc-login-register .content { position: absolute; bottom: 10%; width: 100%; min-width: 76em; } -.rcue-login-register h2 { +.kc-login-register h2 { padding-left: 4.34782608695652em; font-family: "Overpass", sans-serif; font-size: 2.3em; @@ -51,10 +52,10 @@ div.rcue-logo { text-transform: uppercase; letter-spacing: 0.005em; } -.rcue-login-register h2 strong { +.kc-login-register h2 strong { font-weight: bold; } -.rcue-login-register .background-area { +.kc-login-register .background-area { border-top: 0.1em rgba(255, 255, 255, 0.05) solid; border-bottom: 0.1em rgba(255, 255, 255, 0.05) solid; background-color: rgba(0, 0, 0, 0.3); @@ -63,115 +64,115 @@ div.rcue-logo { width: 100%; min-width: 120em; } -.rcue-login-register .form-area.separator, -.rcue-login-register .form-area.social, -.rcue-login-register .form-area.social.separator { +.kc-login-register .form-area.separator, +.kc-login-register .form-area.social, +.kc-login-register .form-area.social.separator { background-repeat: no-repeat; background-position: 42.7em center; } -.rcue-login-register .form-area.separator { +.kc-login-register .form-area.separator { background-image: url(../img/login-register-separator.png); background-position: 43.2em center; } -.rcue-login-register .form-area.social { +.kc-login-register .form-area.social { background-image: url(../img/login-register-social.png); } -.rcue-login-register .form-area.social.separator { +.kc-login-register .form-area.social.separator { background-image: url(../img/login-register-social-separator.png); } -.rcue-login-register .background-area .section { +.kc-login-register .background-area .section { float: left; padding: 0 4.5em 0 4.6em; width: auto; position: relative; } -.rcue-login-register .background-area .section, -.rcue-login-register .background-area .social .section { +.kc-login-register .background-area .section, +.kc-login-register .background-area .social .section { padding-top: 1.5em; padding-bottom: 1.5em; } -.rcue-login-register .background-area .section h3 { +.kc-login-register .background-area .section h3 { display: none; } -.rcue-login-register .background-area .section:first-child { +.kc-login-register .background-area .section:first-child { padding-right: 4.5em; } -.rcue-login-register .section > p { +.kc-login-register .section > p { font-size: 1.3em; margin-bottom: 1.53846153846154em; line-height: 1.3em; } -.rcue-login-register .section.app-form { +.kc-login-register .section.app-form { padding-left: 0; position: relative; } -.rcue-login-register form > div { +.kc-login-register form > div { margin-bottom: 1em; } -.rcue-login-register label, -.rcue-login-register .social-login > p { +.kc-login-register label, +.kc-login-register .social-login > p { display: inline-block; font-size: 1.4em; font-weight: 400; } -.rcue-login-register label { +.kc-login-register label { width: 8.21428571428571em; } -.rcue-login-register label.two-lines { +.kc-login-register label.two-lines { float: left; margin-top: -0.14285714285714em; line-height: 1.1em; } -.rcue-login-register input[type="text"], -.rcue-login-register input[type="password"] { +.kc-login-register input[type="text"], +.kc-login-register input[type="password"] { width: 24.7272727272727em; /* 272px */ } -.rcue-login-register form > div.aside-btn { +.kc-login-register form > div.aside-btn { float: left; font-size: 1.1em; margin-left: 10.4545454545454em; margin-top: 0.90909090909091em; margin-bottom: 0; } -.rcue-login-register form > div.aside-btn label { +.kc-login-register form > div.aside-btn label { font-size: 1em; width: auto; } -.rcue-login-register form > div.aside-btn input[type="checkbox"] { +.kc-login-register form > div.aside-btn input[type="checkbox"] { margin-bottom: 0.54545454545455em; /* 6px */ } -.rcue-login-register form > input[type="button"], -.rcue-login-register form > input[type="submit"]{ +.kc-login-register form > input[type="button"], +.kc-login-register form > input[type="submit"]{ float: right; margin-top: 0.76923076923077em; margin-left: 0.90909090909091em; /* 10px */ } -.rcue-login-register p.subtitle { +.kc-login-register p.subtitle { font-size: 1.1em; color: #999; position: absolute; right: 4.09090909090909em; top: -0.636363636363636em; } -.rcue-login-register .feedback.bottom-left { +.kc-login-register .feedback.bottom-left { left: 35.7em; bottom: 17em; min-width: 35em; } -.rcue-login-register input.error[type="text"], -.rcue-login-register input.error[type="password"], -.rcue-login-register input.error[type="email"] { +.kc-login-register input.error[type="text"], +.kc-login-register input.error[type="password"], +.kc-login-register input.error[type="email"] { background-color: #F8E7E7; } -.rcue-login-register .section.social-login > span { +.kc-login-register .section.social-login > span { display: none; } -.rcue-login-register .section.social-login > p { +.kc-login-register .section.social-login > p { float: left; margin-top: 0.28571428571429em; /* 14px */ @@ -180,32 +181,32 @@ div.rcue-logo { /* 95px */ } -.rcue-login-register .section.social-login > ul { +.kc-login-register .section.social-login > ul { float: left; } -.rcue-login-register .section.social-login li { +.kc-login-register .section.social-login li { margin-bottom: 2em; } -.rcue-login-register .section.social-login li:last-child { +.kc-login-register .section.social-login li:last-child { margin-bottom: 0; } -.rcue-login-register .section.info-area { +.kc-login-register .section.info-area { padding-right: 0; } -.rcue-login-register .section.info-area p, -.rcue-login-register .section.info-area li { +.kc-login-register .section.info-area p, +.kc-login-register .section.info-area li { font-size: 1.4em; margin-bottom: 1.64285714285714em; } -.rcue-login-register .section.info-area li { +.kc-login-register .section.info-area li { color: #999; margin-bottom: 1em; } -.rcue-login-register .section.info-area li:last-child { +.kc-login-register .section.info-area li:last-child { margin-bottom: 0; } @media screen and (min-width: 1280px) { - .rcue-login-register { + .kc-login-register { background-size: 100% auto; } } @@ -265,19 +266,19 @@ a.zocial:before { /* 32px */ } /* Register page */ -.rcue-login-register.register label { +.kc-login-register.register label { width: 7.5em; /* 105px */ } -.rcue-login-register.register input[type="text"], -.rcue-login-register.register input[type="email"], -.rcue-login-register.register input[type="password"] { +.kc-login-register.register input[type="text"], +.kc-login-register.register input[type="email"], +.kc-login-register.register input[type="password"] { width: 22.9090909090909em; /* 252px */ } -.rcue-login-register.register form > div.aside-btn { +.kc-login-register.register form > div.aside-btn { margin-left: 9.54545454545454em; /* 105px */ @@ -285,111 +286,111 @@ a.zocial:before { /* 138px */ } -.rcue-login-register.register form > div.aside-btn p { +.kc-login-register.register form > div.aside-btn p { line-height: 1.3em; } -.rcue-login-register p.powered { +.kc-login-register p.powered { font-size: 1.1em; margin-top: 1.27272727272727em; text-align: right; margin-right: 5.81818181818182em; } -.rcue-login-register p.powered a { +.kc-login-register p.powered a { color: #666; } -.rcue-login-register p.powered a:hover { +.kc-login-register p.powered a:hover { color: #0099D3; } /* Forgot Password page */ -.rcue-login-register.reset .background-area .section.app-form { +.kc-login-register.reset .background-area .section.app-form { width: 43.2em; } -.rcue-login-register.oauth .form-actions { +.kc-login-register.oauth .form-actions { margin-bottom: 0; margin-top: 2em; } -.rcue-login-register .background-area .content-area { +.kc-login-register .background-area .content-area { width: 50em; } -.rcue-login-register .background-area .content-area ul { +.kc-login-register .background-area .content-area ul { border-bottom: 1px solid #34393C; margin-bottom: 2em; } -.rcue-login-register .background-area .content-area ul li { +.kc-login-register .background-area .content-area ul li { border-top: 1px solid #34393C; padding: 2em; position: relative; } -.rcue-login-register .background-area .content-area ul li span { +.kc-login-register .background-area .content-area ul li span { font-size: 1.3em; line-height: 1.3em; } -.rcue-login-register .background-area .content-area ul li span:first-child { +.kc-login-register .background-area .content-area ul li span:first-child { padding-right: 11.5384615384615em; } -.rcue-login-register .background-area .content-area ul li span.parent { +.kc-login-register .background-area .content-area ul li span.parent { position: absolute; left: 26em; top: 1.53846153846154em; width: 12.3076923076923em; } -.rcue-login-register .background-area .content-area ul li span.icon-info { +.kc-login-register .background-area .content-area ul li span.icon-info { float: right; margin-top: 0.5em; } -.rcue-login-register .background-area .content-area p.terms { +.kc-login-register .background-area .content-area p.terms { color: #999999; font-size: 1.1em; line-height: 1.3em; } -.rcue-login-register.reset p.subtitle { +.kc-login-register.reset p.subtitle { margin-bottom: 10px; position: inherit; text-align: right; } -.rcue-login-register .background-area p.instruction { +.kc-login-register .background-area p.instruction { font-size: 1.3em; line-height: 1.3em; margin-bottom: 1.53846em; } -.rcue-login-register .background-area p.instruction.instruction.second { +.kc-login-register .background-area p.instruction.instruction.second { color: #999999; } -.rcue-login-register .background-area p.instruction + .instruction.second { +.kc-login-register .background-area p.instruction + .instruction.second { margin-top: -1.23077em; } -.rcue-login-register .background-area a.link-right { +.kc-login-register .background-area a.link-right { float: right; font-size: 1.3em; } -.rcue-login-register.totp .form-area { +.kc-login-register.totp .form-area { background-image: none; } -.rcue-login-register.reset .form-area p.instruction { +.kc-login-register.reset .form-area p.instruction { font-size: 1.3em; line-height: 1.3em; margin-bottom: 1.81818181818182em; } -.rcue-login-register.totp { +.kc-login-register.totp { min-height: 0; } -.rcue-login-register.totp ol li { +.kc-login-register.totp ol li { margin-bottom: 3em; width: 100%; } -.rcue-login-register.totp ol li p { +.kc-login-register.totp ol li p { font-size: 1.3em; margin-bottom: 1.92307692307692em; } -.rcue-login-register.totp ol li p strong { +.kc-login-register.totp ol li p strong { text-indent: -1em; float: left; font-size: 1.84615384615385em; @@ -397,40 +398,40 @@ a.zocial:before { margin-top: -0.20833333333333em; color: #999; } -.rcue-login-register.totp ol li img { +.kc-login-register.totp ol li img { border: 7px solid #fff; width: 150px; } -.rcue-login-register.totp ol li .code { +.kc-login-register.totp ol li .code { font-size: 1.3em; margin-left: 1.53846153846154em; } -.rcue-login-register.totp ol li form { +.kc-login-register.totp ol li form { width: 357px; } -.rcue-login-register.totp ol li form input[type="text"] { +.kc-login-register.totp ol li form input[type="text"] { width: 22em; } -.rcue-login-register.totp ol li form input[type="submit"] { +.kc-login-register.totp ol li form input[type="submit"] { float: right; } -.rcue-login-register.totp ol li:last-child { +.kc-login-register.totp ol li:last-child { margin-bottom: 0; } -.rcue-login-register.totp .content { +.kc-login-register.totp .content { position: inherit; margin-top: 16em; } -.rcue-login-register.email .background-area .section { +.kc-login-register.email .background-area .section { width: 41.2em; } -.rcue-login-register.email .background-area .section.email { +.kc-login-register.email .background-area .section.email { width: 45.8em; } -.rcue-login-register.email label { +.kc-login-register.email label { width: 6.78571428571429em; } -.rcue-login-register.email .feedback.bottom-left { +.kc-login-register.email .feedback.bottom-left { left: 38.3em; }