diff options
| author | Sergio Carlavilla Delgado <carlavilla@FreeBSD.org> | 2022-02-28 19:01:36 +0000 |
|---|---|---|
| committer | Sergio Carlavilla Delgado <carlavilla@FreeBSD.org> | 2022-02-28 19:01:36 +0000 |
| commit | 96597816b4c714683dda2767b14fb44f9d48431b (patch) | |
| tree | b6b65d5a7e8a6e940d654b10eb3cb97422d3ae8b | |
| parent | 815fb2e573c0e6484c4e0622c216bb8c2895e307 (diff) | |
| download | doc-96597816b4c714683dda2767b14fb44f9d48431b.tar.gz doc-96597816b4c714683dda2767b14fb44f9d48431b.zip | |
Remove mobile book menu in books without menu
PR: 261370
Submitted by: Graham Perrin <grahamperrin (AT) gmail.com>
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> |
