From: Julius Härtl Date: Wed, 10 Jan 2018 08:11:17 +0000 (+0100) Subject: Fix appmenu svg double invert X-Git-Tag: v12.0.5RC2~4^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fpull%2F7817%2Fhead;p=nextcloud-server.git 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 --- diff --git a/apps/theming/css/theming.scss b/apps/theming/css/theming.scss index acf4d6446f4..2a40edd49d9 100644 --- a/apps/theming/css/theming.scss +++ b/apps/theming/css/theming.scss @@ -11,6 +11,12 @@ } @if (lightness($color-primary) > 50) { + #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; } @@ -48,6 +54,13 @@ background-color: nc-darken($color-primary-element, 30%) !important; } } +} @else { + #appmenu:not(.inverted) svg { + filter: none; + } + #appmenu.inverted svg { + filter: invert(1); + } } /* Colorized svg images */ diff --git a/core/templates/layout.user.php b/core/templates/layout.user.php index d54a6fe114f..2a413a4d958 100644 --- a/core/templates/layout.user.php +++ b/core/templates/layout.user.php @@ -60,20 +60,18 @@
-