From 7c482415a9c30a8173976a49fe487f780ca679ad Mon Sep 17 00:00:00 2001 From: Jun Pataleta Date: Mon, 26 Jun 2017 15:59:25 +0800 Subject: [PATCH] MDL-59294 theme_bootstrapbase: Fix display of ID provider buttons --- lib/templates/loginform.mustache | 38 +++++++++++------------ theme/bootstrapbase/less/moodle/core.less | 16 +++------- theme/bootstrapbase/style/moodle.css | 15 +++------ 3 files changed, 27 insertions(+), 42 deletions(-) diff --git a/lib/templates/loginform.mustache b/lib/templates/loginform.mustache index 1d65ea1152d..a6c2cf35d48 100644 --- a/lib/templates/loginform.mustache +++ b/lib/templates/loginform.mustache @@ -123,21 +123,20 @@ +
{{#hasinstructions}} -
-

{{#str}} firsttime {{/str}}

-
- {{{instructions}}} - {{#cansignup}} -
-
-
- -
-
-
- {{/cansignup}} -
+

{{#str}} firsttime {{/str}}

+
+ {{{instructions}}} + {{#cansignup}} +
+
+
+ +
+
+
+ {{/cansignup}}
{{/hasinstructions}} @@ -147,17 +146,18 @@
{{/hasidentityproviders}} +
{{#js}} diff --git a/theme/bootstrapbase/less/moodle/core.less b/theme/bootstrapbase/less/moodle/core.less index 6a60df6bdd0..2ee0b3499a4 100644 --- a/theme/bootstrapbase/less/moodle/core.less +++ b/theme/bootstrapbase/less/moodle/core.less @@ -505,24 +505,14 @@ a.skip:active { margin-bottom: 5px; margin-top: 15px; } -.loginbox .signuppanel .subcontent { - text-align: left; -} .loginbox .loginsub { margin-left: 0; margin-right: 0; } .loginbox .guestsub, -.loginbox .forgotsub, -.loginbox .potentialidps { +.loginbox .forgotsub { margin: 5px 12%; } -.loginbox .potentialidps .potentialidplist { - margin-left: 40%; -} -.loginbox .potentialidps .potentialidplist div { - text-align: left; -} .loginbox .loginform { margin-top: 1em; text-align: left; @@ -558,7 +548,9 @@ a.skip:active { margin-bottom: -2000px; padding-bottom: 2000px; } - +.loginbox .potentialidp { + margin-bottom: 0.3em; +} .loginbox .potentialidp .smallicon { vertical-align: text-bottom; margin: 0 .3em; diff --git a/theme/bootstrapbase/style/moodle.css b/theme/bootstrapbase/style/moodle.css index 147abba0c0c..88cc4a8f369 100644 --- a/theme/bootstrapbase/style/moodle.css +++ b/theme/bootstrapbase/style/moodle.css @@ -2796,24 +2796,14 @@ a.skip:active { margin-bottom: 5px; margin-top: 15px; } -.loginbox .signuppanel .subcontent { - text-align: left; -} .loginbox .loginsub { margin-left: 0; margin-right: 0; } .loginbox .guestsub, -.loginbox .forgotsub, -.loginbox .potentialidps { +.loginbox .forgotsub { margin: 5px 12%; } -.loginbox .potentialidps .potentialidplist { - margin-left: 40%; -} -.loginbox .potentialidps .potentialidplist div { - text-align: left; -} .loginbox .loginform { margin-top: 1em; text-align: left; @@ -2851,6 +2841,9 @@ a.skip:active { margin-bottom: -2000px; padding-bottom: 2000px; } +.loginbox .potentialidp { + margin-bottom: 0.3em; +} .loginbox .potentialidp .smallicon { vertical-align: text-bottom; margin: 0 .3em;