Ignore:
Timestamp:
01/21/2024 05:39:59 PM (8 months ago)
Author:
Pierre Labastie <pierre.labastie@…>
Branches:
12.1, 12.2, gimp3, ken/TL2024, lazarus, plabs/newcss, rahul/power-profiles-daemon, trunk, xry111/for-12.3, xry111/llvm18, xry111/spidermonkey128
Children:
07fda1c
Parents:
0aa3d7b
Message:

Change the CSS to fix some display problems

  • Have the section title stay visible always
  • have a clicked link appear in full
  • only scroll the sect2 and below (use overflow: auto so that falkon does not display scrollbars when not needed)
  • remove the footer that is not needed since we have the header
File:
1 edited

Legend:

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

    r0aa3d7b rb40a88ae  
    3939}
    4040
    41 
    42 /* Sections */
    43 div.sect1, div.appendix {
     41/* Sect1: must stay when scrolling, so "fixed". The navheader
     42   is higher for sect1 and chapter, so change top position.*/
     43h1.sect1,  h1.chapter {
     44  top: 3.5em;
     45}
     46h1.preface, h1.part, h1.appendix, .glossary h1, .index h1 {
     47  top: 2.5em;
     48}
     49h1.sect1, h1.preface, h1.part, h1.chapter, h1.appendix, .glossary h1, .index h1 {
     50  background: #f5f6f7;
     51  border-bottom: .1em solid #dbddec;
     52  padding: .2em 0;
     53  margin-left: -.1em;
     54  height: 1em;
     55  width: 100%;
     56  position: fixed;
     57  left:0;
     58  right:0;
     59  bottom: auto;
     60}
     61
     62/* Scrolling parts */
     63div.sect1, div.chapter {
     64  top: 9.5em;
     65}
     66div.appendix, div.preface, div.part, div.glossary, .index div.index {
     67  top: 8.5em;
     68}
     69div.sect1, div.appendix, div.preface, div.part, div.chapter, div.glossary, .index div.index {
    4470  padding-left: .3em;
     71  overflow:auto;
     72  height: auto;
     73  position: fixed;
     74  left:0;
     75  right:0;
     76  bottom: 0;
    4577}
    4678
     
    69101}
    70102
    71 
    72103/* Headers */
    73104h1, h2, h3, h4, h5, h6, b, .strong {
     
    87118}
    88119
    89 .preface h1, .part h1, .chapter h1, .appendix h1, .index h1, .sect1 h1, .glossary h1 {
    90   background: #f5f6f7;
    91   border-bottom: .1em solid #dbddec;
    92   margin-bottom: 1em;
    93   margin-top: 0;
    94   padding: .4em;
    95 }
    96 
    97 .sect1 h1, .appendix h1 {
    98   margin-left: -.2em;
    99 }
    100 
    101120.wrap h1 {
    102121  background: #f5f6f7;
     
    147166}
    148167
     168/* Navigation window on top: fixed. Height is relative to
     169   default font size. The 7.3em is obtained by trial and error.*/
    149170div.navheader {
    150171  border-bottom: 1px solid #dbddec;
    151    position: sticky;
    152    top: 0;
    153 }
    154 
     172  position: fixed;
     173  top: 0;
     174  left:0;
     175  right:0;
     176  bottom:auto;
     177  height:7.3em
     178}
     179
     180/* no need for a footer now that the header is always visible */
    155181div.navfooter {
    156   border-top: 1px solid #dbddec;
     182  display:none;
    157183}
    158184
Note: See TracChangeset for help on using the changeset viewer.