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

[#18645] Have custom login images cover the whole page
This commit is contained in:
John Molakvoæ 2020-01-06 10:19:19 +01:00 committed by GitHub
commit 0e3392665f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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;