From 57e3b607f4d42b92927cf33512bbf4366a079d7a Mon Sep 17 00:00:00 2001 From: Yubao Liu Date: Wed, 14 Feb 2024 16:27:15 +0800 Subject: [PATCH] Always show TOC and move it to bottom on mobile Fixed issue #925. --- _sass/layout/inner-main.scss | 4 ++++ _sass/layout/toc.scss | 4 ---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/_sass/layout/inner-main.scss b/_sass/layout/inner-main.scss index c76aff27b9..ca359a7355 100755 --- a/_sass/layout/inner-main.scss +++ b/_sass/layout/inner-main.scss @@ -43,6 +43,10 @@ order: 1; margin-bottom: 30px; } + + @include bp(medium) { + order: 3; // move TOC to the bottom on mobile + } } .content-nav-blog { diff --git a/_sass/layout/toc.scss b/_sass/layout/toc.scss index 22d9ada330..dfacedd379 100644 --- a/_sass/layout/toc.scss +++ b/_sass/layout/toc.scss @@ -11,10 +11,6 @@ position: relative; } - @include bp(medium) { - display: none; - } - .contents { font-weight: 700; }