Improve mobile UX

This commit is contained in:
Alex Shpak
2018-09-24 17:03:23 +02:00
parent 8678e82154
commit b6d7a1050f
10 changed files with 197 additions and 157 deletions
+6
View File
@@ -0,0 +1,6 @@
<label for="nav-control">
<img src="/svg/menu.svg" />
</label>
<h3>
<a href="{{ .Site.BaseURL }}">{{ .Site.Title }}</a>
</h3>
+4 -2
View File
@@ -3,8 +3,10 @@
<title>{{- template "title" . }} | {{ .Site.Title -}}</title>
<link href="https://fonts.googleapis.com/css?family=Roboto+Mono|Roboto:300,400,700" rel="stylesheet">
<link href="/css/pure-min.css" rel="stylesheet">
<!-- <link href="/css/grids-responsive-min.css" rel="stylesheet"> -->
<link rel="stylesheet" href="https://unpkg.com/purecss@1.0.0/build/base-min.css">
<link rel="stylesheet" href="https://unpkg.com/purecss@1.0.0/build/grids-min.css">
<link rel="stylesheet" href="https://unpkg.com/purecss@1.0.0/build/grids-responsive-min.css">
{{ $styles := resources.Get "styles.scss" | resources.ToCSS | resources.Minify | resources.Fingerprint }}
<link rel="stylesheet" href="{{ $styles.Permalink }}">
+1 -1
View File
@@ -8,7 +8,7 @@
{{ define "book-section" }} <!-- Single section of menu (recursive) -->
<ul>
{{ range .Section.Sections }}
<li>
<li {{- if .Params.bookrootsection}} class="root-section" {{ end }}>
{{- if .Content -}}
{{ template "book-page-link" (dict "Page" . "CurrentPage" $.CurrentPage) }}
{{- else -}}