diff --git a/themes/cypress/source/css/_partial/sidebar.scss b/themes/cypress/source/css/_partial/sidebar.scss index f32780907c..2f174b7673 100644 --- a/themes/cypress/source/css/_partial/sidebar.scss +++ b/themes/cypress/source/css/_partial/sidebar.scss @@ -8,7 +8,7 @@ left: 0; bottom: 0; border-right: 1px solid #f0f3f2; - padding-top: 0; + padding-top: 60px; transition: margin-top 0.2s linear; &::-webkit-scrollbar { diff --git a/themes/cypress/source/css/_partial/toc.scss b/themes/cypress/source/css/_partial/toc.scss index a1ee0a8112..438950ca26 100644 --- a/themes/cypress/source/css/_partial/toc.scss +++ b/themes/cypress/source/css/_partial/toc.scss @@ -8,7 +8,7 @@ opacity: 0.8; justify-self: flex-end; position: fixed; - top: 0; + top: 60px; right: 0; bottom: 0; overflow-y: auto; diff --git a/themes/cypress/source/js/banners_actualization.js b/themes/cypress/source/js/banners_actualization.js index c765688d49..efed06d8cb 100644 --- a/themes/cypress/source/js/banners_actualization.js +++ b/themes/cypress/source/js/banners_actualization.js @@ -7,11 +7,11 @@ function actualizeSidebarsMarginTop (margin) { if (document.querySelector('#sidebar')) { - document.querySelector('#sidebar').style.marginTop = margin.toString() + 'px' + document.querySelector('#sidebar').style.marginTop = (margin - 60).toString() + 'px' } if (document.querySelector('#article-toc')) { - document.querySelector('#article-toc').style.marginTop = margin.toString() + 'px' + document.querySelector('#article-toc').style.marginTop = (margin - 60).toString() + 'px' } }