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

doc: decouple sidebar scrolling #1274

Closed
wants to merge 5 commits into from
Closed
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 14 additions & 2 deletions doc/api_assets/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,19 @@ span.type {

#column2.interior {
width: 234px;
float: left;
position: fixed;
height: 100%;
overflow-y: scroll;
}

#column2.interior:after {
content: '';
position: fixed;
bottom: 0;
width: 234px;
height: 5em;
background: linear-gradient(rgba(242,245,240, 0), rgba(242,245,240, 1));
pointer-events: none;
}

#column2 ul {
Expand All @@ -360,7 +372,7 @@ span.type {
margin-top: 1.25em;
background: #f2f5f0;
margin-bottom: 0;
padding-bottom: 2.5em;
padding-bottom: 5em;
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not a big fan of how large this padding is, could we do with something smaller, maybe 2em?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Unfortunately it needs to be big now with the gradient, or else items would still be faded out when scrolled to the end. I think 4em is the lower limit, I'll experiment a bit.

}

#column2 ul li {
Expand Down