canjs / bit-docs-html-canjs

The plugins to produce CanJS.com
https://www.npmjs.com/package/bit-docs-html-canjs
MIT License
7 stars 0 forks source link

Make it so only the TOC area scrolls in the right sidebar #544

Closed chasenlehara closed 5 years ago

chasenlehara commented 5 years ago

The Get Help section is now pinned to the bottom right of the sidebar. The TOC portion of the sidebar is its own independently-scrollable area.

@jamiemccue, please let me know if there’s anything you think we should change about the design/layout.

Fixes https://github.com/canjs/bit-docs-html-canjs/issues/530

Short TOC

Even when the TOC is not very long, the Get Help links stick to the bottom of the right sidebar:

Screen Shot 2019-06-17 at 3 54 54 PM

Long TOC

When the TOC is longer, it gets cut off by a border between it and the Get Help links:

Screen Shot 2019-06-17 at 3 55 08 PM

TOC in action

Here’s what it looks like when you scroll down the page and scroll inside the TOC:

sidebar

Without a TOC

Some pages don’t have a TOC. The Get Help links still stick to the bottom:

Screen Shot 2019-06-17 at 3 58 42 PM