diff options
author | John Molakvoæ <skjnldsv@users.noreply.github.com> | 2020-01-06 10:19:19 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-06 10:19:19 +0100 |
commit | 0e3392665f20f2c23bbd6bd490fbd91013c357ab (patch) | |
tree | fb7f1f84bdc11824b8bf4f1d2a62421cc733b0ce | |
parent | 03cdff0da48f7ba471f7fe70753c4abd568d7adc (diff) | |
parent | eec921ca78b560e7085eee47f96b5799bfa1e5c5 (diff) | |
download | nextcloud-server-0e3392665f20f2c23bbd6bd490fbd91013c357ab.tar.gz nextcloud-server-0e3392665f20f2c23bbd6bd490fbd91013c357ab.zip |
[#18645] Have custom login images cover the whole page (#18660)
[#18645] Have custom login images cover the whole page
-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; |