Skip to content

Make flyout menu scrollable#1297

Open
mgeier wants to merge 2 commits into
readthedocs:masterfrom
mgeier:patch-2
Open

Make flyout menu scrollable#1297
mgeier wants to merge 2 commits into
readthedocs:masterfrom
mgeier:patch-2

Conversation

@mgeier
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Contributor Author

mgeier commented Sep 3, 2022

Any news on this?

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.

2 participants