@return (0.2126 * $-local-red + 0.7152 * $-local-green + 0.0722 * $-local-blue) / 255;
}
+@mixin faded-background {
+ background-image: linear-gradient(40deg, $color-primary 0%, lighten($color-primary, 20%) 100%);
+}
+
+@mixin faded-background-image {
+ @if ($color-primary == #0082C9) {
+ background-image: $image-login-background, linear-gradient(40deg, $color-primary 0%, lighten($color-primary, 20%) 100%);
+ } @else {
+ @include faded-background;
+ background-size: contain;
+ }
+}
+
$has-custom-logo: variable_exists('theming-logo-mime') and $theming-logo-mime != '';
$invert: luma($color-primary) > 0.6;
background-image: $image-logo;
}
+#body-user #header, #body-settings #header, #body-public #header {
+ @include faded-background;
+}
+
/* override styles for login screen in guest.css */
@if ($has-custom-logo) {
// custom logo
#theming-preview {
background-image: $image-login-background;
background-color: $color-primary;
- background-color: linear-gradient(40deg, $color-primary 0%, rgba(28,175,255,1) 100%);
+ @include faded-background-image;
}
} @else {
#theming-preview {
background-image: $image-login-background;
background-color: $color-primary;
- background-color: linear-gradient(40deg, $color-primary 0%, rgba(28,175,255,1) 100%);
+ @include faded-background-image;
}
}
#body-login, #firstrunwizard .firstrunwizard-header, #theming-preview {
background-image: none !important;
background-color: $color-primary;
- background-color: linear-gradient(40deg, $color-primary 0%, rgba(28,175,255,1) 100%);
}
#body-login {
}
} @else {
#body-login {
- background-color: $color-primary;
- background-color: linear-gradient(40deg, $color-primary 0%, rgba(28,175,255,1) 100%);
+ @include faded-background-image;
}
}