diff options
author | Alex Shpak <alex-shpak@users.noreply.github.com> | 2018-11-24 15:10:43 +0100 |
---|---|---|
committer | Alex Shpak <alex-shpak@users.noreply.github.com> | 2018-11-24 15:10:43 +0100 |
commit | 7798a5cc7c1d636008f000937e3d096f01dbbde5 (patch) | |
tree | 81c9d2d0fa10105e0813fe2cbaf41d96e9fb6681 /layouts | |
parent | f5736e077a7d50c05c9ca58ef307e4da4e63e6d5 (diff) |
Refactor scss styles
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/docs/baseof.html | 15 | ||||
-rw-r--r-- | layouts/partials/docs/brand.html | 2 | ||||
-rw-r--r-- | layouts/partials/docs/html-head.html | 6 | ||||
-rw-r--r-- | layouts/partials/docs/mobile-header.html | 10 |
4 files changed, 16 insertions, 17 deletions
diff --git a/layouts/docs/baseof.html b/layouts/docs/baseof.html index a332fc5..6ce7a9b 100644 --- a/layouts/docs/baseof.html +++ b/layouts/docs/baseof.html @@ -9,9 +9,9 @@ <body> <input type="checkbox" style="display: none" id="menu-control" /> - <main> + <main class="flex container"> - <aside class="menu fixed"> + <aside class="book-menu fixed"> <nav role="navigation"> {{ partial "docs/brand" . }} {{ partial "docs/inject/menu-before" . }} @@ -26,10 +26,8 @@ </nav> </aside> - <div class="content"> - <header> - {{ partial "docs/mobile-header" . }} - </header> + <div class="book-page"> + {{ partial "docs/mobile-header" . }} <article class="markdown"> {{- .Content -}} </article> @@ -37,14 +35,13 @@ {{ $showToC := default (default true .Site.Params.BookShowToC) .Params.bookshowtoc }} {{ if and ($showToC) (.Page.TableOfContents) }} - <aside class="toc fixed"> + <aside class="book-toc fixed"> {{ partial "docs/toc" . }} </aside> {{ end }} + {{ partial "docs/inject/body" . }} </main> - {{ partial "docs/inject/body" . }} - </body> </html>
\ No newline at end of file diff --git a/layouts/partials/docs/brand.html b/layouts/partials/docs/brand.html index 3a6d7b4..5a2c9cb 100644 --- a/layouts/partials/docs/brand.html +++ b/layouts/partials/docs/brand.html @@ -1,3 +1,3 @@ -<h2 class="brand"> +<h2 class="book-brand"> <a href="{{ .Site.BaseURL }}">{{ .Site.Title }}</a> </h2>
\ No newline at end of file diff --git a/layouts/partials/docs/html-head.html b/layouts/partials/docs/html-head.html index 0110074..363bcd2 100644 --- a/layouts/partials/docs/html-head.html +++ b/layouts/partials/docs/html-head.html @@ -3,7 +3,7 @@ <title>{{- template "title" . }} | {{ .Site.Title -}}</title> <link href="https://fonts.googleapis.com/css?family=Oxygen|Oxygen+Mono:300,400,700" rel="stylesheet"> -<link rel="stylesheet" href="{{ "/normalize.min.css" | relURL }}"> - +<link rel="stylesheet" href="{{ "normalize.min.css" | absURL }}"> +<!-- <link rel="stylesheet" href="/basscss.min.css"> --> {{ $styles := resources.Get "book.scss" | resources.ToCSS | resources.Minify | resources.Fingerprint }} -<link rel="stylesheet" href="{{ $styles.RelPermalink }}"> +<link rel="stylesheet" href="{{ $styles.RelPermalink }}">
\ No newline at end of file diff --git a/layouts/partials/docs/mobile-header.html b/layouts/partials/docs/mobile-header.html index 3517fe6..7ddd06d 100644 --- a/layouts/partials/docs/mobile-header.html +++ b/layouts/partials/docs/mobile-header.html @@ -1,4 +1,6 @@ -<label for="menu-control"> - <img src="{{ "svg/menu.svg" | absURL }}" /> -</label> -<strong>{{- template "title" . }}</strong> +<header class="align-center justify-between book-header"> + <label for="menu-control"> + <img src="{{ "svg/menu.svg" | absURL }}" /> + </label> + <strong>{{- template "title" . }}</strong> +</header> |