-
Notifications
You must be signed in to change notification settings - Fork 201
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
When using sphinx-hoverxref
together with this theme, links with tooltips are hidden
#577
Comments
Thanks for opening your first issue here! Engagement like this is essential for open source projects! 🤗 |
@humitos - thanks for opening this one up. Hmmm, I can think of two potential ways around this:
Any thoughts or guidance on either of these options? |
I've done something similar in Should I prefix all sphinx-hoverxref with
I'm not aware of the troubles these have been causing, but if they are not being used anymore, removing these is the best option 😄 |
Avoid collisioning with other CSS frameworks/themes/etc. See executablebooks/sphinx-book-theme#577 Closes #180
Prefixing all the classes is not a lot of work and solves the immediate problem, at least. See readthedocs/sphinx-hoverxref#205 |
Avoid collisioning with other CSS frameworks/themes/etc. See executablebooks/sphinx-book-theme#577 Closes #180
I do agree that prefixing things in hoverxref is the easiest path forward and is a good practice. It is similar to what sphinx design uses to avoid the same problem (and annoying that bootstrap doesn't do it) |
Avoid collisioning with other CSS frameworks/themes/etc. See executablebooks/sphinx-book-theme#577 Closes #180
* Prefix all CSS classes with `hxr-` Avoid collisioning with other CSS frameworks/themes/etc. See executablebooks/sphinx-book-theme#577 Closes #180 * Update tests to use the prefix `hxr-` * Refactor code to use CSS prefix variable
Hi! I just released a new version of |
Describe the bug
When using
sphinx-hoverxref
on a Jupyter Book, the links do not appear when the HTML is rendered. However, the HTML tags are there. It seems there is a clash between CSS classes that produces this problem.An issue was open in the
sphinx-hoverxref
repository (readthedocs/sphinx-hoverxref#180) about this problem, but I'm not sure if the problem is there, here, or somewhere else 😅 . I'm copying (and modifying it a bit) and pasting the content of it here.I'm the author of the
sphinx-hoverxref
extension. Let me know if I can be useful somehow here.Reproduce the bug
pip install sphinx-hoverxref jupyter-book matplotlib
jupyter-book create mynewbook/
mynewbook/_config.yml
file to install thesphinx-hoverxref
extensionmynewbook/intro.md
to make usage of the extensionjupyter-book build mynewbook
When you open
mynewbook/_build/html/index.html
you will see that theTerm one
is not shown. However, if you inspect the DOM, the HTML element is there. It seems there is a problem with CSS where Jupyter Book's theme interferes with the.tooltip
(opacity: 0
) and.modal
(display: none
) classes making them invisible.List your environment
The text was updated successfully, but these errors were encountered: