GaurangTandon / codeforces-darktheme

A dark theme built for Codeforces
MIT License
121 stars 34 forks source link

First letter of legendary master handle is black on standing pages #25

Closed user202729 closed 4 years ago

user202729 commented 4 years ago

For example: https://codeforces.com/contest/1329/standings

Possible fix:


span.user-legendary::first-letter, a.user-legendary::first-letter {
    color: #fff !important;
}
GaurangTandon commented 4 years ago

Thanks! I have tried fixing this before, like:

  1. I selected the element <span class="legendary-user-first-letter">U</span> via DevTools.
  2. I put color: white !important in element.style, and also disabled the style .legendary-user-first-letter { color: black !important; } present in community.css.

Here's a screenshot:

image

Yet the black color on Umnik's handle won't go away. I do not understand what's wrong. Do you have any idea?

user202729 commented 4 years ago

Read the "possible fix" snippet in the comment above...

GaurangTandon commented 4 years ago

Ah, I did read it, but when testing, i just went for element.style first. I'm surprised element.style didn't work but the fix you suggested, using only CSS selectors, works.

I'll deploy a fix by tomorrow, thanks!

GaurangTandon commented 4 years ago

Fixed in https://github.com/GaurangTandon/codeforces-darktheme/commit/a11094061b97d34acde5b78d26f54473a953b8e2, sorry for the delay, as I was testing it locally for a while and forgot to bump version.