diff --git a/source/css/_layout/sidebar.styl b/source/css/_layout/sidebar.styl index 6c44324..ac9ddfc 100644 --- a/source/css/_layout/sidebar.styl +++ b/source/css/_layout/sidebar.styl @@ -10,6 +10,8 @@ overflow: hidden >.content max-height: "calc(100vh - %s)" % ($gap * 5 + $navbar-height) + @media screen and (max-width: $device-tablet) + max-height: none overflow: auto scrollbar() text-align: justify diff --git a/source/css/_layout/toc.styl b/source/css/_layout/toc.styl index cd23558..a092f57 100644 --- a/source/css/_layout/toc.styl +++ b/source/css/_layout/toc.styl @@ -12,6 +12,7 @@ top: 0 padding-bottom: $gap * 0.25 .content + max-height: "calc(100vh - %s)" % ($gap * 5 + $navbar-height) a border-left: $border-line solid transparent &:hover