Skip to content

Commit

Permalink
Added navigation to hamburger menu
Browse files Browse the repository at this point in the history
Recapitulated the sidebar in the hamburger menu for navigation

Display is hidden on large and up screens

Signed-off-by: Patrick Smyth <[email protected]>
  • Loading branch information
smythp committed Jun 19, 2024
1 parent 1c5c6c3 commit eed3638
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
7 changes: 7 additions & 0 deletions assets/scss/layouts/_header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -491,3 +491,10 @@ button#doks-versions {
padding-left: 0.5rem;
}
}

// Hide sidebar appearing inside hamburger menu
// on mobile devices
@include media-breakpoint-up(lg) {
.sidebar-mobile {
display: none;
}}
5 changes: 5 additions & 0 deletions layouts/partials/header/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,11 @@ <h2 class="h5 offcanvas-title ps-2" id="offcanvasDoksLabel"><a class="text-dark"
</ul>
</div>
{{ end -}}

<div class="sidebar-mobile">
{{ partial "sidebar/auto-collapsible-menu.html" . }}
</div>

</div>
</div>
</nav>
Expand Down

0 comments on commit eed3638

Please sign in to comment.