diff options
author | Alex Shpak <alex-shpak@users.noreply.github.com> | 2018-09-24 17:03:23 +0200 |
---|---|---|
committer | Alex Shpak <alex-shpak@users.noreply.github.com> | 2018-09-24 17:03:23 +0200 |
commit | b6d7a1050fe273869646242304899f0a0f1483b2 (patch) | |
tree | 3e9b75f74723b8981cfca53f59dadc659684847d /layouts/docs | |
parent | 8678e82154226d31ff2833c83fc078d6260a218f (diff) |
Improve mobile UX
Diffstat (limited to 'layouts/docs')
-rw-r--r-- | layouts/docs/baseof.html | 56 |
1 files changed, 28 insertions, 28 deletions
diff --git a/layouts/docs/baseof.html b/layouts/docs/baseof.html index 3a97228..94f8cd4 100644 --- a/layouts/docs/baseof.html +++ b/layouts/docs/baseof.html @@ -7,39 +7,39 @@ </head> <body> - <div class="pure-g"> - - <div class="pure-u book-nav"> - <nav role="navigation"> - {{ partial "docs/nav-brand" . }} - {{ partial "docs/inject/nav-before" . }} - - {{ if .Site.Params.BookMenuBundle }} - {{ partial "docs/nav-bundle" . }} - {{ else }} - {{ partial "docs/nav-filetree" . }} - {{ end }} - - {{ partial "docs/inject/nav-after" . }} - </nav> - </div> - <div class="pure-u book-content"> - <div class="pure-g"> - - <div class="pure-u book-page markdown"> - {{- .Content -}} - </div> - {{ $showToC := default (default true .Site.Params.BookShowToC) .Params.bookshowtoc }} - {{ if and ($showToC) (.Page.TableOfContents) }} - <div class="pure-u book-toc"> - {{ partial "docs/toc" . }} - </div> - {{ end }} + <div class="header"> + {{ partial "docs/header" . }} + </div> + + <input type="checkbox" style="display: none" id="nav-control" /> + <nav role="navigation" class="menu"> + {{ partial "docs/inject/nav-before" . }} + + {{ if .Site.Params.BookMenuBundle }} + {{ partial "docs/nav-bundle" . }} + {{ else }} + {{ partial "docs/nav-filetree" . }} + {{ end }} + + {{ partial "docs/inject/nav-after" . }} + </nav> + <div> + + <div class="pure-g content"> + <div class="pure-u-1 pure-u-lg-2-3 page markdown"> + {{- .Content -}} + </div> + {{ $showToC := default (default true .Site.Params.BookShowToC) .Params.bookshowtoc }} + {{ if and ($showToC) (.Page.TableOfContents) }} + <div class="pure-u-1 pure-u-lg-1-3 pure-hidden-md toc"> + {{ partial "docs/toc" . }} </div> + {{ end }} </div> </div> + {{ partial "docs/inject/body" . }} </body> </html>
\ No newline at end of file |