Skip to content
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

Another bunch of fixes #175

Merged
merged 1 commit into from
Apr 21, 2021
Merged

Conversation

Atexor
Copy link
Contributor

@Atexor Atexor commented Apr 18, 2021

Hello,

Another bunch of fixes for following sites:

  1. https://en.wikipedia.org/wiki/Polka
  2. https://en.wikipedia.org/wiki/Th%C3%B3rsm%C3%B6rk
  3. https://en.wikipedia.org/wiki/Hematopoietic_stem_cell_transplantation
  4. https://de.wikipedia.org/wiki/Wikipedia:Sprachen#Chronologie
  5. https://pl.wikipedia.org/wiki/HD_188753_A_b
  6. https://en.wikipedia.org/wiki/Wikipedia:Administrator_intervention_against_vandalism
  7. https://en.wikipedia.org/wiki/Wikipedia:Content_translation_tool
  8. https://en.wikipedia.org/wiki/12_Angry_Men_(1997_film)
  9. https://pl.wikipedia.org/wiki/Alfa_Centauri
  10. https://en.wikipedia.org/wiki/Trichotillomania
  11. https://en.wikipedia.org/wiki/Dysosmia
  12. https://en.wikipedia.org/wiki/General_Hux
  13. https://en.wikipedia.org/wiki/Kong%C5%8D_Range#References
  14. https://en.wikipedia.org/wiki/Laugavegur
  15. https://en.wikipedia.org/wiki/Icelandic_language
  16. https://en.wikipedia.org/wiki/2010_eruptions_of_Eyjafjallaj%C3%B6kull
  17. https://pl.wikipedia.org/wiki/Shoemaker-Levy_9
  18. https://pl.wikipedia.org/wiki/Kwas_alginowy
  19. https://de.wikipedia.org/wiki/Reykjav%C3%ADk#Klima
  20. https://ru.wikipedia.org/wiki/%D0%A0%D0%B5%D0%B9%D0%BA%D1%8C%D1%8F%D0%B2%D0%B8%D0%BA
  21. https://pl.wikipedia.org/wiki/Nowy_wspania%C5%82y_%C5%9Bwiat

Additional informations:

  • For page 21, I can't fix image background completely because it needed to delete and change multiple rules.
  • I have disabled inverting colors for various images because on one page it caused problems. I didn't notice any problems because of doing that. I also noticed that it fixed many issues with inverted images on issue Image colours being inverted #145.
  • I used again figure[typeof*="mw"] > figcaption in another place. It was necessary for Translation Tool subpage.

Have a nice day

@the-j0k3r
Copy link
Member

Please have a look at https://github.com/StylishThemes/Wikipedia-Dark/blob/master/CONTRIBUTING.md#development-scripts

npm run clean and npm run authors should be run before pushing the commit button.

thanks.

@AfroThundr3007730

Comment on lines +782 to +784
#mw-content-text .infobox-above[style*="background-color: #c9ffd9;"],
#mw-content-text .infobox-above[style*="background:#F6DA9F"],
#mw-content-text .infobox tr[style*="background:#F8C9B0;"] td,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generally, the headers on infoboxes should be light text on a dark background, to match the inverted style of the rest of the page. This would mean finding a darker version of the light background that works well and has a high enough contrast with the text.

Of course, this is an uphill battle, and we would end up adding dozens more colors to our palette (which isn't neccessarily a bad thing). If there is an existing color defined in the style that would work as a replacement, we should use that instead. So either way works, I suppose.

td[style="background: #4169E1;"],
td[style="background: #8AB0FF;"],
tr[style*="background:#E5D8C0;"] > td {
color: var(--gray-1);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A good npm run clean and npm run test would ensure that these are formatted according to the style guide. I'll run them shortly anyway, but ideally the commit should have those corrections already.

@AfroThundr3007730 AfroThundr3007730 changed the base branch from master to minor-tweaks April 21, 2021 01:20
@AfroThundr3007730 AfroThundr3007730 merged commit 78e10bf into StylishThemes:minor-tweaks Apr 21, 2021
@AfroThundr3007730
Copy link
Member

@Atexor Thanks for the PR. Also take a look at the comment from Joker above, as well as the ones I left on the diff as tips for future contributions.

@@ -1990,7 +2053,8 @@ regexp("https?:\/\/wiki\.(archlinux|mozilla)\.(org|jp)\/.*$") {
.ns-talk .mw-body-content dl dl dl dl dl dl dl dl dl dl,
.ns-talk .mw-body-content dl dl dl dl dl dl dl dl dl dl dl dl,
.ns-talk .mw-body-content dl dl dl dl dl dl dl dl dl dl dl dl dl dl,
table:not([style*="efe"]).wikitable td:not([bgcolor]), table.prettytable td,
table:not([style*="efe"]):not([background-color:transparent;]).wikitable td:not([bgcolor]),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe this was meant to be :not([style*="background-color:transparent;"])?

AfroThundr3007730 added a commit that referenced this pull request Apr 21, 2021
* Run clean, fixed typo (Eddie James Carswell II)
* Another bunch of fixes (#175) (Atexor)
* Fix survey background color (#173) (TotalCaesar659)
* Fix projects background color (#172) (TotalCaesar659)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants