From 6f30761378ba34ae2db0bef31b03cc7e97345735 Mon Sep 17 00:00:00 2001 From: Jaifroid Date: Thu, 3 Aug 2017 12:30:06 +0100 Subject: [PATCH] Ensure Kiwix icon is rendered correctly Former-commit-id: 692c89fb6a88f76590d5774e99049eb8fee9065b [formerly 224b8954c6123ff234192f5492ca91d0ab4408da] Former-commit-id: 47256528b0132a979558fff0c07bedb81fa0d456 --- bin/Release/AppX/vs.appxrecipe | 4 ++-- bin/Release/AppX/www/-/s/style-dark.css | 4 ++-- www/-/s/style-dark.css | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/bin/Release/AppX/vs.appxrecipe b/bin/Release/AppX/vs.appxrecipe index 28c4eee1..25a43f84 100644 --- a/bin/Release/AppX/vs.appxrecipe +++ b/bin/Release/AppX/vs.appxrecipe @@ -32,7 +32,7 @@ AppxManifest.xml true - 2017-08-02T21:47:27.355 + 2017-08-03T06:44:44.458 @@ -371,7 +371,7 @@ www\-\s\style-dark.css - 2017-08-02T21:47:09.941 + 2017-08-03T06:44:19.647 www\-\s\style-mobile.css diff --git a/bin/Release/AppX/www/-/s/style-dark.css b/bin/Release/AppX/www/-/s/style-dark.css index 849befcc..580ae84d 100644 --- a/bin/Release/AppX/www/-/s/style-dark.css +++ b/bin/Release/AppX/www/-/s/style-dark.css @@ -174,7 +174,7 @@ td[style*="background:#F2F2F2"], table.wikitable > tbody > tr[style*="background } /* add a white background to transparent images; see * https://forum.userstyles.org/discussion/48549/x */ - img[data-kiwixsrc$=".svg"], img[data-kiwixsrc*="transparent"], a.image img, a[href*=".svg"] img { + img[data-kiwixsrc$=".svg"], a.image img, a[href*=".svg"] img { background: #ddd !important; } @@ -326,7 +326,7 @@ td[style*="border-bottom"] { /*** invert images ***/ img[title="Wikipedia"], .bookshelf-container .bookend, img.mwe-math-fallback-image-inline, #mw-wsmfinal-close, img[src*="Speaker_Icon"], .infobox img[alt*="structure"][src*=".svg"], img[src*=".png"]:active, - img[src*=".svg"][height="16"], img[src*=".svg"][height="17"], img[src*=".svg"][height="18"], + img[src*=".svg"][height="16"], img[src*=".svg"][height="17"], img[src*=".svg"][height="18"], img[data-kiwixsrc*="Kiwix"], .oo-ui-iconElement-icon:not(.mw-echo-notifications-badge), .RTsettings, #gtx-host, .jfk-bubble-closebtn, #pt-notifications-notice .mw-echo-notifications-badge:before, .oo-ui-pendingElement-pending, #pt-notifications-alert .mw-echo-notifications-badge:before { diff --git a/www/-/s/style-dark.css b/www/-/s/style-dark.css index 849befcc..832ff155 100644 --- a/www/-/s/style-dark.css +++ b/www/-/s/style-dark.css @@ -174,7 +174,7 @@ td[style*="background:#F2F2F2"], table.wikitable > tbody > tr[style*="background } /* add a white background to transparent images; see * https://forum.userstyles.org/discussion/48549/x */ - img[data-kiwixsrc$=".svg"], img[data-kiwixsrc*="transparent"], a.image img, a[href*=".svg"] img { + img[data-kiwixsrc$=".svg"], img[data-kiwixsrc*="Kiwix_logo"], a.image img, a[href*=".svg"] img { background: #ddd !important; } @@ -326,7 +326,7 @@ td[style*="border-bottom"] { /*** invert images ***/ img[title="Wikipedia"], .bookshelf-container .bookend, img.mwe-math-fallback-image-inline, #mw-wsmfinal-close, img[src*="Speaker_Icon"], .infobox img[alt*="structure"][src*=".svg"], img[src*=".png"]:active, - img[src*=".svg"][height="16"], img[src*=".svg"][height="17"], img[src*=".svg"][height="18"], + img[src*=".svg"][height="16"], img[src*=".svg"][height="17"], img[src*=".svg"][height="18"], img[data-kiwixsrc*="Kiwix_icon"], .oo-ui-iconElement-icon:not(.mw-echo-notifications-badge), .RTsettings, #gtx-host, .jfk-bubble-closebtn, #pt-notifications-notice .mw-echo-notifications-badge:before, .oo-ui-pendingElement-pending, #pt-notifications-alert .mw-echo-notifications-badge:before {