Only override image styles if the theming values are set

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl 2018-01-26 17:04:04 +01:00
parent 73ae7b0c5f
commit 76c79ff18f
No known key found for this signature in database
GPG Key ID: 4C614C6ED2CDE6DF
1 changed files with 10 additions and 8 deletions

View File

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