Ignore:
Timestamp:
01/22/2024 06:14:25 PM (4 months ago)
Author:
Pierre Labastie <pierre.labastie@…>
Branches:
12.1, ken/TL2024, lazarus, plabs/newcss, rahul/power-profiles-daemon, trunk, xry111/llvm18
Children:
a38df1e
Parents:
af52b6d7
Message:

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).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • stylesheets/lfs-xsl/lfs.css

    raf52b6d7 rc302db6  
    3939}
    4040
    41 /* Sect1: must stay when scrolling, so "fixed". The navheader
    42    is higher for sect1 and chapter, so change top position.*/
    43 h1.sect1,  h1.chapter {
    44   top: 4.35em;
    45 }
    46 h1.preface, h1.part, h1.appendix, .glossary h1, .index h1 {
    47   top: 3.53em;
    48 }
     41/* Section titles */
    4942h1.sect1, h1.preface, h1.part, h1.chapter, h1.appendix, .glossary h1, .index h1 {
    5043  background: #f5f6f7;
    5144  border-bottom: .1em solid #dbddec;
    52   padding: .2em 0;
    53   height: 1em;
    54   width: auto;
    55   position: fixed;
    56   left:0.58em;
    57   right:0.58em;
    58   bottom: auto;
    59 }
    60 
    61 /* Scrolling parts */
     45  margin-bottom:1em;
     46  margin-top: 0;
     47  padding: .4em;
     48}
     49
     50/* Scrolling parts
     51   The header is taller for sect1 and chapter pages than on the
     52   other pages. Since we want a fix box, it's top has to be calculated
     53   by trial and errors to fit below the static header fox.*/
     54
    6255div.sect1, div.chapter {
    63   top: 11.2em;
     56  top: 11.9em;
    6457}
    6558div.appendix, div.preface, div.part, div.glossdiv, .index div.index {
    66   top: 9.7em;
     59  top: 10.4em;
    6760}
    6861div.sect1, div.appendix, div.preface, div.part, div.chapter, div.glossdiv, .index div.index {
Note: See TracChangeset for help on using the changeset viewer.