~xdavidwu/xdavidwu.link

ece76c962fd5c932c35d7b47fb11aec2e494e069 — Michael Rose 7 years ago 0e61603 + 8765526
Merge branch 'sidebar-scrollbar'
2 files changed, 12 insertions(+), 0 deletions(-)

M CHANGELOG.md
M _sass/minimal-mistakes/_sidebar.scss
M CHANGELOG.md => CHANGELOG.md +6 -0
@@ 1,3 1,9 @@
## Unreleased

### Enhancements

- Add scrollbar to sidebars with overflowing content that extends outside the viewport's height. [#706](https://github.com/mmistakes/minimal-mistakes/issues/706)

## [4.4.2](https://github.com/mmistakes/minimal-mistakes/releases/tag/4.4.2)

### Enhancements

M _sass/minimal-mistakes/_sidebar.scss => _sass/minimal-mistakes/_sidebar.scss +6 -0
@@ 22,6 22,12 @@
    &:hover {
      opacity: 1;
    }

    &.sticky {
      overflow-y: auto;
      /* calculate height of nav list */
      height: calc(100vh - 90px - 2em); // viewport height - approx. masthead height - main content top margin
    }
  }

  @include breakpoint($x-large) {