-
-
Notifications
You must be signed in to change notification settings - Fork 561
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
fix: #1732 #1734
fix: #1732 #1734
Conversation
Unfortunately this doesn't work because the line above this overrides everything else, probably because of the !important property.
I don't really understand the reason for this line existing anyway, or especially why it would need to have !important |
removed the !important
Now it works but it's because the inherited style is overriding the non !important css styling. I think these lines should just not exist since they dont do anything unless using !important where they then override everything else. So basically the original 581 line should just be removed and nothing new added imo. Unless I'm missing something? |
You are right, but is it going to work in the dark theme? |
removing the styling for video description text color
hi @vinay-nb! @PoorChameleon |
am i making sense? 8297c1f :
/video detail text color. Fix. video detail text color was wrong in black theme/ |
Yup, this should fix the problem. I will double check this tmr. Mostly likely youtube change the code again. |
Hi, @PoorChameleon Did you check from the master? |
ok I will try to fix it |
Okay so I did some testing and something like this might work, but it needs to be tested thoroughly.
The next two lines below can be removed if exact theming consistency isn't the goal and we just want to keep it simple.
Either YT changes things really often or something, because now the commit way earlier worked. Not sure what is going on. Assuming that this works the desert theme text color could be changed too, maybe to something a bit darker. Note that it's also very likely that this has some redundant styling, but please test thoroughly before removing or changing something so that the colors stay consistent across themes. |
Is adding the Also please let me know the steps to test it locally |
For testing you can just paste each of the lines in for example a stylus userstyle that points to YouTube. Or alternately load the extension in dev mode with those changes applied. The lower two lines aren't really finished so you'd have to test more and probably change them. |
Okay here are mostly tested and probably working rules, they can be adapted to any theme by changing the value after [it-theme=black] .yt-core-attributed-string--link-inherit-color {color: var(--yt-spec-text-primary)}
[it-theme=black] .yt-core-attributed-string--highlight-text-decorator .yt-core-attributed-string__link--display-type {color: var(--yt-spec-text-primary)}
[it-theme=black] .yt-core-attributed-string__link--call-to-action-color {color: var(--yt-spec-call-to-action);} Keep in mind the description colors can still be hard to see on some themes, so the rgb values might have to be changed accordingly for each theme |
check: #1787 |
...
enough thought went into it to make it better rather than worst. Sorry we didn't upload August 28 @PoorChameleon (or earlier. before publishing, we can double check for syntax errors breaking something)
Wanna? 😆😳 (you belong in the contributors list)
youtube uses pseudo html attributes there is-expanded & hidden
(possibly(?) it just looked like, when you clicked dark mode too in between? which is not a theme but changing Youtube's cookie)
hopefully not, however we can chose strategically maybe:
just some alternative selectors:
/* text color */
[it-theme]:not([it-theme=default]):not([it-theme=dark]) #description-inline-expander yt-attributed-string,
[it-theme]:not([it-theme=default]):not([it-theme=dark]) #description-inline-expander .ytd-text-inline-expander,
[it-theme]:not([it-theme=default]):not([it-theme=dark]) ytd-text-inline-expander:first-of-type .ytd-text-inline-expander,
[it-theme]:not([it-theme=default]):not([it-theme=dark]) ytd-text-inline-expander:first-of-type yt-attributed-string
{color:var(--yt-spec-text-primary)}
/*(undo) Link color */
[it-theme]:not([it-theme=default]):not([it-theme=dark]) #description-inline-expander yt-attributed-string a,
[it-theme]:not([it-theme=default]):not([it-theme=dark]) #description-inline-expander .ytd-text-inline-expander a,
[it-theme]:not([it-theme=default]):not([it-theme=dark]) ytd-text-inline-expander:first-of-type .ytd-text-inline-expander a,
[it-theme]:not([it-theme=default]):not([it-theme=dark]) ytd-text-inline-expander:first-of-type yt-attributed-string a
{color:#0073e6!important; color:var(--yt-spec-call-to-action)!important;}
/*(YouTube's default link color, if the variable ever isn't defined?)*/ |
fixed coloring issue for description hyperlinks