Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bugfix: Fix scrooling on mobile docs menu #213

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion layouts/partials/nav-links-docs-mobile.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{{ $currentPage := . }}
{{ $menu := .Site.Menus.docs.ByWeight }}
<ul class="list dib ph0 scrolling-touch tc">
<ul class="bg-primary-color-dark list dib ph0 scrolling-touch tc fixed overflow-scroll top-0 right-0 bottom-0 left-0 pt3 pb4 mt0">
{{ range $menu }}{{ $post := printf "%s" .Post }}
<li class="tl dib ma0 hover-bg-black w-100{{ if eq $post "break" }} mb2 bb b--mid-gray{{ end }}">
<a href="{{.URL}}" class="ttu f6 link primary-color-light hover-white db brand-font mb1 ma0 w-100 pv2 ph4{{if $currentPage.IsMenuCurrent "main" . }} bg-primary-color{{end}}">
Expand Down
6 changes: 3 additions & 3 deletions layouts/partials/nav-mobile.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<div class="globalmenu mobilemenu pb1 dn">
<div class="globalmenu mobilemenu pb3 dn">
{{ partial "nav-links-global-mobile.html" . }}
</div>
<div class="docsmenu mobilemenu pb1 dn">
<div class="docsmenu mobilemenu pb3 dn">
{{ partial "nav-links-docs-mobile.html" . }}
</div>

<div class="flex dn-l justify-between">
<div class="flex dn-l justify-between fixed bottom-0 right-0 w-100">
<button class="js-toggle flex-auto dib dn-l f6 tc db ph3 pv2 link mr2 white bg-primary-color-dark hover-bg-primary-color ba b--white-40 w-auto" data-target=".globalmenu">Menu</button>

<button class="js-toggle flex-auto dib dn-l f6 tc db ph3 pv2 link white bg-primary-color-dark hover-bg-primary-color ba b--white-40 w-auto" data-target=".docsmenu">Docs Menu</button>
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/site-footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@

<img src="/images/gopher-side_color.svg" alt="" class="absolute-l bottom-0 dn db-l h4 right-0 z-999"/>

<div class="bg-primary-color-dark bottom-0 left-0 right-0 dn-l fixed pb3 ph3 pt3 w-100">
<div class="bg-primary-color-dark bottom-0 left-0 right-0 dn-l fixed w-100">
{{- partial "nav-mobile.html" . -}}
</div>

Expand Down