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

Allow scroll on main content overflowing elements + fix anchor links #174

Merged
merged 1 commit into from
May 8, 2020

Conversation

hoetmaaiers
Copy link
Collaborator

@hoetmaaiers hoetmaaiers commented May 6, 2020

This allows scrolling on main content overflowing elements. Currently only table like elements are in need of a scrollbar. Future elements can be added.

Also anchor linkings are working as expected.

This replaces #148 with a much more elegant solution. Although the search for this solution took more time and effort then the resulting css might suggest.

Closes #147

@hoetmaaiers hoetmaaiers changed the title Allow scroll on main content overflowing elements Allow scroll on main content overflowing elements + fix anchor links May 6, 2020
@jorisvandenbossche
Copy link
Member

This works perfect in the preview demo for the large tables!

And for code blocks, it seems we already get this overflow: auto from the sphinx' basic.css we inherit: https://github.com/sphinx-doc/sphinx/blob/62711bc081744cecba2af799ad8dbf678f6a97a4/sphinx/themes/basic/static/basic.css_t#L646-L649

@jorisvandenbossche
Copy link
Member

And the anchor link offsets are also fixed! 😄

@jorisvandenbossche jorisvandenbossche merged commit a8210ff into pydata:master May 8, 2020
@jorisvandenbossche
Copy link
Member

Thanks @hoetmaaiers

@hoetmaaiers hoetmaaiers deleted the bugfix/anchor-links branch May 8, 2020 08:03
@choldgraf choldgraf mentioned this pull request May 28, 2020
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: TOC links jump to section with some offset
2 participants