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; } }