Skip to content

Commit

Permalink
BUG: Fix bug with report CSS
Browse files Browse the repository at this point in the history
  • Loading branch information
larsoner committed Jan 30, 2024
1 parent 990ce18 commit 71a75fe
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 27 deletions.
1 change: 1 addition & 0 deletions doc/changes/devel/bugfix.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix bugs with :class:`mne.report.Report` CSS where TOC items could disappear at the bottom of the page, by `Eric Larson`_.
5 changes: 0 additions & 5 deletions mne/html/d3.v3.min.js

This file was deleted.

2 changes: 0 additions & 2 deletions mne/html/mpld3.v0.2.min.js

This file was deleted.

19 changes: 19 additions & 0 deletions mne/report/js_and_css/report.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#container {
position: relative;
padding-bottom: 8rem;
}

#content {
margin-top: 90px;
scroll-behavior: smooth;
position: relative; /* for scrollspy */
}

#toc {
margin-top: 90px;
padding-bottom: 8rem;
}

footer {
margin-top: 8rem;
}
19 changes: 0 additions & 19 deletions mne/report/js_and_css/report.sass

This file was deleted.

2 changes: 1 addition & 1 deletion mne/report/report.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@
html_include_dir = Path(__file__).parent / "js_and_css"
template_dir = Path(__file__).parent / "templates"
JAVASCRIPT = (html_include_dir / "report.js").read_text(encoding="utf-8")
CSS = (html_include_dir / "report.sass").read_text(encoding="utf-8")
CSS = (html_include_dir / "report.css").read_text(encoding="utf-8")

MAX_IMG_RES = 100 # in dots per inch
MAX_IMG_WIDTH = 850 # in pixels
Expand Down

0 comments on commit 71a75fe

Please sign in to comment.