git: 96597816b4 - main - Remove mobile book menu in books without menu
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 28 Feb 2022 19:03:10 UTC
The branch main has been updated by carlavilla:
URL: https://cgit.FreeBSD.org/doc/commit/?id=96597816b4c714683dda2767b14fb44f9d48431b
commit 96597816b4c714683dda2767b14fb44f9d48431b
Author: Sergio Carlavilla Delgado <carlavilla@FreeBSD.org>
AuthorDate: 2022-02-28 19:01:36 +0000
Commit: Sergio Carlavilla Delgado <carlavilla@FreeBSD.org>
CommitDate: 2022-02-28 19:01:36 +0000
Remove mobile book menu in books without menu
PR: 261370
Submitted by: Graham Perrin <grahamperrin (AT) gmail.com>
---
documentation/themes/beastie/assets/styles/documentation.scss | 11 +++++++----
documentation/themes/beastie/layouts/books/list.html | 2 ++
documentation/themes/beastie/layouts/books/single.html | 2 ++
3 files changed, 11 insertions(+), 4 deletions(-)
diff --git a/documentation/themes/beastie/assets/styles/documentation.scss b/documentation/themes/beastie/assets/styles/documentation.scss
index 63fb4e03a9..d0c8d3bcb8 100644
--- a/documentation/themes/beastie/assets/styles/documentation.scss
+++ b/documentation/themes/beastie/assets/styles/documentation.scss
@@ -173,6 +173,10 @@
.buttons {
display: flex;
+ align-content: center;
+ align-items: center;
+ justify-content: center;
+ flex-direction: row;
.prev, .home, .next {
display: flex;
@@ -185,16 +189,15 @@
}
.home {
+ margin-left: auto;
+ margin-right: auto;
+
i {
padding-left: .2rem;
padding-right: .2rem;
}
}
- .home, .next {
- margin-left: auto;
- }
-
.container {
display: flex;
flex-direction: column;
diff --git a/documentation/themes/beastie/layouts/books/list.html b/documentation/themes/beastie/layouts/books/list.html
index d4df934989..fc99508c90 100644
--- a/documentation/themes/beastie/layouts/books/list.html
+++ b/documentation/themes/beastie/layouts/books/list.html
@@ -13,6 +13,7 @@
</aside>
{{ end }}
<div class="book">
+ {{ if eq .Params.showBookMenu true }}
<div class="book-menu-mobile">
<label for="menu-control">
<span class="menu-control-button">
@@ -21,6 +22,7 @@
</span>
</label>
</div>
+ {{ end }}
<h1 class="title">{{ .Title }}</h1>
{{ if .Params.subtitle }}
<h3 class="subtitle">{{ .Params.subtitle }}</h3>
diff --git a/documentation/themes/beastie/layouts/books/single.html b/documentation/themes/beastie/layouts/books/single.html
index d4df934989..fc99508c90 100644
--- a/documentation/themes/beastie/layouts/books/single.html
+++ b/documentation/themes/beastie/layouts/books/single.html
@@ -13,6 +13,7 @@
</aside>
{{ end }}
<div class="book">
+ {{ if eq .Params.showBookMenu true }}
<div class="book-menu-mobile">
<label for="menu-control">
<span class="menu-control-button">
@@ -21,6 +22,7 @@
</span>
</label>
</div>
+ {{ end }}
<h1 class="title">{{ .Title }}</h1>
{{ if .Params.subtitle }}
<h3 class="subtitle">{{ .Params.subtitle }}</h3>