From f68d2c89d01100ee4a0283985535ae902e80de72 Mon Sep 17 00:00:00 2001 From: "Yun.kou" Date: Thu, 21 Sep 2023 12:14:01 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix=20#1266=20:=20=20fixed=20pag?= =?UTF-8?q?e=20navigation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- theme/style.css | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/theme/style.css b/theme/style.css index 5dbb3749..dfbb6437 100644 --- a/theme/style.css +++ b/theme/style.css @@ -74,11 +74,20 @@ table { /* 只使用底部的页面跳转,因为左右两边的宽跳转会被 page-toc 遮盖 */ @media only screen and (max-width: 2560px) { .nav-wide-wrapper { display: none; } - .nav-wrapper { display: block; } + .nav-wrapper { + display: block; + position: fixed; + bottom: 50px; + left: var(--page-padding); + right: var(--page-padding); + } } @media only screen and (max-width: 2560px) { .sidebar-visible .nav-wide-wrapper { display: none; } - .sidebar-visible .nav-wrapper { display: block; } + .sidebar-visible .nav-wrapper { + display: block; + left: calc(var(--sidebar-width) + var(--page-padding)); + } }