From d208752dc93fbb2871ce00829f3830cdb8fae92a Mon Sep 17 00:00:00 2001 From: xaoxuu Date: Fri, 10 Apr 2020 14:39:27 +0800 Subject: [PATCH] max-height --- source/css/_layout/sidebar.styl | 2 ++ source/css/_layout/toc.styl | 1 + 2 files changed, 3 insertions(+) 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