various issues on german wiki - bright background/missing colors
hauk92 opened this issue · 1 comments
Sorry this issue got a bit large, feel free to yell at me to split it.
Also there are probably a lot more issues regarding election results, see https://de.wikipedia.org/wiki/Liste_von_Wahlen
- Browser: Firefox
- Operating System: Windows 10
- Link to page with the issue:
Bright background:
https://de.wikipedia.org/wiki/Wikipedia:Hauptseite
https://de.wikipedia.org/wiki/Wikipedia:Miniaturenwettbewerb
https://de.wikipedia.org/wiki/Wikipedia:Sprachen
https://de.wikipedia.org/wiki/Inuit_Ataqatigiit#Einzelnachweise
https://de.wikipedia.org/wiki/Monaco#Klima
Missing colours etc:
https://de.wikipedia.org/wiki/Parlamentswahl_in_Gr%C3%B6nland_2021
https://de.wikipedia.org/wiki/Parlamentswahl_in_Gr%C3%B6nland_2021#Umfragen
https://de.wikipedia.org/wiki/Bundestagswahl
https://de.wikipedia.org/wiki/Bundestagswahl#Ergebnisse
https://de.wikipedia.org/wiki/Wikipedia:Statistik#Statistiken_zu_sehr_aktiven_Autoren
- Screenshot:
Bright background:
Missing colours etc:
@hauk92 So the first half of the issue is solved now, albeit with a lot more !important
rules than I would like. This is why I don't like inline styles, but it seems dewiki hasn't fully joined the TemplateStyles trend yet.
As for the second part of the issue, fixing those pie charts and bar graphs would essentially require exempting those specific colors from the generic div[style*="background:"]
rule, which will probably poke holes in the style elsewhere. If there were some classes or something to write a selector against, it'd be a different story.
The image background contrast issue is a war that has been waged since this style was first started, and no matter what we do, there will always be images that have the wrong background. We can add selectors specifically for those images, but more will appear. Or we could just make all thumbnail backgrounds white and override this rule for dewiki.
If you've got a better method of fixing those, feel free to submit a PR, but for now I'm going to leave them be.