From 8009f28d92f8ac97d71be2a8b59faaf3daee2385 Mon Sep 17 00:00:00 2001 From: Junyi Hou Date: Mon, 4 Mar 2024 19:40:18 +0800 Subject: [PATCH 1/3] fix bug --- assets/css/main.css | 6 +++--- layouts/partials/toc.html | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/assets/css/main.css b/assets/css/main.css index ffdb245..b1e4c32 100644 --- a/assets/css/main.css +++ b/assets/css/main.css @@ -75,7 +75,7 @@ main { /* Table of Contents */ .toc { - cursor: zoom-in; + /* cursor: zoom-in; */ display: block; margin-top: 1em; @@ -89,10 +89,10 @@ main { font-size: 14px; font-weight: bold; } - +/* .toc.expanded { cursor: zoom-out; -} +} */ .toc .inner { margin: 0px; diff --git a/layouts/partials/toc.html b/layouts/partials/toc.html index 8265022..ee90aee 100644 --- a/layouts/partials/toc.html +++ b/layouts/partials/toc.html @@ -5,7 +5,7 @@ {{ end }} - --> From 0f2fc3052942fb6a7f2d533def727b7db52f4be7 Mon Sep 17 00:00:00 2001 From: Junyi Hou Date: Mon, 4 Mar 2024 19:40:35 +0800 Subject: [PATCH 2/3] add: smooth scroll --- assets/css/main.css | 1 + 1 file changed, 1 insertion(+) diff --git a/assets/css/main.css b/assets/css/main.css index b1e4c32..bae2708 100644 --- a/assets/css/main.css +++ b/assets/css/main.css @@ -37,6 +37,7 @@ html { /* 2 */ -webkit-text-size-adjust: 100%; /* 2 */ + scroll-behavior: smooth; } body { From e9269aadb8170bd1102bb49cf6ba7c0a957a5be3 Mon Sep 17 00:00:00 2001 From: Junyi Hou Date: Mon, 4 Mar 2024 19:44:29 +0800 Subject: [PATCH 3/3] fix bug --- assets/css/main.css | 6 +++--- layouts/partials/toc.html | 20 +++++++++++--------- 2 files changed, 14 insertions(+), 12 deletions(-) diff --git a/assets/css/main.css b/assets/css/main.css index bae2708..ef6683c 100644 --- a/assets/css/main.css +++ b/assets/css/main.css @@ -76,7 +76,7 @@ main { /* Table of Contents */ .toc { - /* cursor: zoom-in; */ + cursor: zoom-in; display: block; margin-top: 1em; @@ -90,10 +90,10 @@ main { font-size: 14px; font-weight: bold; } -/* + .toc.expanded { cursor: zoom-out; -} */ +} .toc .inner { margin: 0px; diff --git a/layouts/partials/toc.html b/layouts/partials/toc.html index ee90aee..d69fa77 100644 --- a/layouts/partials/toc.html +++ b/layouts/partials/toc.html @@ -5,15 +5,17 @@ {{ end }} - +