Skip to content

Commit

Permalink
Fix non-scrolling mobile navigation
Browse files Browse the repository at this point in the history
  • Loading branch information
pmpinto committed Jan 30, 2025
1 parent ba19d8d commit 3a26103
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _includes/sidebar.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<sidebar class="sidebar" id="sidebar">
<nav class="sidebar" id="sidebar">
<div class="sidebar-mobile">
<img src="{{ "/assets/images/menu.svg" | relative_url }}" class="menu-icon" id="menu" alt="Menu" />
<img src="{{ "/assets/images/close.svg" | relative_url }}" class="close-icon" id="close" alt="Close menu" />
Expand All @@ -9,4 +9,4 @@
{% include nav.html %}
<!-- {% include search-results.html %}<BR> -->
</div>
</sidebar>
</nav>
6 changes: 6 additions & 0 deletions assets/css/docs.scss
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ a.menu {
background: $navigation-background;
padding: $base-height;
overflow: auto;
padding-bottom: 4em;
}

.sidebar-mobile {
Expand Down Expand Up @@ -189,6 +190,10 @@ a.menu {
border-right: none;
height: $header-height;

.sidebar-main {
padding-bottom: 8em;
}

.sidebar-mobile {
display: block;

Expand All @@ -200,6 +205,7 @@ a.menu {
&.opened {
overflow: visible;
height: auto;
max-height: 100dvh;
border-bottom: $sidebar-border;

.sidebar-mobile {
Expand Down

0 comments on commit 3a26103

Please sign in to comment.