-
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
Bootstrap is being loaded twice #83
Comments
The second highlight shouldn't be bootstrap, it's our custom css that is called "sphinx-bootstrap.css": https://github.com/pandas-dev/pydata-bootstrap-sphinx-theme/blob/master/pandas_sphinx_theme/static/sphinx-bootstrap.css_t Can you describe the bug you were seeing? |
Ah that's a good point, I just saw "bootstrap" in another file and assumed it was being double-loaded. The problem I ran into was with a button (to close, e.g., a topbar or sidebar). It was a slight modification of this theme's CSS but all the files etc were loaded the same. I found that I needed to click the button twice in order to trigger its behavior. When I looked online a lot of people reported that this happened if you loaded bootstrap twice instead of once, which is why I started looking for other files called bootstrap. What is |
The |
Ah yeah that makes sense - hmmm, so then I need to figure out why the button behaves differently |
I made some attempt to restructure the css files into a single scss stylesheet. In this attempt the Therefore a smaller PR for style restructuring is over here: #101. |
This one is solved I believe? |
yep! |
I ran into a weird bug and I realized that it was because bootstrap CSS was being loaded twice. Here's a screenshot of the raw HTML for one of our pages:
I believe that the problem is we are manually loading bootstrap from the CDN, and then it seems to also be loaded from calling the
{{ css() }}
function. Any idea why that function would load bootstrap?The text was updated successfully, but these errors were encountered: