Skip to content
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

Why is @import "variables/bootstrap"; imported twice? #1788

Open
jarrodmillman opened this issue Apr 26, 2024 · 3 comments
Open

Why is @import "variables/bootstrap"; imported twice? #1788

jarrodmillman opened this issue Apr 26, 2024 · 3 comments
Labels
tag: CSS CSS and SCSS related issues

Comments

@jarrodmillman
Copy link
Collaborator

@12rambau
Copy link
Collaborator

Initially everything was in pydata-sphinx-theme.scss I guess when I created bootstrap.scss I forgot to remove it from the other file.
I'm not completely fluent in scss so better check if variables should be imported in both (as both files are using these custom variables that overwrite default bootstrap).

@trallard trallard added the tag: CSS CSS and SCSS related issues label Apr 29, 2024
@trallard
Copy link
Collaborator

I do not think we need a double import per the hierarchy we follow (https://github.com/pydata/pydata-sphinx-theme/blob/main/src/pydata_sphinx_theme/assets/styles/pydata-sphinx-theme.scss?rgh-link-date=2024-04-26T02%3A13%3A11Z has all the scss imports we need)

@gabalafou do you have any insights?

@gabalafou
Copy link
Collaborator

gabalafou commented May 24, 2024

Not an expert, but my guess is that the file needs to be imported in both places since bootstrap.scss and pydata-sphinx-theme.scss go to different build targets

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tag: CSS CSS and SCSS related issues
Projects
None yet
Development

No branches or pull requests

4 participants