Skip to content

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

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

Closed
jarrodmillman opened this issue Apr 26, 2024 · 4 comments · Fixed by #1955
Closed

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

jarrodmillman opened this issue Apr 26, 2024 · 4 comments · Fixed by #1955
Labels
tag: CSS CSS and SCSS related issues

Comments

@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

@trallard
Copy link
Collaborator

As I started looking into our whole webpack configuration and vendoring I thought I would update here.

It seems it is like mentioned above probably an oversight/ leftover from previous interations. And we only need importing once.
I shall be opening a PR addressing this as well as other webpack improvements (that should also help with performance improvements).

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

Successfully merging a pull request may close this issue.

5 participants