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,19 +91,21 @@
}
/* override styles for login screen in guest.css */
@if variable_exists('theming-logo-mime') {
#header .logo {
background-image: url(#{$image-logo});
@if $theming-logo-mime != '' {
background-size: contain;
}
}
@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,
#alternative-logins li a {