diff options
author | Marius David Wieschollek <git.public@mdns.eu> | 2020-01-05 00:14:28 +0100 |
---|---|---|
committer | Marius David Wieschollek <git.public@mdns.eu> | 2020-01-05 00:14:28 +0100 |
commit | eec921ca78b560e7085eee47f96b5799bfa1e5c5 (patch) | |
tree | 597a7abf163f0c252e9b0305119bc388e1584789 | |
parent | 797b603a1f11e76348c36c17e766e97b43dd127e (diff) | |
download | nextcloud-server-eec921ca78b560e7085eee47f96b5799bfa1e5c5.tar.gz nextcloud-server-eec921ca78b560e7085eee47f96b5799bfa1e5c5.zip |
[#18645] Have custom login images cover the whole page
Signed-off-by: Marius David Wieschollek <git.public@mdns.eu>
-rw-r--r-- | apps/theming/css/theming.scss | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/theming/css/theming.scss b/apps/theming/css/theming.scss index 4ed9d0f9ff4..3b2b6ee7ae5 100644 --- a/apps/theming/css/theming.scss +++ b/apps/theming/css/theming.scss @@ -14,12 +14,18 @@ @mixin faded-background-image { @if ($color-primary == #0082C9) { background-image: $image-login-background, linear-gradient(40deg, $color-primary 0%, lighten($color-primary, 20%) 100%); + + @if($has-custom-background == true) { + background-size: cover; + background-repeat: no-repeat; + } } @else { @include faded-background; background-size: contain; } } +$has-custom-background: variable_exists('theming-background-mime') and $theming-background-mime != ''; $has-custom-logo: variable_exists('theming-logo-mime') and $theming-logo-mime != ''; $invert: luma($color-primary) > 0.6; |