aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergio Carlavilla Delgado <carlavilla@FreeBSD.org>2022-02-28 19:01:36 +0000
committerSergio Carlavilla Delgado <carlavilla@FreeBSD.org>2022-02-28 19:01:36 +0000
commit96597816b4c714683dda2767b14fb44f9d48431b (patch)
treeb6b65d5a7e8a6e940d654b10eb3cb97422d3ae8b
parent815fb2e573c0e6484c4e0622c216bb8c2895e307 (diff)
downloaddoc-96597816b4c714683dda2767b14fb44f9d48431b.tar.gz
doc-96597816b4c714683dda2767b14fb44f9d48431b.zip
Remove mobile book menu in books without menu
PR: 261370 Submitted by: Graham Perrin <grahamperrin (AT) gmail.com>
-rw-r--r--documentation/themes/beastie/assets/styles/documentation.scss11
-rw-r--r--documentation/themes/beastie/layouts/books/list.html2
-rw-r--r--documentation/themes/beastie/layouts/books/single.html2
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>