summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2020-06-08 13:43:59 +0200
committerGitHub <noreply@github.com>2020-06-08 13:43:59 +0200
commitea53423b90952b3151707513d5968a6633feb660 (patch)
tree87f5d1c33b1d2860f3bb38b7a3b22e2059ffa6e0 /apps
parentfd62a5b59a08e139417f8271f95e8d56e2090ccb (diff)
parent81de9e8e9419ce96fa42f362608d36db8d127ba9 (diff)
downloadnextcloud-server-ea53423b90952b3151707513d5968a6633feb660.tar.gz
nextcloud-server-ea53423b90952b3151707513d5968a6633feb660.zip
Merge pull request #21198 from nextcloud/bugfix/19040
Only use background fade if nextcloud blue is set
Diffstat (limited to 'apps')
-rw-r--r--apps/theming/css/theming.scss53
1 files changed, 23 insertions, 30 deletions
diff --git a/apps/theming/css/theming.scss b/apps/theming/css/theming.scss
index 0e9b922b277..a18176f8b5d 100644
--- a/apps/theming/css/theming.scss
+++ b/apps/theming/css/theming.scss
@@ -8,20 +8,28 @@
}
@mixin faded-background {
- background-image: linear-gradient(40deg, $color-primary 0%, lighten($color-primary, 20%) 100%);
+ background-color: $color-primary;
+
+ @if ($color-primary == #0082C9) {
+ background-image: linear-gradient(40deg, $color-primary 0%, lighten($color-primary, 20%) 100%);
+ } @else {
+ /** This will be overwritten by the faded-background-image mixin if needed */
+ background-image: none;
+ }
}
@mixin faded-background-image {
- @if ($color-primary == #0082C9) or ($has-custom-background == true) {
+ @include faded-background;
+ background-size: contain;
+
+ @if ($color-primary == #0082C9) {
background-image: $image-login-background, linear-gradient(40deg, $color-primary 0%, lighten($color-primary, 20%) 100%);
+ }
- @if($has-custom-background == true) {
- background-size: cover;
- background-repeat: no-repeat;
- }
- } @else {
- @include faded-background;
- background-size: contain;
+ @if($has-custom-background == true) {
+ background-size: cover;
+ background-repeat: no-repeat;
+ background-image: $image-login-background;
}
}
@@ -138,6 +146,12 @@ $invert: luma($color-primary) > 0.6;
@include faded-background;
}
+#body-login,
+#firstrunwizard .firstrunwizard-header,
+#theming-preview {
+ @include faded-background-image;
+}
+
/* override styles for login screen in guest.css */
@if ($has-custom-logo) {
// custom logo
@@ -159,22 +173,6 @@ $invert: luma($color-primary) > 0.6;
}
}
-@if variable_exists('theming-background-mime') and $theming-background-mime != '' {
- #body-login,
- #firstrunwizard .firstrunwizard-header,
- #theming-preview {
- background-image: $image-login-background;
- background-color: $color-primary;
- @include faded-background-image;
- }
-} @else {
- #theming-preview {
- background-image: $image-login-background;
- background-color: $color-primary;
- @include faded-background-image;
- }
-}
-
@if variable_exists('theming-logoheader-mime') and $theming-logoheader-mime != '' {
#theming .advanced-option-logoheader .image-preview,
body:not(#body-login) #header .logo {
@@ -231,7 +229,6 @@ input.primary,
@if $image-login-plain == 'true' {
#body-login, #firstrunwizard .firstrunwizard-header, #theming-preview {
background-image: none !important;
- background-color: $color-primary;
}
#body-login {
@@ -240,10 +237,6 @@ input.primary,
}
}
-} @else {
- #body-login {
- @include faded-background-image;
- }
}
/** Handle primary buttons for bright colors */