Make box for section titles static again

Since the  box that may scroll does not contain that box now, it does
not move when the scrollbar is actioned. The only fixed window now is
the div containing sect2/text. Its top has to be adjusted by trial and
error. But the rendering seems ok for all borwsers I can try (epiphany,
falkon and firefox).
This commit is contained in:
Pierre Labastie 2024-01-22 19:14:25 +01:00
parent af52b6d7e9
commit c302db6022

View File

@ -38,32 +38,25 @@ div.dedication {
padding-left: 1em;
}
/* Sect1: must stay when scrolling, so "fixed". The navheader
is higher for sect1 and chapter, so change top position.*/
h1.sect1, h1.chapter {
top: 4.35em;
}
h1.preface, h1.part, h1.appendix, .glossary h1, .index h1 {
top: 3.53em;
}
/* Section titles */
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: auto;
position: fixed;
left:0.58em;
right:0.58em;
bottom: auto;
margin-bottom:1em;
margin-top: 0;
padding: .4em;
}
/* Scrolling parts */
/* Scrolling parts
The header is taller for sect1 and chapter pages than on the
other pages. Since we want a fix box, it's top has to be calculated
by trial and errors to fit below the static header fox.*/
div.sect1, div.chapter {
top: 11.2em;
top: 11.9em;
}
div.appendix, div.preface, div.part, div.glossdiv, .index div.index {
top: 9.7em;
top: 10.4em;
}
div.sect1, div.appendix, div.preface, div.part, div.chapter, div.glossdiv, .index div.index {
padding-left: .3em;