diff --git a/CHANGELOG.md b/CHANGELOG.md index fbd9012c..e4e5b10e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ * FIX: Search bar always remains on-screen if selected (in non-mobile contexts) * FIX: All images above the fold are now loaded (async timing of image scanning was premature) * FIX: Math typeset by KaTeX is rendered better when there are mbox statements (fbox is used instead) +* FIX: Display-style maths SVGs are now correctly inverted in dark mode * UPDATE: Updated KaTeX library to v0.11.1 * ENHANCEMENT: Include more files in PWA payload to allow better offline functionality in PWA scenarios * ENHANCEMENT: Appxbundle is now signed with Kiwix certificate for a better sideloading experience diff --git a/www/-/s/style-dark-invert.css b/www/-/s/style-dark-invert.css index 776615bb..dcd84bd4 100644 --- a/www/-/s/style-dark-invert.css +++ b/www/-/s/style-dark-invert.css @@ -1,8 +1,11 @@ html, img, video { - /*-webkit-filter: invert(1) hue-rotate(180deg);*/ filter: invert(1) hue-rotate(180deg); } -body { - background: black !important; +img.mwe-math-fallback-image-inline, img.mwe-math-fallback-image-display { + filter: hue-rotate(180deg); +} + +body { + background: black !important; } diff --git a/www/-/s/style-dark.css b/www/-/s/style-dark.css index cbcc46d9..ac62e7e3 100644 --- a/www/-/s/style-dark.css +++ b/www/-/s/style-dark.css @@ -361,7 +361,7 @@ ul, .portlet li {x } /*** invert images ***/ -img[title="Wikipedia"], .bookshelf-container .bookend, img.mwe-math-fallback-image-inline, +img[title="Wikipedia"], .bookshelf-container .bookend, img.mwe-math-fallback-image-inline, img.mwe-math-fallback-image-display, #mw-wsmfinal-close, img[data-kiwixsrc*="Speaker_Icon"], .infobox img[alt*="structure"][data-kiwixsrc*=".svg"], img[data-kiwixsrc*=".png"]:active, img[data-kiwixsrc*=".svg"][height="16"], img[data-kiwixsrc*=".svg"][height="17"], img[data-kiwixsrc*=".svg"][height="18"], img[data-kiwixsrc*="Kiwix_icon"], .oo-ui-iconElement-icon:not(.mw-echo-notifications-badge), .RTsettings, #gtx-host, .jfk-bubble-closebtn, diff --git a/www/index.html b/www/index.html index 7dd5e802..1d44e6c4 100644 --- a/www/index.html +++ b/www/index.html @@ -108,9 +108,11 @@