Skip to content

Commit

Permalink
Make the whole left sidebar scrollable (#502)
Browse files Browse the repository at this point in the history
  • Loading branch information
OriolAbril authored Oct 17, 2021
1 parent 540c9eb commit 8c998eb
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 10 deletions.

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions pydata_sphinx_theme/static/webpack-macros.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@

{% macro head_pre_bootstrap() %}
<link href="{{ pathto('_static/css/theme.css', 1) }}" rel="stylesheet">
<link href="{{ pathto('_static/css/index.9639d9d9adffa9baf100883c376b3e71.css', 1) }}" rel="stylesheet">
<link href="{{ pathto('_static/css/index.2e9b0b61d9c41c3a5cf6c110371cbc34.css', 1) }}" rel="stylesheet">
{% endmacro %}

{% macro head_js_preload() %}
<link rel="preload" as="script" href="{{ pathto('_static/js/index.e5c66028f5a0af3a71e2.js', 1) }}">
<link rel="preload" as="script" href="{{ pathto('_static/js/index.a478f40f0f2517ee2092.js', 1) }}">
{% endmacro %}

{% macro body_post() %}
<script src="{{ pathto('_static/js/index.e5c66028f5a0af3a71e2.js', 1) }}"></script>
<script src="{{ pathto('_static/js/index.a478f40f0f2517ee2092.js', 1) }}"></script>
{% endmacro %}
9 changes: 3 additions & 6 deletions src/scss/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ footer {

.bd-sidebar {
padding-top: 1em;
overflow-y: auto;

@include media-breakpoint-up(md) {
border-right: 1px solid rgba(0, 0, 0, 0.1);
Expand Down Expand Up @@ -196,10 +197,6 @@ footer {
@include media-breakpoint-up(md) {
display: block;

@supports (position: -webkit-sticky) or (position: sticky) {
max-height: calc(100vh - 11rem);
overflow-y: auto;
}
}
}

Expand Down Expand Up @@ -412,11 +409,11 @@ nav.bd-links {

&.right-next {
float: right;

div.prev-next-info {
text-align: right;
}
}
}
}
}

Expand Down

0 comments on commit 8c998eb

Please sign in to comment.