Skip to content

Commit 3a26103

Browse files
committed
Fix non-scrolling mobile navigation
1 parent ba19d8d commit 3a26103

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

_includes/sidebar.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<sidebar class="sidebar" id="sidebar">
1+
<nav class="sidebar" id="sidebar">
22
<div class="sidebar-mobile">
33
<img src="{{ "/assets/images/menu.svg" | relative_url }}" class="menu-icon" id="menu" alt="Menu" />
44
<img src="{{ "/assets/images/close.svg" | relative_url }}" class="close-icon" id="close" alt="Close menu" />
@@ -9,4 +9,4 @@
99
{% include nav.html %}
1010
<!-- {% include search-results.html %}<BR> -->
1111
</div>
12-
</sidebar>
12+
</nav>

assets/css/docs.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ a.menu {
6969
background: $navigation-background;
7070
padding: $base-height;
7171
overflow: auto;
72+
padding-bottom: 4em;
7273
}
7374

7475
.sidebar-mobile {
@@ -189,6 +190,10 @@ a.menu {
189190
border-right: none;
190191
height: $header-height;
191192

193+
.sidebar-main {
194+
padding-bottom: 8em;
195+
}
196+
192197
.sidebar-mobile {
193198
display: block;
194199

@@ -200,6 +205,7 @@ a.menu {
200205
&.opened {
201206
overflow: visible;
202207
height: auto;
208+
max-height: 100dvh;
203209
border-bottom: $sidebar-border;
204210

205211
.sidebar-mobile {

0 commit comments

Comments
 (0)