aboutsummaryrefslogtreecommitdiffstats
path: root/apps/theming
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2018-01-10 09:11:17 +0100
committerJulius Härtl <jus@bitgrid.net>2018-01-10 09:11:32 +0100
commit927626cbaaa0da8be0800b6a635783aa3a8ac4ac (patch)
tree6dfa6feb67dbf06e7aaf709c4897ab1ca8111819 /apps/theming
parente18c0b2ac34a1ef37940a1e1f27c3a961232334d (diff)
downloadnextcloud-server-927626cbaaa0da8be0800b6a635783aa3a8ac4ac.tar.gz
nextcloud-server-927626cbaaa0da8be0800b6a635783aa3a8ac4ac.zip
Fix appmenu svg double invert
This fixes a regression caused by 9b668d0, where the css filters to preview color inversion of the app menu was applied by default. This commit makes the css filters sensitive on what the current state of the app menu is. Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'apps/theming')
-rw-r--r--apps/theming/css/theming.scss16
1 files changed, 10 insertions, 6 deletions
diff --git a/apps/theming/css/theming.scss b/apps/theming/css/theming.scss
index cabcd5a2e0e..63d466542e1 100644
--- a/apps/theming/css/theming.scss
+++ b/apps/theming/css/theming.scss
@@ -20,10 +20,12 @@
}
@if (luma($color-primary) > 0.6) {
- #appmenu img,
- #appmenu image {
+ #appmenu:not(.inverted) svg {
filter: invert(1);
}
+ #appmenu.inverted svg {
+ filter: none;
+ }
.searchbox input[type="search"] {
background: transparent url('../../../core/img/actions/search.svg') no-repeat 6px center;
}
@@ -67,10 +69,12 @@
}
}
} @else {
- #appmenu img,
- #appmenu image {
- filter: none;
- }
+ #appmenu:not(.inverted) svg {
+ filter: none;
+ }
+ #appmenu.inverted svg {
+ filter: invert(1);
+ }
}
/* Colorized svg images */