-
Notifications
You must be signed in to change notification settings - Fork 328
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
Customizing css variables of theme.css seems to have no impact for some variables. #339
Comments
I searched a bit for the reason. As it turns out the variables
where defined in this commit but not actually used to define the color of the navbar links. |
Yes, indeed, it seems we missed that in the PR. Only pydata-sphinx-theme/src/scss/_navbar.scss Lines 31 to 40 in b5351c5
We should add the main color and hover color there as well. It seems that for the left sidebar and the right TOC, we correctly used all three variables. Thanks for the catch! |
@jorisvandenbossche |
I am trying to customize some of the colors of my website. To this end I try using css variables as outlined here:
https://pydata-sphinx-theme.readthedocs.io/en/latest/user_guide/customizing.html#css-theme-variables
I run the following pydata-sphinx-theme version:
And I have the following custom.css:
I choose the colors to clearly demonstrate my point. Now as you can see in the screenshot below
--pst-color-navbar-link-active
and--pst-color-sidebar-link
seem to work while--pst-color-navbar-link
seems to have no effect.Can you explain to me what I am doing wrong or fix it in case it is a bug?
The text was updated successfully, but these errors were encountered: