-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HOW-TO: Workaround for a pure black background #119
Comments
Thanks. |
Something changed in the most recent updates this week. This pure black background workaround doesn't work anymore. The header, sidebar, and footer are black, but the main article area is back to the default grey. When I downgrade back to version v3.4.17 it works. So some change between v3.4.17 and v3.4.20 broke this. |
Only by looking at the diffs https://github.com/StylishThemes/Wikipedia-Dark/commits/master could we tell. Looks like it was the addition at 1fef1e4 .mw-body[role="main"] {
background: var(--gray-2) !important;
} |
It was a simple fix, will merge when I have time. Meanwhile feel free to remove that and place Wikipedia-Dark/wikipedia-dark.user.css Line 390 in d4030ca
When I release a fix youll need to force update the style, local edits trump auto updates, |
Thanks! I appreciate it |
The
README.md
mentions that a background image can be applied, but changing the background color is very difficult with Wikipedia's CSS. As a workaround, you can use a base64-encoded image of a single black pixel, and ensure the "Background Image Type" is set to the default "Tiled".Here's the base64 URL for the black background. Put this in the field for "Custom background; include url()":
url("data:image/gif;base64,R0lGODlhAQABAIAAAAUEBAAAACwAAAAAAQABAAACAkQBADs=")
It's not perfect, but it is black! 😉
I thought I'd leave this issue here in case it adds any creative ideas for touching up the README or future PRs. Perhaps there is a way to generate this base64 in a JS library based off of user-supplied CSS colors? 🔥
The text was updated successfully, but these errors were encountered: