Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Make flyout menu scrollable #1297

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

mgeier
Copy link
Contributor

@mgeier mgeier commented Jun 4, 2022

WARNING: I have no clue about SASS, and this is totally untested.

This is my attempt to implement this at the proper place: readthedocs/readthedocs.org#7375

@mgeier
Copy link
Contributor Author

mgeier commented Jun 4, 2022

Some values are overwritten, which is confusing:

badge_only.css has bottom: 20px; which is overwritten by readthedocs-doc-embed.css, which uses bottom: 50px;.

The overwritten value is why I chose max-height: calc(100vh - 50px) here.

Probably the override should be properly applied here instead?

@agjohnson
Copy link
Collaborator

agjohnson commented Jun 6, 2022

Probably the override should be properly applied here instead?

Most likely. Some of those rules in that doc-embed.css file are just hacks around releasing this package.

Though, perhaps for this PR, they can still live separate, to just isolate the scrolling change.

... because it will be overwritten by readthedocs-doc-embed.css anyway.
@mgeier
Copy link
Contributor Author

mgeier commented Jun 8, 2022

I think the remaining question is whether to use 50px or 20px.

Since the 20px is overwritten anyway, I've changed it to 50px: e66e4b1

With this, the override in readthedocs-doc-embed.css could be removed at some point: https://github.com/readthedocs/readthedocs.org/blob/7ac39eefb6e4c681ded6b1bb51e5c5d027e7551b/media/css/readthedocs-doc-embed.css#L9

@mgeier
Copy link
Contributor Author

mgeier commented Sep 3, 2022

Any news on this?

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants