From 60aea6541c670583586cd3fd16ccbf17afa4ad0f Mon Sep 17 00:00:00 2001 From: Yubao Liu Date: Fri, 23 Feb 2024 18:11:23 +0800 Subject: [PATCH] Always show TOC and move it to bottom on mobile (#2969) 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 c76aff27b..ca359a735 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 22d9ada33..dfacedd37 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; }