From 394f1d89d3dd41fe931685f7143bb14b83da403f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Julius=20H=C3=A4rtl?= Date: Wed, 10 Jan 2018 09:11:17 +0100 Subject: [PATCH] Fix appmenu svg double invert MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- apps/theming/css/theming.scss | 13 +++++++++++++ core/templates/layout.user.php | 14 ++++++-------- 2 files changed, 19 insertions(+), 8 deletions(-) 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 @@
-