Skip to content

Commit

Permalink
Merge pull request google#300 from Arhell/fix-menu
Browse files Browse the repository at this point in the history
fix mobile toggle menu "jump" on close
  • Loading branch information
LisaFC committed Jun 29, 2020
2 parents 47c9fcf + 91fe818 commit b0563f9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions assets/scss/_sidebar-tree.scss
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,11 @@
padding: 0 0 1rem;
}
}

& > .td-sidebar-nav__section {
padding-top: .5rem;
padding-left: 1.5rem;
}
}

.td-sidebar {
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/sidebar-tree.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
</button>
</form>
{{ end }}
<nav class="collapse td-sidebar-nav pt-2 pl-4" id="td-section-nav">
<nav class="collapse td-sidebar-nav" id="td-section-nav">
{{ if (gt (len .Site.Home.Translations) 0) }}
<div class="nav-item dropdown d-block d-lg-none">
{{ partial "navbar-lang-selector.html" . }}
Expand Down

0 comments on commit b0563f9

Please sign in to comment.