aboutsummaryrefslogtreecommitdiff
path: root/layouts/docs
diff options
context:
space:
mode:
authorAlex Shpak <alex-shpak@users.noreply.github.com>2018-09-26 00:12:56 +0200
committerAlex Shpak <alex-shpak@users.noreply.github.com>2018-09-26 00:12:56 +0200
commitcce17bcc99be389dce5bfbadfabaacf132c3f8f7 (patch)
tree71cfa0cc6451ab321f0884fc4e7ef0ad189259cc /layouts/docs
parentb6d7a1050fe273869646242304899f0a0f1483b2 (diff)
Remove purecss dependency and replace with flexbox
Diffstat (limited to 'layouts/docs')
-rw-r--r--layouts/docs/baseof.html54
1 files changed, 28 insertions, 26 deletions
diff --git a/layouts/docs/baseof.html b/layouts/docs/baseof.html
index 94f8cd4..7eb4326 100644
--- a/layouts/docs/baseof.html
+++ b/layouts/docs/baseof.html
@@ -7,37 +7,39 @@
</head>
<body>
- <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>
+ <input type="checkbox" style="display: none" id="menu-control" />
+ <div class="content">
- <div>
-
- <div class="pure-g content">
- <div class="pure-u-1 pure-u-lg-2-3 page markdown">
- {{- .Content -}}
+ <div class="menu">
+ <nav role="navigation">
+ {{ partial "docs/inject/nav-before" . }}
+
+ {{ if .Site.Params.BookMenuBundle }}
+ {{ partial "docs/menu-bundle" . }}
+ {{ else }}
+ {{ partial "docs/menu-filetree" . }}
+ {{ end }}
+
+ {{ partial "docs/inject/nav-after" . }}
+ </nav>
+ </div>
+
+ <div class="page">
+ <div class="header">
+ <label for="menu-control"><img src="/svg/menu.svg" /></label>
</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 class="markdown">
+ {{- .Content -}}
</div>
- {{ end }}
</div>
+ {{ $showToC := default (default true .Site.Params.BookShowToC) .Params.bookshowtoc }}
+ {{ if and ($showToC) (.Page.TableOfContents) }}
+ <div class="toc">
+ {{ partial "docs/toc" . }}
+ </div>
+ {{ end }}
+
</div>
{{ partial "docs/inject/body" . }}