Skip to content

BUG: Fix bug with report CSS#12399

Merged
larsoner merged 3 commits intomne-tools:mainfrom
larsoner:report-toc
Jan 30, 2024
Merged

BUG: Fix bug with report CSS#12399
larsoner merged 3 commits intomne-tools:mainfrom
larsoner:report-toc

Conversation

@larsoner
Copy link
Copy Markdown
Member

Closes #12397

Looks like the bug was the use of a .sass file (with sass syntax) but embedding as CSS. Let's keep it simple and stick to vanilla CSS like we do everywhere else. Note the nav bar omitting several items at the end, plus the error in the #toc in the inspector on main fixed by the PR:

main PR
Screenshot from 2024-01-30 13-37-53 Screenshot from 2024-01-30 14-06-10

Also removes two cruft files from mne/html that aren't used anymore according to git grep "d3\.v3" and git grep mpld3 for example. Not touching the Report tutorial since it doesn't show the problem (not enough TOC entries).

Copy link
Copy Markdown
Member

@drammock drammock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just one question otherwise LGTM

Comment on lines +14 to +18
padding-bottom: 8rem;
}

footer {
margin-top: 8rem;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just checking: was it intentional to switch from 5 to 8 here? the .sass file had #toc.padding-bottom: 5rem and footer.margin-top: 5rem

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah 5 was not enough, 8 was determined empirically

@larsoner larsoner enabled auto-merge (squash) January 30, 2024 19:32
@larsoner larsoner merged commit 324899a into mne-tools:main Jan 30, 2024
@larsoner larsoner deleted the report-toc branch January 30, 2024 20:14
snwnde pushed a commit to snwnde/mne-python that referenced this pull request Mar 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BUG: Report TOC with many items has last few invisible

2 participants