diff --git a/public/theme/boost/lib.php b/public/theme/boost/lib.php index e0458127f14..1e08db56f6f 100644 --- a/public/theme/boost/lib.php +++ b/public/theme/boost/lib.php @@ -57,15 +57,18 @@ function theme_boost_get_extra_scss($theme) { // Sets the login background image. $loginbackgroundimageurl = $theme->setting_file_url('loginbackgroundimage', 'loginbackgroundimage'); + $backgroundposition = ''; if (empty($loginbackgroundimageurl)) { // Use the default login background image. $loginbackgroundimageurl = $theme->image_url( 'login_background', 'theme', ); + // Set the default background position to ensure the watermark is visible. + $backgroundposition = 'background-position: bottom right;'; } $content .= 'body.pagelayout-login #page .login-layout-left { '; - $content .= "background-image: url('$loginbackgroundimageurl'); background-size: cover;"; + $content .= "background-image: url('$loginbackgroundimageurl'); background-size: cover; {$backgroundposition}"; $content .= ' }'; // Always return the background image with the scss when we have it. diff --git a/public/theme/boost/pix/login_background.jpg b/public/theme/boost/pix/login_background.jpg index 33cf550f2f3..4bb0cb99d8f 100644 Binary files a/public/theme/boost/pix/login_background.jpg and b/public/theme/boost/pix/login_background.jpg differ diff --git a/public/theme/classic/lib.php b/public/theme/classic/lib.php index 91c3c792ad1..bdac2e137f8 100644 --- a/public/theme/classic/lib.php +++ b/public/theme/classic/lib.php @@ -108,15 +108,18 @@ function theme_classic_get_extra_scss($theme) { // Sets the login background image. $loginbackgroundimageurl = $theme->setting_file_url('loginbackgroundimage', 'loginbackgroundimage'); + $backgroundposition = ''; if (empty($loginbackgroundimageurl)) { // Use the default login background image. $loginbackgroundimageurl = $theme->image_url( 'login_background', 'theme', ); + // Set the default background position to ensure the watermark is visible. + $backgroundposition = 'background-position: bottom right;'; } $content .= 'body.pagelayout-login #page .login-layout-left { '; - $content .= "background-image: url('$loginbackgroundimageurl'); background-size: cover;"; + $content .= "background-image: url('$loginbackgroundimageurl'); background-size: cover; {$backgroundposition}"; $content .= ' }'; if (!empty($theme->settings->navbardark)) { diff --git a/public/theme/classic/pix/login_background.jpg b/public/theme/classic/pix/login_background.jpg index 33cf550f2f3..4bb0cb99d8f 100644 Binary files a/public/theme/classic/pix/login_background.jpg and b/public/theme/classic/pix/login_background.jpg differ