Skip to content

Commit

Permalink
fixing side nav display issue (#43)
Browse files Browse the repository at this point in the history
Co-authored-by: Danita <[email protected]>
  • Loading branch information
danid123 and Danita authored Jan 12, 2022
1 parent 4f807e7 commit d3bc1d0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ _site
node_modules
.bundle
.jekyll-cache/
vendor/
2 changes: 1 addition & 1 deletion _includes/sidenav.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
_layouts/page.html layout template, or you can add "sidenav: true" in the front-matter of your pages
{% endcomment %}

<aside class="usa-layout-docs-sidenav desktop:grid-col-3 padding-bottom-4">
<aside class="tablet:grid-col-3 padding-bottom-4 display-none tablet:display-block">
<nav>
<ul class="usa-sidenav">
<li class="usa-sidenav__item">
Expand Down
8 changes: 4 additions & 4 deletions _layouts/page.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
<div class="grid-container">
<div class="grid-row grid-gap">
{% if page.sidenav == true %}
{% include sidenav.html %}
{% endif %}
<main>
<div class="usa-layout-docs__main desktop:grid-col-9 usa-prose">
{% include sidenav.html %}
- {% endif %}
<main class="tablet:grid-col-9">
<div class="usa-layout-docs__main usa-prose">
{{ content }}
</div>
</main>
Expand Down

0 comments on commit d3bc1d0

Please sign in to comment.