Brion VIBBER has submitted this change and it was merged. Change subject: Fix appearance of images in Night mode. ......................................................................
Fix appearance of images in Night mode. - Explicitly apply a white background for images, so that images with transparency will appear correctly (since most images were intended to be viewed on a white background) - However, for math formulae, keep the background transparent, but invert the image using a filter! Change-Id: Ide2db30a6eeebb6a92a94740bfea0eb6719c9ce8 --- M less/night.less 1 file changed, 9 insertions(+), 0 deletions(-) Approvals: Brion VIBBER: Looks good to me, approved diff --git a/less/night.less b/less/night.less index 4906945..62fd163 100644 --- a/less/night.less +++ b/less/night.less @@ -12,6 +12,15 @@ background-image: url( 'images/external-link-ltr.png' ); } +img { + background: #fff; +} + +img.mwe-math-fallback-png-inline { + background: none; + -webkit-filter: invert(100%); +} + /* Same specificity as in less/content/main.less */ .content table td, .content table th { -- To view, visit https://gerrit.wikimedia.org/r/148995 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: Ide2db30a6eeebb6a92a94740bfea0eb6719c9ce8 Gerrit-PatchSet: 3 Gerrit-Project: mediawiki/extensions/MobileApp Gerrit-Branch: master Gerrit-Owner: Dbrant <dbr...@wikimedia.org> Gerrit-Reviewer: Brion VIBBER <br...@wikimedia.org> Gerrit-Reviewer: Legoktm <legoktm.wikipe...@gmail.com> Gerrit-Reviewer: Yuvipanda <yuvipa...@gmail.com> Gerrit-Reviewer: jenkins-bot <> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits