Skip to content

Commit fa8b3df

Browse files
authored
Added navigation to hamburger menu (#309)
Recapitulated the sidebar in the hamburger menu for navigation Display is hidden on large and up screens Signed-off-by: Patrick Smyth <[email protected]>
1 parent 1c5c6c3 commit fa8b3df

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

assets/scss/layouts/_header.scss

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -491,3 +491,10 @@ button#doks-versions {
491491
padding-left: 0.5rem;
492492
}
493493
}
494+
495+
// Hide sidebar appearing inside hamburger menu
496+
// on mobile devices
497+
@include media-breakpoint-up(lg) {
498+
.sidebar-mobile {
499+
display: none;
500+
}}

layouts/partials/header/header.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,11 @@ <h2 class="h5 offcanvas-title ps-2" id="offcanvasDoksLabel"><a class="text-dark"
162162
</ul>
163163
</div>
164164
{{ end -}}
165+
166+
<div class="sidebar-mobile">
167+
{{ partial "sidebar/auto-collapsible-menu.html" . }}
168+
</div>
169+
165170
</div>
166171
</div>
167172
</nav>

0 commit comments

Comments
 (0)