From 7b9f1f1e16c9f8fb7e6702839de6c766c337db11 Mon Sep 17 00:00:00 2001 From: Martin Price Date: Thu, 15 Sep 2022 09:26:13 +0100 Subject: [PATCH] Fix for 768px by @olafgrabienski --- css/tocbot-style.css | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/css/tocbot-style.css b/css/tocbot-style.css index b56d654..d861b8a 100644 --- a/css/tocbot-style.css +++ b/css/tocbot-style.css @@ -1,8 +1,5 @@ -.js-toc-block { - position: relative; -} .js-toc-block.is-position-fixed { - top: 80px; + position: relative !important; } .toc-list-item { list-style-type: none; @@ -14,14 +11,10 @@ height: 2rem; } -@media (max-width: 48em) { - .js-toc-block.is-position-fixed { - position: relative !important; - top: unset; - } -} @media (min-width: 48em) { .js-toc-block.is-position-fixed { + position: fixed !important; + top: 80px; max-width: 150px; } }