diff options
author | Alex Shpak <alex-shpak@users.noreply.github.com> | 2018-09-28 01:12:07 +0200 |
---|---|---|
committer | Alex Shpak <alex-shpak@users.noreply.github.com> | 2018-09-28 01:12:07 +0200 |
commit | 78bd5938a392318601bfca4c2e6783727dd33d37 (patch) | |
tree | ca3e2132a039034f3104d919851e44b57029e6a0 /layouts | |
parent | cce17bcc99be389dce5bfbadfabaacf132c3f8f7 (diff) |
Improve sass styles
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/docs/baseof.html | 23 | ||||
-rw-r--r-- | layouts/partials/docs/inject/menu-after.html (renamed from layouts/partials/docs/inject/nav-after.html) | 0 | ||||
-rw-r--r-- | layouts/partials/docs/inject/menu-before.html (renamed from layouts/partials/docs/inject/nav-before.html) | 0 | ||||
-rw-r--r-- | layouts/partials/docs/menu-filetree.html | 2 | ||||
-rw-r--r-- | layouts/partials/docs/mobile-header.html | 4 |
5 files changed, 18 insertions, 11 deletions
diff --git a/layouts/docs/baseof.html b/layouts/docs/baseof.html index 7eb4326..9beb261 100644 --- a/layouts/docs/baseof.html +++ b/layouts/docs/baseof.html @@ -8,11 +8,14 @@ <body> <input type="checkbox" style="display: none" id="menu-control" /> - <div class="content"> + <div class="container"> - <div class="menu"> + <aside class="menu fixed"> <nav role="navigation"> - {{ partial "docs/inject/nav-before" . }} + <h2 class="brand"> + <a href="{{ .Site.BaseURL }}">{{ .Site.Title }}</a> + </h2> + {{ partial "docs/inject/menu-before" . }} {{ if .Site.Params.BookMenuBundle }} {{ partial "docs/menu-bundle" . }} @@ -20,24 +23,24 @@ {{ partial "docs/menu-filetree" . }} {{ end }} - {{ partial "docs/inject/nav-after" . }} + {{ partial "docs/inject/menu-after" . }} </nav> - </div> + </aside> <div class="page"> <div class="header"> - <label for="menu-control"><img src="/svg/menu.svg" /></label> + {{ partial "docs/mobile-header" . }} </div> - <div class="markdown"> + <article class="markdown"> {{- .Content -}} - </div> + </article> </div> {{ $showToC := default (default true .Site.Params.BookShowToC) .Params.bookshowtoc }} {{ if and ($showToC) (.Page.TableOfContents) }} - <div class="toc"> + <aside class="toc fixed"> {{ partial "docs/toc" . }} - </div> + </aside> {{ end }} </div> diff --git a/layouts/partials/docs/inject/nav-after.html b/layouts/partials/docs/inject/menu-after.html index e69de29..e69de29 100644 --- a/layouts/partials/docs/inject/nav-after.html +++ b/layouts/partials/docs/inject/menu-after.html diff --git a/layouts/partials/docs/inject/nav-before.html b/layouts/partials/docs/inject/menu-before.html index e69de29..e69de29 100644 --- a/layouts/partials/docs/inject/nav-before.html +++ b/layouts/partials/docs/inject/menu-before.html diff --git a/layouts/partials/docs/menu-filetree.html b/layouts/partials/docs/menu-filetree.html index 490c350..5c1f11b 100644 --- a/layouts/partials/docs/menu-filetree.html +++ b/layouts/partials/docs/menu-filetree.html @@ -8,7 +8,7 @@ {{ define "book-section" }} <!-- Single section of menu (recursive) --> <ul> {{ range .Section.Sections }} - <li {{- if .Params.bookrootsection}} class="section" {{ end }}> + <li {{- if .Params.bookflatsection}} class="flat" {{ end }}> {{- if .Content -}} {{ template "book-page-link" (dict "Page" . "CurrentPage" $.CurrentPage) }} {{- else -}} diff --git a/layouts/partials/docs/mobile-header.html b/layouts/partials/docs/mobile-header.html new file mode 100644 index 0000000..3c8866e --- /dev/null +++ b/layouts/partials/docs/mobile-header.html @@ -0,0 +1,4 @@ +<label for="menu-control"> + <img src="/svg/menu.svg" /> +</label> +<strong>{{- template "title" . }}</strong>
\ No newline at end of file |