diff --git a/lib/outputrenderers.php b/lib/outputrenderers.php index 28597f89181..ba27a7f9c45 100644 --- a/lib/outputrenderers.php +++ b/lib/outputrenderers.php @@ -4053,7 +4053,7 @@ EOD; if ($this->should_display_main_logo($headinglevel)) { $sitename = format_string($SITE->fullname, true, array('context' => context_course::instance(SITEID))); return html_writer::div(html_writer::empty_tag('img', [ - 'src' => $this->get_logo_url(null, 150), 'alt' => $sitename]), 'logo'); + 'src' => $this->get_logo_url(null, 150), 'alt' => $sitename, 'class' => 'img-fluid']), 'logo'); } // Make sure to use the heading if it has been set. diff --git a/lib/templates/loginform.mustache b/lib/templates/loginform.mustache index b0cdaa055e4..5f8066697da 100644 --- a/lib/templates/loginform.mustache +++ b/lib/templates/loginform.mustache @@ -99,7 +99,7 @@
{{#logourl}} -

{{sitename}}

+

{{sitename}}

{{/logourl}} {{^logourl}}

{{sitename}}

diff --git a/lib/templates/signup_form_layout.mustache b/lib/templates/signup_form_layout.mustache index 86dfa91f05c..13ec4955800 100644 --- a/lib/templates/signup_form_layout.mustache +++ b/lib/templates/signup_form_layout.mustache @@ -15,7 +15,7 @@
{{#logourl}} -

{{sitename}}

+

{{sitename}}

{{/logourl}} {{^logourl}}

{{sitename}}

diff --git a/theme/clean/style/custom.css b/theme/clean/style/custom.css index 090e45bfe29..22be8bd3351 100644 --- a/theme/clean/style/custom.css +++ b/theme/clean/style/custom.css @@ -2,6 +2,7 @@ -------------------------*/ div.logo { background: url([[setting:logo]]) 0 0 no-repeat; + background-size: contain; display: block; float: left; height: 75px;