diff --git a/pydata_sphinx_theme/layout.html b/pydata_sphinx_theme/layout.html index f3719e77b..55acb2b2f 100644 --- a/pydata_sphinx_theme/layout.html +++ b/pydata_sphinx_theme/layout.html @@ -33,7 +33,7 @@ {% block sidebarsourcelink %}{% endblock %} {% block body_tag %} - + {%- endblock %} {%- block content %} {% block docs_navbar %} @@ -42,55 +42,59 @@ {% endblock %} -
-
- {% block docs_sidebar %} -
- {%- include "docs-sidebar.html" %} -
- {% endblock %} - - {% block docs_toc %} -
- {% if not (meta is not none and 'notoc' in meta) %} - {%- include "docs-toc.html" %} - {% endif %} -
- {% endblock %} - - {% block docs_main %} -
- {% block docs_body %} -
- {% block body %} {% endblock %} -
- {% endblock %} - {% if theme_show_prev_next %} -
- {{ prev_next(prev, next) }} -
- {% endif %} -
- {% endblock %} +
+
+
+ {% block docs_sidebar %} +
+ {%- include "docs-sidebar.html" %} +
+ {% endblock %} + + {% block docs_toc %} +
+ {% if not (meta is not none and 'notoc' in meta) %} + {%- include "docs-toc.html" %} + {% endif %} +
+ {% endblock %} + + {% block docs_main %} +
+ {% block docs_body %} +
+ {% block body %} {% endblock %} +
+ {% endblock %} + {% if theme_show_prev_next %} +
+ {{ prev_next(prev, next) }} +
+ {% endif %} +
+ {% endblock %} + +
-
- - {% if theme_google_analytics_id %} - - - - - {% endif %} -{%- endblock %} + {%- block footer %} + {%- include "footer.html" %} + {%- endblock %} + + + {% if theme_google_analytics_id %} + + + + + {% endif %} +
-{%- block footer %} -{%- include "footer.html" %} {%- endblock %} \ No newline at end of file diff --git a/src/scss/_base.scss b/src/scss/_base.scss index 8c7a3b06d..2fa055887 100644 --- a/src/scss/_base.scss +++ b/src/scss/_base.scss @@ -8,7 +8,7 @@ body { font-weight: 400; line-height: 1.65; color: #333; - padding-top: 75px; + height: 100vh; } p { @@ -48,14 +48,6 @@ a { font-family: 'Open Sans', sans-serif; font-weight: 400; line-height: 1.15; - - &::before { - // offsetting html anchor titles to adjust for fixed header - display: block; - content: ''; - height: 80px; - margin: -80px 0 0; - } } h1 { diff --git a/src/scss/index.scss b/src/scss/index.scss index dbad77f57..16679d3c4 100644 --- a/src/scss/index.scss +++ b/src/scss/index.scss @@ -16,7 +16,7 @@ $container-max-widths: ( @import './base'; @import './navbar'; -// Custom css, TODO: to be refactored in different partials + .deprecated { margin-bottom: 10px; margin-top: 10px; @@ -137,7 +137,7 @@ td:first-child { @supports (position: -webkit-sticky) or (position: sticky) { position: -webkit-sticky; position: sticky; - top: 5rem; + top: 0; height: calc(100vh - 5rem); overflow-y: auto; } @@ -184,7 +184,7 @@ td:first-child { @supports (position: -webkit-sticky) or (position: sticky) { position: -webkit-sticky; position: sticky; - top: 76px; + top: 0px; z-index: 1000; height: calc(100vh - 4rem); }