Skip to content

Commit

Permalink
NG: attempt to fix version chooser and finetune spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
msbt committed Aug 8, 2024
1 parent c3b1b80 commit 5d8f2b7
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/crate/theme/rtd/crate/sections/sidebar-secondary.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</script>
{%- endif %}

{%- if display_version %}
{%- if versions %}
{% include "components/version_chooser.html" %}
{%- endif %}
</div>
Expand Down
14 changes: 13 additions & 1 deletion src/crate/theme/rtd/crate/static/css/ng/layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@

// More footer spacing
footer {
margin-top: 4rem !important;
margin-top: 0rem !important;
margin-bottom: 2em;
}

Expand All @@ -208,6 +208,12 @@ footer {
scrollbar-width: thin;
}

@media all and (max-width: 59em) {
.sb-article-container.container-fluid {
margin-top: 0px !important;
}
}

@media all and (max-width: 767px) {
.sb-article-container.container-fluid {
width: 100vw !important;
Expand Down Expand Up @@ -250,12 +256,18 @@ footer {
top: 0em;
}

.sidebar-sticky {
padding-top: 20px;
}

.sb-main {
max-width: 80em;
}

.sidebar-drawer {
width: 100%;
height: 100%;
padding-top: 0;
}

.sb-article-container.container-fluid {
Expand Down

0 comments on commit 5d8f2b7

Please sign in to comment.