diff options
author | Julius Härtl <jus@bitgrid.net> | 2018-01-26 17:04:04 +0100 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2018-01-26 19:05:10 +0100 |
commit | 60e601f4abb530d0503e43c6dae52b4e63d203ee (patch) | |
tree | e2c55bc65bf5d97b26c884db391fe585a1bea3e5 /apps | |
parent | 5eae4819bfaf69c66957dc1d723608b457fd4106 (diff) | |
download | nextcloud-server-60e601f4abb530d0503e43c6dae52b4e63d203ee.tar.gz nextcloud-server-60e601f4abb530d0503e43c6dae52b4e63d203ee.zip |
Only override image styles if the theming values are set
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/theming/css/theming.scss | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/apps/theming/css/theming.scss b/apps/theming/css/theming.scss index 63d466542e1..3cb8ee2584d 100644 --- a/apps/theming/css/theming.scss +++ b/apps/theming/css/theming.scss @@ -91,18 +91,20 @@ } /* override styles for login screen in guest.css */ -#header .logo { - background-image: url(#{$image-logo}); - @if $theming-logo-mime != '' { +@if variable_exists('theming-logo-mime') { + #header .logo { + background-image: url(#{$image-logo}); background-size: contain; } } -#body-login, -#firstrunwizard .firstrunwizard-header, -#theming-preview { - background-image: url(#{$image-login-background}); - background-color: $color-primary; +@if variable_exists('theming-background-mime') { + #body-login, + #firstrunwizard .firstrunwizard-header, + #theming-preview { + background-image: url(#{$image-login-background}); + background-color: $color-primary; + } } input.primary, |