]> source.dussan.org Git - nextcloud-server.git/commitdiff
[#18645] Have custom login images cover the whole page 18660/head
authorMarius David Wieschollek <git.public@mdns.eu>
Sat, 4 Jan 2020 23:14:28 +0000 (00:14 +0100)
committerMarius David Wieschollek <git.public@mdns.eu>
Sat, 4 Jan 2020 23:14:28 +0000 (00:14 +0100)
Signed-off-by: Marius David Wieschollek <git.public@mdns.eu>
apps/theming/css/theming.scss

index 4ed9d0f9ff4c32660cfad6388b8ea1f357b2156f..3b2b6ee7ae520bf12c3ee6223c2745626fb3cc6e 100644 (file)
 @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;