[#18645] Have custom login images cover the whole page

Signed-off-by: Marius David Wieschollek <git.public@mdns.eu>
This commit is contained in:
Marius David Wieschollek 2020-01-05 00:14:28 +01:00
parent 797b603a1f
commit eec921ca78
No known key found for this signature in database
GPG Key ID: 5EC95BDC15EED86B
1 changed files with 6 additions and 0 deletions

View File

@ -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;