From a5a26bbe7a93dacf72668c3a13005b86bbf34f92 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 24 Nov 2020 13:41:35 +0530 Subject: [PATCH] Keep top-bar visible Fixes #1905191 [[Enhancement] Always keep the controls visible in the User Manual](https://bugs.launchpad.net/calibre/+bug/1905191) --- manual/resources/custom.css | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/manual/resources/custom.css b/manual/resources/custom.css index 830f489611..00569e8d96 100644 --- a/manual/resources/custom.css +++ b/manual/resources/custom.css @@ -15,13 +15,19 @@ } @media screen and (min-width: 876px) { - div.related { height: 25px; display: flex; align-items: center; } + div.related { + height: 3.5ex; + display: flex; + align-items: center; + box-sizing: border-box; + position: fixed; top: 0 + } div.related > ul { flex-grow: 10; } div.sphinxsidebar { overflow-y: auto; max-height: calc(100vh - 25px) } + div.document { margin-top: 3.5ex; } } div.document, div.footer { - margin-top: 0px; /* remove whitespace above sidebar and title */ width: auto; /* fix horizontal scrollbar if screen is less that 940px */ }