summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2018-01-26 17:04:04 +0100
committerJulius Härtl <jus@bitgrid.net>2018-02-02 13:05:41 +0100
commit76c79ff18f4b23fd93702bb541ee72b338b3ed5e (patch)
treeaa9680c939d41dbd2430f5d4b3792ed63802a304 /apps
parent73ae7b0c5f244949119228ed623f87f2cc4a214b (diff)
downloadnextcloud-server-76c79ff18f4b23fd93702bb541ee72b338b3ed5e.tar.gz
nextcloud-server-76c79ff18f4b23fd93702bb541ee72b338b3ed5e.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.scss18
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,