diff --git a/themes/DeepThought/sass/deep-thought.sass b/themes/DeepThought/sass/deep-thought.sass index 7f0f440..825380f 100644 --- a/themes/DeepThought/sass/deep-thought.sass +++ b/themes/DeepThought/sass/deep-thought.sass @@ -508,6 +508,10 @@ $footer-padding: 1.0rem 2.5rem .navbar-end flex-wrap: wrap!important + /* hide for 1023px instead of default 768px */ + .is-hidden-mobile + display: none !important + html scroll-behavior: smooth @@ -586,5 +590,5 @@ code color: #AE3B8B .icon-text - font-size: 18px + font-size: 16px diff --git a/themes/DeepThought/static/js/site.js b/themes/DeepThought/static/js/site.js index c28903e..648ea73 100644 --- a/themes/DeepThought/static/js/site.js +++ b/themes/DeepThought/static/js/site.js @@ -29,12 +29,7 @@ const menuAbsTop = menuRect.top - bodyRect.top; const elemAbsBottom = elemRect.bottom - bodyRect.top; const h = (window.innerHeight || document.documentElement.clientHeight); - if(elemAbsBottom > menuAbsTop + h - 48 - bottomGap){ - document.querySelector(".menu").style = "position: sticky; top: " + (menuAbsTop - elemAbsBottom + h - bottomGap).toString() + "px"; - } - else{ - document.querySelector(".menu").style = "position: sticky; top: 48px;"; - } + document.querySelector(".menu").style = "position: sticky; top: 48px;"; } function activateIfVisible() {