Adjust position of fixed boxes to static ones

This is done by trial and error. It works well with firefox. Not fully
tested with other browsers.
This commit is contained in:
Pierre Labastie 2024-01-22 18:21:20 +01:00
parent de4bdadf72
commit af52b6d7e9

View File

@ -41,37 +41,37 @@ div.dedication {
/* Sect1: must stay when scrolling, so "fixed". The navheader
is higher for sect1 and chapter, so change top position.*/
h1.sect1, h1.chapter {
top: 3.5em;
top: 4.35em;
}
h1.preface, h1.part, h1.appendix, .glossary h1, .index h1 {
top: 2.5em;
top: 3.53em;
}
h1.sect1, h1.preface, h1.part, h1.chapter, h1.appendix, .glossary h1, .index h1 {
background: #f5f6f7;
border-bottom: .1em solid #dbddec;
padding: .2em 0;
height: 1em;
width: 100%;
width: auto;
position: fixed;
left:0;
right:0;
left:0.58em;
right:0.58em;
bottom: auto;
}
/* Scrolling parts */
div.sect1, div.chapter {
top: 9.5em;
top: 11.2em;
}
div.appendix, div.preface, div.part, div.glossdiv, .index div.index {
top: 8.5em;
top: 9.7em;
}
div.sect1, div.appendix, div.preface, div.part, div.chapter, div.glossdiv, .index div.index {
padding-left: .3em;
overflow:auto;
height: auto;
position: fixed;
left:0;
right:0;
left:0.5em;
right:0.5em;
bottom: 0;
}