From dd360c5f5f1c8b51cfbd80ab0f3bf1b36adccbee Mon Sep 17 00:00:00 2001 From: Henrik Tidefelt Date: Wed, 18 Nov 2020 11:32:30 +0100 Subject: [PATCH] Don't show links to previous and next chapter Reasons to not show: - Highly unlikely to be used (more meaningful when each page is short, and a reader is expected to read one page after another). - Occupies space that is precious on small screens. - Current layout breaks when window is so narrow that these links would overlap. --- css/MLS-navbar-left.css | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/css/MLS-navbar-left.css b/css/MLS-navbar-left.css index 7e5483c5d..4f09b5953 100644 --- a/css/MLS-navbar-left.css +++ b/css/MLS-navbar-left.css @@ -46,9 +46,15 @@ nav > div.ltx_TOC { } .ltx_page_navbar a[rel=start] { - display: none; /* Hiding the sidebar title, as it is too long to look good, and seem to lack structure for adequate layout. */ - margin: 1em; - font-weight: bold; + display: none; /* Don't show sidebar title, as it is too long to look good, and seem to lack structure for adequate layout. */ +} + +.ltx_page_header a[rel=prev] { + display: none; /* Don't show link to previous chapter. */ +} + +.ltx_page_header a[rel=next] { + display: none; /* Don't show link to previous chapter. */ } .ltx_TOC { @@ -91,7 +97,7 @@ nav > div.ltx_TOC { position: fixed; z-index: 3; top: 0px; - height: 2.5rem; + height: 1.5rem; padding: 0.5rem 1rem; background: #F6F6F6; /* Same as body. */ color: black; /* Same as side bar. */ @@ -101,7 +107,7 @@ nav > div.ltx_TOC { .ltx_page_content { padding: 1rem; - margin-top: 2.5rem; /* Header height plus padding below, minus a little bit. */ + margin-top: 1.5rem; /* Header height plus padding below, minus a little bit. */ background: white; } @@ -148,7 +154,7 @@ nav > div.ltx_TOC { } .ltx_page_navbar { width: 500px; - height: 3.5rem; + height: 2.5rem; left: calc(3rem - (500px + 8px)); transition: 0.3s; }