From cbe23a8fc1d0d1cd2181c46c67e84c6f6086d2cb Mon Sep 17 00:00:00 2001 From: sunface Date: Fri, 25 Mar 2022 11:27:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=AF=BC=E8=88=AA=E5=9B=BE?= =?UTF-8?q?=E6=A0=87=E8=A2=AB=E7=AB=A0=E8=8A=82=E7=9B=AE=E5=BD=95=E9=81=AE?= =?UTF-8?q?=E7=9B=96=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- theme/style.css | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/theme/style.css b/theme/style.css index bc2756e9..3c90a93a 100644 --- a/theme/style.css +++ b/theme/style.css @@ -19,7 +19,7 @@ .pagetoc { position: fixed; width: 200px; - height: calc(100vh - var(--menu-bar-height) - 0.67em * 4); + height: calc(100vh - var(--menu-bar-height) - 20rem); overflow: auto; z-index: 1000; } @@ -70,3 +70,12 @@ table { margin-left: 0 !important; } +/* 只使用底部的页面跳转,因为左右两边的宽跳转会被 page-toc 遮盖 */ +@media only screen and (max-width: 2560px) { + .nav-wide-wrapper { display: none; } + .nav-wrapper { display: block; } +} +@media only screen and (max-width: 2560px) { + .sidebar-visible .nav-wide-wrapper { display: none; } + .sidebar-visible .nav-wrapper { display: block; } +} \ No newline at end of file